Hi,
You can edit $SMX_HOME/bin/servicemix (or servicemix.bat on windows),
enlarge JAVA_MAX_MEM env var, by default now it's 512M, you may need
change it according to your file size.
Freeman
On 2010-4-20, at 下午12:22, Mediation wrote:
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.io.ByteArrayOutputStream.write(Unknown Source)
at
org
.apache
.servicemix.common.util.MessageUtil.copyInputStream(MessageUtil.java:
267)
at
org.apache.servicemix.common.util.MessageUtil
$NormalizedMessageImpl.<init>(MessageUtil.java:191)
at
org.apache.servicemix.common.util.MessageUtil.copy(MessageUtil.java:
74)
at
org
.apache.servicemix.common.util.MessageUtil.copyIn(MessageUtil.java:79)
at
org
.apache
.servicemix
.eip
.support
.AbstractContentBasedRouter
.processAsync(AbstractContentBasedRouter.java:130)
at org.apache.servicemix.eip.EIPEndpoint.process(EIPEndpoint.java:
165)
at
org
.apache
.servicemix
.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
at
org
.apache
.servicemix
.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:
554)
at
org
.apache
.servicemix
.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:
510)
at
org
.apache
.servicemix
.common
.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
at
org
.apache
.servicemix
.jbi
.messaging
.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:620)
at
org
.apache
.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
at
org
.apache
.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue
$1.run(SedaQueue.java:134)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Is there some heap size limitation ??
--
View this message in context:
http://old.nabble.com/smx3.3%3A-i-am-getting-a-strange-error-when-i-pass-big-files-as-attachments-PLS-HELP-tp28287797p28287797.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com