Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss in Action Permgen Out of Memory Error

 
Mark Beavis
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic