Getting OutofMemoryException after sending 2200 messages (JBoss 4.0/ActiveMQ
4.0)
---------------------------------------------------------------------------------
Key: AMQ-764
URL: https://issues.apache.org/activemq/browse/AMQ-764
Project: ActiveMQ
Type: Bug
Components: JCA Container
Versions: 4.0 RC3
Environment: REDHAT 3.0
JBoss 4.04-GA
ActiveMQ-4.0-RC2
Reporter: shahzad bhatti
Fix For: 4.0.2
Attachments: activemq_jboss.zip
I am testing ActiveMQ 4.0 with JBoss 4.0 where I am using ActiveMQ's .rar file
within JBoss. I have a test applicacation that consists of following components:
-Message driven bean listens to queue within JBoss. It receives message and
invokes stateless session bean, which invokes entity bean and the message is
added to the databsae (mysql). After adding message, it replies back the
response to the client.
-JBoss stateless session bean -- uses entity bean to add message to the database
-JBoss entity bean that uses CMP to add message to the database.
-Publisher client - uses ActiveMQ APIs to publish message to the queue and
listens for response
I find that after about 2200 messages, I get OutOfMemory exception in ActiveMQ
and my application hangs. I am also attaching source code minus jar files.
You will also need mysql database.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira