-
1. Re: java.lang.OutOfMemoryError: PermGen space
jcash Mar 27, 2006 3:26 AM (in response to javatwo)When does this happen? What OS are you running on?
-
2. Re: java.lang.OutOfMemoryError: PermGen space
marcwimmer Apr 7, 2006 4:13 AM (in response to javatwo)I have the same problem.
Running Suse linux with 1 GB RAM.
Startoptions are default of jboss:
JAVA_OPTS="-server -Xms128m -Xmx128m" in /bin/run.conf
It happens after several redeployments of the same web-app.
Sometimes I can reploy 10 times, then only 2 times or so.
Marc -
3. Re: java.lang.OutOfMemoryError: PermGen space
jboss2005_01 Apr 7, 2006 4:33 AM (in response to javatwo)You could try to set the following environment variable for your JBoss process on your Linux machine : LD_ASSUME_KERNEL=2.4.1
There are known issues with Linux kernels after 2.4 and Tomcat (included within JBoss) causing OutOfMemoryError.
I had the same behaviour on a production server running approx. 15 webapps. Setting the kernel option solved the problem.
Regards,
Kurt -
4. Re: java.lang.OutOfMemoryError: PermGen space
marcwimmer Apr 10, 2006 6:51 AM (in response to javatwo)Hi,
how can I set this settings exactly please?
Kind regards,
Marc -
5. Re: java.lang.OutOfMemoryError: PermGen space
jboss2005_01 Apr 11, 2006 4:00 AM (in response to javatwo)Hi Marc,
What we did is enter the following statement to the .bashrc file from the user that will be starting JBoss.
This file should be located below the home folder of the user that will run JBoss. If it does not exist, just create it. This should be enough.
In this file you should place: export LD_ASSUME_KERNEL=2.4.1
Hope this solves your problem.
Greets,
Kurt -
6. Re: java.lang.OutOfMemoryError: PermGen space
neelixx Apr 19, 2006 11:35 AM (in response to javatwo)What about for Windows? My production server is linux, but I'm developing on Windows. I get this message on Windows XP running JBoss-4.0.3SP1 with EJB3.
I get about 3-5 re-deployments [EAR deployments] before I get this error.
Are there any workarounds for Windows?
Thanks!
~~Aaron -
7. Re: java.lang.OutOfMemoryError: PermGen space
marcwimmer Apr 20, 2006 3:09 AM (in response to javatwo)also for me: this problem still exists....
-
8. Re: java.lang.OutOfMemoryError: PermGen space
jboss2005_01 Apr 20, 2006 5:48 AM (in response to javatwo)Don't know about such issues related to Windows, I think I can't be to any help concerning this matter.
Perhaps you could increase the heap size by changing the -Xmx parameter to a higher value. I personally think it's a little bit strange to set -Xms and -Xmx to the same value. I prefer a value for -Xmx >= 2 x -Xms. Off couse by keeping the maximum amount of physical memory in mind... -
9. Re: java.lang.OutOfMemoryError: PermGen space
javidjamae Apr 24, 2006 9:24 PM (in response to javatwo)I think that the Permanant Generation Space in the heap is a fixed size. You'll have to adjust it through JVM settings. I'm guessing your applications have a large number of different classes being loaded into memory, because this space holds class level metadata. (Changing -Xmx won't affect the PermGen space).
See this posting:
http://www.theserverside.com/news/thread.tss?thread_id=36743 -
10. Re: java.lang.OutOfMemoryError: PermGen space
ericmacau Apr 27, 2006 10:58 PM (in response to javatwo)I also have this problem, after re-depoy an EAR a few times, it riased that exception !!!
-
11. Re: java.lang.OutOfMemoryError: PermGen space
grzegorz.knapczyk Jun 27, 2006 9:11 AM (in response to javatwo)I have the same problem in Windows 2003server (2GB RAM)+ jboss-4.0.4.GA.
set JAVA_OPTS=-Xms128m -Xmx1024m
After I redeploy a few times web application (WAR file) the server throws the exception OutOfMemoryError.
Is there any bug in JBoss Deployer? -
12. Re: java.lang.OutOfMemoryError: PermGen space
jaikiran Jun 27, 2006 9:15 AM (in response to javatwo) -
13. Re: java.lang.OutOfMemoryError: PermGen space
smokingapipe Aug 15, 2006 12:44 AM (in response to javatwo)I just hit the same thing. This is Suse 10.1 on a machine with 2gb of RAM.
I had dynamically reloaded my application about two dozen times. Would that make a difference?
It does worry me to see that when I think that I'll be deploying this as a live application serving millions of hits at some point. It's one thing to run into it in development, but in production, that is a killer. -
14. Re: java.lang.OutOfMemoryError: PermGen space
peterj Aug 15, 2006 10:54 AM (in response to javatwo)I had dynamically reloaded my application about two dozen times. Would that make a difference?
Did you read the wiki page that jaikiran provided a link to?