I have found part of a fix but it really doesnt fix everything. 
Here it is. 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. 

-- 
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-REST-producer-Causes-Out-Of-MemoryError-tp2543168p2543221.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to