I am trying to monitor the storage manager jvm processes on both the server and the agent using jstat, but am having issues doing so. The ultimate goal is to have Orion SAM monitor these stats so that when the agent is close to OutOfMemory or PermGen space errors, Orion SAM send an alert, possibly update the -Xmx parameter, then restart the service.
As a test, I have added the following to the SolarWinds.Storage.Collector.ini file
My problem is getting the agent to recognize and implement these changes so I can check heap statistics.
My question is, has anybody attempted this before, and if so, do you mind providing how it was done?
And, if not, is there a better way to go about this instead?
Thanks in advance!
To answer my own question, there is definitely a better way, which is to enable the jvm snmp. Here is the configuration I added to the ini file:
This tells the jvm to open port 20161 for snmp.
Here is a link to the jvm management mib for refrence on what oids to monitor: