This post is only a little bit related to SEAM, I apologize for any inconvenience.
I am in the process of moving my SEAM 3 application to production and I got outOfMemory exception. I wonder what is the optimal memory setting.
os – centos 6.1 64b
JDK – 1.7.0_04
JBoss AS 7.1.1
DB – MySQL
host: XEN 2G RAM , “shared access to 4 cores of Intel(R) Xeon(R) CPU E31230 @ 3.20GHz ”
My application I rather heavy on DB, and since system takes about 400MB I planed to allocate 1GB to JBoss and .5GB to MySQL.
The hosting company set in jboss .bashrc:
export JAVA_OPTS="-Xms512m -Xmx1380m -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true"
which is more than I intended and I got outOfMemory Exception.
Do you know any good resource for JBoss 7 tuning?
Are there any special consideration with SEAM?
There are different kinds of OutOfMemoryExceptions https://community.jboss.org/wiki/OutOfMemoryExceptions. So you have to first find out what exactly it is. Then you have to profile your application to check how much memory it takes and if there's anything suspicious about the amount of memory being used. That'll help you understand what settings you have to configure.