java
Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29-10-2008, 10:06
Kees de Kooter Kees de Kooter is offline
Moderator
 
Join Date: Jul 2008
Location: Rotterdam
Posts: 197
Default Monitor PermSize

For Tomcat and Eclipse (to name a few) I routinely set the jvm option -XX:MaxPermSize to some high value in order to avoid OutOfMemory exceptions.

Is it possible to use the monitor to determine if this option is set to a sensible value?
__________________
Kees
moderator Tomcat Administration forum

Last edited by Kees de Kooter; 29-10-2008 at 12:43.
Reply With Quote
  #2  
Old 29-10-2008, 14:09
kjkoster kjkoster is offline
Forum Operator
 
Join Date: Jul 2008
Posts: 1,123
Default

Dear Kees,

For Tomcat it is simple: just deploy Java-monitor on it. :-) The non-heap monitor should give you an idea of how much permgen space you need. It's not precise, because that rolls a few non-heap memory pools into one statistic.

Do you think it would be useful to monitor all of Java's memory pools and make that into a special page on Java-monitor? That way you'd have the same overview that you have now and you could delve into the various memory pools and garbage collectors as you see fit.

For Eclipse, it is more tricky. You could build your own version of the probe to work in Eclipse as a plugin.

I'm actually thinking that we need an OSGi probe bundle. That would work in Eclipse and in other OSGi enabled environments. Isn't Spring's server based on OSGi too? Would such a probe be useful?

Kees Jan
Reply With Quote
  #3  
Old 29-10-2008, 14:18
Kees de Kooter Kees de Kooter is offline
Moderator
 
Join Date: Jul 2008
Location: Rotterdam
Posts: 197
Default

Thanks Kees Jan.

Speaking for myself I do not need to delve into the various memory pools (for now at least) as I only superficially understand what is going on there...

But I guess it would be a nice demoable selling point for the monitor.

I don't really need to monitor Eclipse. Got enough RAM in my laptop ;-)

Yes the new spring app server is OSGi based. As is Glassfish for that matter. So it might be interesing to publish it as a bundle (that would solve your jar-bootstrapping problem btw).
__________________
Kees
moderator Tomcat Administration forum
Reply With Quote
  #4  
Old 29-10-2008, 15:12
kjkoster kjkoster is offline
Forum Operator
 
Join Date: Jul 2008
Posts: 1,123
Default

Dear Kees,

If you just want a high-level view of the permgen space, the non-heap graphs in Java-monitor will do nicely. Here is one from one of my servers.


Not exactly earth-shattering, but in a smoothly running system that should not be the case anyway. :-)

For machines that are redeployed all the time for testing, this graph should be rather more wobbly.

Kees Jan
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump