I am working on a simple client/server program using JMS.
The client has to make a million calls to the server. Im using a Topic.
I get a "java.lang.OutOfMemoryError: Java heap space" error after hundred thousand hits.
I use a machine with 1GB RAM and I think it should work because the code is light weight with not much processing or memory being used.
I was wondering if I could turn off unneeded components of the JBoss server and keep only the JMS running. Any inputs on how to do it would be appreciated. Also, if there are other ways of tuning the server or my application.
The JBossMQ FAQ has entries on memory usage and on creating a standalone JBossMQ configuration:
There's also a wiki article on tuning and slimming JBoss, in general: