Detecting a permgen memory leak in a Java application

by wheresvic1on 8/9/2021, 9:13 PMwith 14 comments

by kevinherronon 8/11/2021, 2:38 AM

Uh… PermGen? What year is it? This must be blog spam from the past.

by Sophistifunkon 8/11/2021, 2:24 AM

Detecting? It's safe to assume that if there's any statics there's a permgen leak.

by theamkon 8/9/2021, 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.