The easy way is to subscribe to the stat event - set it to invoke the pub.event:stat service in which you can retrieve the freeMem and percentage free. See the built-in services and develop guide for more info.
You can set the polling interval time which determine how often the event will fire - watt.server.stats.pollTime to be exact.
We found that increasing the memory allocated to the jvm helps us get over the ‘hump’ during processing but you will probably need to take a serious look at your services. Using large document handling, dropping objects as soon as they’re not needed in the pipeline, etc should help with memory problems.
I’ve heard rumors of allocating at least 500MB-1GB of memory to the webMethods JVM.
#webMethods#Integration-Server-and-ESB#webMethods-Archive