I had memory issues until I set up my initial & max memory allowances for the JVM when starting up the JBoss instance. If you haven't done that I would try it.
Thanks for your suggestion, but we are already setting the min and max memory allowances for the JVM, and it doesn't fix this problem.
Does anyone have any other ideas?
What version of jboss are you running? They put a fix in for a memory probblem in version 3.0.4.
I also eliminated much of my persistant messages at the same time as changing my min and max memory change. I don't know which one actually worked.
I'm not sure what version you're using, but we found JBossMQ unusable for high load applications until version 3.2.0-RC2. The RC2 release still does not perform well under heavy load, but it does a lot better than the previous versions.
I used it after seeing a post that the MessageCache was optimized in that version.
When I use version 3.0.6 I get an OutOfMemory error but when I run 3.0.4 I don't, I suspect that 3.0.4 had a bug fix that they accidently left out of 3.0.6.
Adjust these to fit your jvm config.
The default size for a Sun JVM is 64 (megabytes)
so use something like 50 and 60
Or use -Xmx switch on the java command in
run.bat/run.sh to change the JVM's memory.
Incidently, the message cache changes will
appear in 3.0.7