With MySQL and the way JBoss is designed, if you have a reasonable amount of memory (512MB) for the JVM and have configured the message cache settings properly, you shouldn't run out... JBoss may, however, be very slow on restart.
Currently, I have the following for messagecache setup
Is there something I am doing wrong in the messagecache config ? Any other recommendations ?
Jboss runs with 512M. The database has abt 600K messages in JMS_MESSAGES.
reposting the messagecache config part..
<mbean code="org.jboss.mq.server.MessageCache" name="jboss.mq:service=MessageCache"> <attribute name="HighMemoryMark">130</attribute> <attribute name="MaxMemoryMark">180</attribute> <attribute name="CacheStore">jboss.mq:service=PersistenceManager</attribute> <attribute name="MaximumHard">500</attribute> </mbean>
Could someone please look at the messageconfig I am using (see previous post) and tell me if there is something there that causes memory problems or what can I do to prevent jboss from running out of memory ?
You probably need to run your server with more memory. 600K messages doesn't seem like it would starve memory.
What sort of message do you get on startup?