As title states is there a way to monitor the CPU and memory usage using Java Mission Control tools? I know I am able to do this with clients. However, when running JMC I do not see process for the gateway.
The primary reason we are doing this is to capture a spike in memory usage we experienced. When we have the gateway running it typically uses 600mb of memory. Twelve hours in we see the gateway memory spike to 2GB within a few minutes. We are currently trying to figure out what caused the spike.
Which is why we want to use JMC tools to monitor and if needed do memory dump.
Oracle’s jmap tool is pretty handy, particularly in histogram mode. But fair warning: each such probe will create a brief pause in the application. Pretty sure that’s true of all tools that use Java’s debug interfaces to analyze memory consumption.