That looks like you're out of heap space - try increasing the JVM's heap 2008/12/23 silver1 <martin.ku...@robotron.de>: > > Hi, > > what is the maximum size of a objectmessage for sending over a > ssl-protocoll? Is it 20 MB? > Can I modify the size? > > I have tested (ApacheMQ Version 5.2) with a File (~ 25 MB) and get the > following Error: > > Exception in thread "main" java.lang.OutOfMemoryError: Java heap space > at > org.apache.activemq.util.ByteArrayOutputStream.checkCapacity(ByteArrayOutputStream.java:59) > at > org.apache.activemq.util.ByteArrayOutputStream.write(ByteArrayOutputStream.java:48) > at java.io.DataOutputStream.write(DataOutputStream.java:90) > at > java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1838) > at > java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1747) > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1161) > at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) > at > org.apache.activemq.command.ActiveMQObjectMessage.storeContent(ActiveMQObjectMessage.java:98) > at > org.apache.activemq.command.ActiveMQObjectMessage.copy(ActiveMQObjectMessage.java:80) > at > org.apache.activemq.command.ActiveMQObjectMessage.copy(ActiveMQObjectMessage.java:75) > at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1634) > at > org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:227) > > I have increase the MemryUsage of the SystemUsage: > <memoryUsage limit="70 mb"/> > but it has no positive effect. > > Must I use a BlobMessage instead? > > -- > View this message in context: > http://www.nabble.com/Objectmessage-max-size%2C-how-can-i-change-it--tp21142143p21142143.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >
-- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/