Change the memory settings according to the product you are using.
Java Web Application Server
Add or change the following Java parameters when you launch the Java Web application server.
For example, if you set "-Xms1024m and Xmx2048m" as your parameters, the Java virtual machines do the following:
Apache Tomcat Java Web application server installed by the installer
Go to the install directory, find the appropriate file and change the settings:
In apache-tomcat/bin/catalina.bat find the line
"set "CATALINA_OPTS=-Xms256m -Xmx1024m …"
Make the changes according to your requirements.
In apache-tomcat/bin/service.bat, find the string
"--JvmMs 256 --JvmMx 1024"
Make the changes according to your requirements.
Note: You need to re-install the service as follows:
1. Remove the existing service service.bat remove
2. Re-install the service service.bat install
In apache-tomcat/bin/catalina.sh find the line
"CATALINA_OPTS="-Xms256m -Xmx1024m…"
Make the changes according to your requirements.
WebLogic
You can set the memory using the environment variable USER_MEM_ARGS.
For example:
USER_MEM_ARGS=-Xms256m -Xmx1024m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=1024m
| Copyright © 2011 CA. All rights reserved. |
|