12 Jan 2009, 14:29
Tags: , , , , , ,
Comments Off

Tomcat 5.5: java.lang.OutOfMemoryError: PermGen space

I so hate anything Java. There’s absolutely no way a sysadmin can maintain Java apps without diving into Java as a developer. The whole VM is so different from anything else in a system that you keep getting stumped by problems that are not very clear at first glance.

Yes, of course it’s because of my lack of knowledge about Java, but newsflash: I don’t want to learn a language to be able to maintain the platform.

I ran into a Tomcat instance that was giving errors like “java.lang.OutOfMemoryError: PermGen space”. My first inclination was to simply increase the -Xms and -Xmx options, since those were part of the config. Alas, it appears that “PermGen space” is not subject to these options. For that you need to add a -XX:MaxPermSize option. Aaargh!

Kudos to Wes Maldonado, Moazam Raja and the Apache/Tomcat FAQ for helpful hints. Also interesting is this link about how the memory usage of a JVM is built up.

Tags: , , , , , ,

 
  • Search


  • Twitter

    • @ArjenNL Awstats is not real-time :S Need it for monitoring, not trending. Kinda strange there are no solutions, really. in reply to ArjenNL 1 day ago
    • @ArjenNL Thx, but that's a mod_watch solution :) I don't want to use mod_watch, since it seems unmaintained :) in reply to ArjenNL 1 day ago
    • Anyone know of a maintained mod_watch-alike solution for Apache2? Preferably one that's packaged for Debian... 1 day ago
    • Seems that no month can pass without us calling our telephony provider about a screw up on their invoice to us... 1 day ago
    • @KroosSara Ik vond Inception erg stoer, ondanks Leonardo. Beetje Matrix-achtige sfeer, maar heel ander verhaal (uiteraard). 2 days ago
    • More updates...

    Powered by Twitter Tools

  • Calender

    January 2009
    M T W T F S S
    « Dec   Feb »
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  
  • Archives