Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 3394 invoked from network); 2 Apr 2007 07:46:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2007 07:46:15 -0000 Received: (qmail 84889 invoked by uid 500); 2 Apr 2007 07:46:22 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 84864 invoked by uid 500); 2 Apr 2007 07:46:22 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 84855 invoked by uid 99); 2 Apr 2007 07:46:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 00:46:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of james.strachan@gmail.com designates 66.249.82.239 as permitted sender) Received: from [66.249.82.239] (HELO wx-out-0506.google.com) (66.249.82.239) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 00:46:13 -0700 Received: by wx-out-0506.google.com with SMTP id h29so1186841wxd for ; Mon, 02 Apr 2007 00:45:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CePtCqTdzWhobehof9K73P5KQeeUW2miXeHX44bTmN4vh31/tCVuRYvH5Byg23GWvlRNXvFENfQrGP6W1H3LU+Q/qwJ/Ox+tDDSSR5lqiyUNT5yUX/GUwGVt2J2J8MlQN0ImB7qhNu1XZiQngRd/FXbJoKxj7EDDGP6amxrHDfE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KtczHmEhT7MiQ5borI8SZTwzv0/v8g5VijDUfTYNhRQG/pXSkYXvwvSPJMyvyEaur2cti88LXLdjCouzhylpa096HhTbiw1OTELffaRwp2BJ4kfbJ9xzSuRlvw1xJYb1fxv0hnT8FJxdnSGtLoMjXTiNw8y8FROL1pVhOedoplQ= Received: by 10.90.30.20 with SMTP id d20mr2903012agd.1175499953252; Mon, 02 Apr 2007 00:45:53 -0700 (PDT) Received: by 10.90.51.6 with HTTP; Mon, 2 Apr 2007 00:45:53 -0700 (PDT) Message-ID: Date: Mon, 2 Apr 2007 08:45:53 +0100 From: "James Strachan" To: users@activemq.apache.org Subject: Re: Java Heap Space Exception In-Reply-To: <9741101.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9741101.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Try setting a bigger heap for running jboss? On 3/29/07, Karthik.Gopalakrishnan wrote: > > I tried sending a ByteMessage from a c# client to a java consumer(MDB which > listens on the queue) and it works completely file . But when i send a > TextMessage from the same c# producer to a java consumer i get the following > exception > > 15:21:19,542 ERROR [ActiveMQSession] error dispatching message: > javax.ejb.TransactionRolledbackLocalException: Unexpected Error > java.lang.OutOfMemoryError: Java heap space > > at > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:262) > at > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350) > at > org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181) > at > org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109) > at > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205) > at > org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136) > at > org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402) > at org.jboss.ejb.Container.invoke(Container.java:954) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) > at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) > at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) > at > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) > at > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) > at > org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169) > at > org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118) > at > org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:206) > at > org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:192) > at > org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61) > at > org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.delivery(MessageEndpointInterceptor.java:252) > at > org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.invoke(MessageEndpointInterceptor.java:132) > at > org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74) > at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100) > at $Proxy56.onMessage(Unknown Source) > at > org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:120) > at > org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:60) > at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:692) > at > org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:163) > at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204) > at > org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275) > at > EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) > at java.lang.Thread.run(Thread.java:595) > Caused by: javax.ejb.EJBException: Unexpected Error > java.lang.OutOfMemoryError: Java heap space > > I dont get any problem when i try to send a TextMessage from a java producer > to the MDB. My guesses are that the OpenWire protocol being used on the c# > side causes this issue.I tried various options like changing the prefetch > size but i was not able to get this working.May be i didnt get some > configuration right. > > If any of you have faced a similar problem and then got it fixed please let > me know what was done. > > I am using ActiveMQ 4.0.2 integrated to JBoss > Broker is embedded one. > > > > -- > View this message in context: http://www.nabble.com/Java-Heap-Space-Exception-tf3488427s2354.html#a9741101 > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- James ------- http://radio.weblogs.com/0112098/