My Java application is deployed on Tomcat Application server. Using TaskManager, I can see CPU and memory usage. The memory usage shown by Jconsole for same process ID is different from the memory usage shown by Task Manager. This is because task manager shows whole system memory while Jconsole shows memory allocated to JVM. Kindly correct me if my understanding is wrong.
I want to log memory and CPU usage by my java application process Id for a particular span of time. If I am trying to use perfmon, it's showing usage of all the processes. Is there any way with which I can configure in perfmon for one particular process ID and which counters I need to select in it.
Thanks.