I need some help setting up a JBoss Aplication for production as is giving me memory problems.
The server configuration is as follows:
OS: Microsoft Windows Server 2003 Enterprise Edition (Service Pack 2)
CPU: Pentium (R) Dua-Core CPU E5200@2.50GHz 2.50GHz
Memory: 1.96 GB of RAM.
JAVA: java version "1.6.0_24" Java (TM) SE Runtime Environment (build1.6.0_24-b07)
Application Server: JBoss 5.1.0.GA
My application is developed with:
Rich Faces 3.3.3 Final
I tried to make most of my Backing Beam are in request scope.
But when more than one user is connected to the application I get the following error:
java.lang.OutOfMemoryError: PermGen space
and tried to set the memory of the VM, but do not know what values to putexactly the amount of server memory. Nor is that components of jboss I have to uninstall to improve performance.
If you have any suggestions they are truly GRATEFUL.
Thanks again and excuse me for my Inglish
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:
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.