Hi,
I like to share a simple tool I wrote in Java to monitoring memory usage in the Java Method Server and notify users via email if the memory usage exceeds a certain defined threshold. Refer to the attached file where the source/compiled code and a readme with instructions on how to deploy the tool is included.
Some use cases where I think this tool is useful
1) Prevent unschedule outage:
A sys admin can configure automate email notifications when the memory usage hits say 90% on the JVM. A time can then be scheduled to bring the Java Method Server down to take corrective/debugging actions. For example, the Java Method Server can be brought down to increase the heap size, add heap dump on OutOfMemory errors, add garbage collection traces etc...
2) During devlopment stages
This tool can be scheduled to run regularly to keep track of memory usage on the JVM over time. If a new application is added to the system and then the memory usage suddenly spikes, this might indicate a problem with the new application. Note, this simple tool does not have the capabilities of commercial java profilers.
Features I would like to implement in future.
1) Auto generation of heap dumps programatically. I believe this is only possible if I use JDK 1.6 but since Documentum ships 1.5 JDK with JBoss, this might not be possible. If this is wrong, someone please let me know.
2) Make it easier to deploy the application by making it a BOF module (documentum recommended way) and perform automatic creation of associated method and job object.
If anyone has any problems/comments/suggestions on this tool or other tools that Documentum users would like, please feel free to discuss it in this thread.
Thanks