This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 5812

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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: JBoss in Action Permgen Out of Memory Error
Similar Threads
java.lang.OutOfMemoryError: PermGen space
Shut down JVM using command
WebApp redeploys by itself !?
PerGen Space
Jboss Memory out of error when generating BIRT Reports