All application servers will be having a JVM in which they will be executing the processes. When it comes to performance tuning you need to start from the base that is the JVM. For basic JVM tuning, I am listing some important parameters that you need to set which will help your JVM to perform at its best.
- Max. heap size: Set to maximum addressable OS memory size
For 32 bit Linux the maximum heap size you can set is 4G
E.g. –Xmx 2048m
- Min. heap size: Set to the same as max heap size
E.g. –Xms 2048m
- Eden space: Set to 60% of max heap
Eden space dictates JVM garbage collection behaviors
E.g.: -Xmn1228m
For setting these values open the file opmn.xml. In Developer edition & Mid-tier installation: location of the file is $IAS_HOME/opmn/conf/opmn.xml
Add java arguments in start parameters of the server.
For eg
java … -Xms2048m -Xmx2048m -Xmn1228m -XX:+AggressiveHeap …
No comments:
Post a Comment