activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiroshi Ayukawa <ayukawa.hiro...@gmail.com>
Subject Re: Broker used up the memory
Date Mon, 02 Oct 2006 09:18:54 GMT

Hi, all.

org.apache.activemq.command.ActiveMQObjectMessage#storeContent() is supposed
to be buggy.

ObjectOutputStream should be reset as well as other parts of acticemq do.
----------------------------------- Line 98--100 should be.. 
--------------------------------------------------------------
                ObjectOutputStream objOut = new ObjectOutputStream(dataOut);
                objOut.writeObject(object);
+              objOut.flush();
+              objOut.reset();
                objOut.close();
--------------------------------------------------------------------------------------------------------------------------------------

cf.  http://java.sun.com/products/jdk/serialization/faq/#OutOfMemoryError
-- 
View this message in context: http://www.nabble.com/Broker-used-up-the-memory-tf2316972.html#a6598182
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message