from Hacker News

Detecting a permgen memory leak in a Java application

by wheresvic1 on 8/9/21, 9:13 PM with 14 comments

  • by kevinherron on 8/11/21, 2:38 AM

    Uh… PermGen? What year is it? This must be blog spam from the past.
  • by Sophistifunk on 8/11/21, 2:24 AM

    Detecting? It's safe to assume that if there's any statics there's a permgen leak.
  • by theamk on 8/9/21, 9:55 PM

    > Steps to use visualvm to profile memory for a standalone JBoss application:

    > Allow visualvm to use 1024 Mb of RAM - in etc/visualvm.conf update -Xmx parameter to -J-Xmx1024m

    And this is why I avoid all Java apps I can -- there is always a need for some memory tuning. C++, Lisp, Perl, Go, Python, even Javascript can all use all the memory in my computer have without any action on my part, only Java keeps having the problems with it.