Hi there, you can try setting the JAVA_MAX_MEM in bin/servicemix to 1024M for example. Standard it should be configured as 512M. Now restart your Servicemix.
Grtz Joris 2011/3/18 guest76 <[email protected]>: > HI > > I am beginner to servicemix and i am using javax.xml.soap.SOAPConnection to > send my messages to servicemix.Initially it is working fine but after > sometime i m getting outofmemory in the servicemix logs. > > 03:00:14,049 | ERROR | pool-flow.seda.servicemix-wsn2005-thread-3 | > SedaQueue | .jbi.nmr.flow.seda.SedaQueue$1 136 | > org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1243877 got error > processing InOnly[ > id: ID:10.18.67.178-12e13b203dc-3:151758 > status: Active > role: provider > > java.lang.OutOfMemoryError: Java heap space > at > java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99) > at > java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:518) > at java.lang.StringBuffer.append(StringBuffer.java:307) > at java.io.StringWriter.write(StringWriter.java:72) > at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111) > at java.io.BufferedWriter.flush(BufferedWriter.java:235) > at com.sun.xml.bind.marshaller.XMLWriter.flush(XMLWriter.java:327) > at > com.sun.xml.bind.marshaller.XMLWriter.endDocument(XMLWriter.java:433) > at > com.sun.xml.bind.v2.runtime.output.SAXOutput.endDocument(SAXOutput.java:44) > at > com.sun.xml.bind.v2.runtime.XMLSerializer.endDocument(XMLSerializer.java:775) > at > com.sun.xml.bind.v2.runtime.MarshallerImpl.postwrite(MarshallerImpl.java:346) > at > com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:293) > at > com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:221) > at > javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:77) > at > org.apache.servicemix.wsn.jms.JmsPullPoint.store(JmsPullPoint.java:85) > at > org.apache.servicemix.wsn.AbstractPullPoint.notify(AbstractPullPoint.java:70) > 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.apache.servicemix.wsn.component.WSNEndpoint.process(WSNEndpoint.java:143) > at > org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538) > at > org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490) > at > org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) > at > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610) > at > org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170) > at > org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167) > at > org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:595 > > > And the version of servicemix i am using is 3.2.1 Can anyone help me how to > getrid of this issue. > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-tp413488p3968984.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. >
