steps to following to reproduce the problem::
1) ActiveMQ is running on Linux box . MySql is configured as persistance data base.
2) Write a simple producer and consumer program which produces/consumes from five different queue.
3) while producer and consumer running at the same time (send 1000000 messages in a for loop)
You can see its memory being eaten up in the Linux server.
4) after soem time consuming some 300 or so messages it will end up with an exception.
the message size is starting from 16kb
and keep on increasing data size as 512 kb and then 1mb etc...