0

I need some help on how to monitor perm gen space remotely. We have Tomcat installed on Windows 2008 R2. From time to time perm gen space is full. I want to monitor the perm gen space before it becomes full so that certain actions can be done to prevent service disruptions. How would I do this?

Wesley
  • 33,060

1 Answers1

2

What you're looking for is JMX remoting - it provides a way to get a look at the permgen size as well as a lot of other information about the running Java instance.

You'll probably want to use authentication and encryption, but adding just this to your Java options should get you started:

-Dcom.sun.management.jmxremote.port=9000
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

How you monitor this will depend on your monitoring software, but to monitor manually, use jvisualvm from the JDK and configure a remote instance.

Shane Madden
  • 116,404
  • 13
  • 187
  • 256