-
1. Re: java.lang.OutOfMemoryError: PermGen space + JBoss AS in Windows
peterj Aug 31, 2011 12:45 PM (in response to rart3001_1)You can change the permgen size in bin/run.conf.bat, look for the -XXMaxPermSize setting.
Also, how are you starting JBoss AS? If as a service, note the problem (and solution) mentioned in this post:
-
2. Re: java.lang.OutOfMemoryError: PermGen space + JBoss AS in Windows
rart3001_1 Aug 31, 2011 12:52 PM (in response to peterj)thanks for your prompt response.
Yes, I'm starting the JBoss AS as a windows service, and I know that tells meto file change the size of the memory. but I do not know which value is correct for the amount of memory that the server has
-
3. Re: java.lang.OutOfMemoryError: PermGen space + JBoss AS in Windows
peterj Aug 31, 2011 1:22 PM (in response to rart3001_1)Did you read the post I linked to? If you did, the important point in that post was that because service.bat set JAVA_OPTS, then the settings in run.conf.bat are ignored. In other words, none of the memory settings made in run.conf.bat are used; instead the JVM uses its defaults. The first thing you should do is follow the instructions in that post and comment out JAVA_OPTS in service.bat and move the -Xrs. Most likely that will fix your problem.
-
4. Re: java.lang.OutOfMemoryError: PermGen space + JBoss AS in Windows
rart3001_1 Aug 31, 2011 2:41 PM (in response to peterj)Ok, thanks, and I read the link you sent me and I will try the solution isexposed. One more question I need to uninstall the windows service and make changes to the file and reinstall service.bat
-
5. Re: java.lang.OutOfMemoryError: PermGen space + JBoss AS in Windows
peterj Aug 31, 2011 2:49 PM (in response to rart3001_1)1 of 1 people found this helpfulNo, you do not need to uninstall the service, but you will need to restart the service after making the change.
-
6. Re: java.lang.OutOfMemoryError: PermGen space + JBoss AS in Windows
rart3001_1 Sep 1, 2011 9:09 AM (in response to peterj)Peter thank you very much I think you fix the problem. really thank you very muchI thought it was mistake on my application.