File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes JBoss in Action Permgen Out of Memory Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss in Action Permgen Out of Memory Error" Watch "JBoss in Action Permgen Out of Memory Error" New topic

JBoss in Action Permgen Out of Memory Error

Mark Beavis
Ranch Hand

Joined: Apr 07, 2005
Posts: 43
Hello to the authors -

I love using JBoss AS but one of the bad things is after a few publishes in eclipse I need to restart the server due to permgen being out of memory.

I know this is due to the Sun JVM implementation and is not a JBoss issue but it is frustrating nonetheless (especially when tomcat doesn't to suffer from this problem to quite the same extent).

My colleagues and I have played around with some memory settings (this was helpful) but there seems to be no definitive solution for this problem.

Out of interest what memory settings do you use when developing in JBoss?

Thanks -
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Actually, I use the default settings. But then I typically restart (and sometimes rebuild*) the app server when deploying an application. I also tend to use Eclipse as a glorified text editor rather than as a development environment (I have no patience for wizards that require me to fill in a bunch of forms and click a bunch of buttons when I can just as easily copy/paste some text into a source file). I also do all compiling and deploying in Maven or Ant (I turn off autobuild in Eclipse).

*See the build scripts in the book's source code for how I do this.

JBoss In Action
I agree. Here's the link:
subject: JBoss in Action Permgen Out of Memory Error
It's not a secret anymore!