aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Author

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
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

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: http://aspose.com/file-tools
 
subject: JBoss in Action Permgen Out of Memory Error
 
Similar Threads
Jboss Memory out of error when generating BIRT Reports
WebApp redeploys by itself !?
PerGen Space
Shut down JVM using command
java.lang.OutOfMemoryError: PermGen space