You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ChicagoBob123 <bo...@bobfx.com> on 2010/09/17 13:58:29 UTC

ActiveMQ REST producer Still leaking.

Part the fix was to alter the \ActiveMQ.bat start up file. 
BUT its still leaking. Posting via REST seems to create quite a memory leak. 
The threads seem to have stopped growing at about 33 but memory ever
increases. It would take a few days but it will run out of memory.

By the way I wanted to post this because the information on the net was
quite cryptic and not very explicit.

Open your bin\ActiveMQ\ActiveMQ.bat
Find this line

if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M
-Dorg.apache.activemq.UseDedicatedTaskRunner=true
-Djava.util.logging.config.file=logging.properties

change it to this.

if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Xss160k
-Dorg.apache.activemq.UseDedicatedTaskRunner=false
-Djava.util.logging.config.file=logging.properties

This should stop the threads from going wild but it does NOT stop the memory
from going out of control but it did SLOW the usage down a lot.  BUT--- the
memory usage is still going UP 80MB in an hour while the q is constantly
being posted to. 
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-REST-producer-Still-leaking-tp2543765p2543765.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.