Two Methods for setting WebLogic startup memory: weblogic startup
We often use WebLoigc to deploy the application and find that the program running speed is not very fast. In this case, we can try to adjust the memory allocated at startup by using either of the following methods:
1. Set it in the. \ domain \ startWebLoigc. *** file.
Find the following content in startWebLogic. bat or startWebLogic. sh and add the memory to be set below.
Java code
- Echo *************************************** ************
- Echo * To start WebLogic Server, use a username and *
- Echo * password assigned to an admin-level user. *
- Echo * server administration, use the WebLogic Server *
- Echo * console at http: \ [hostname]: [port] \ console *
- Echo *************************************** ************
(1) Windows environment:
Java code
- Set MEM_ARGS =-Xms512m-Xmx768m
(2) Linux/Unix environment:
Java code
- MEM_ARGS = "-Xms512m-Xmx768m"
2. In the. \ weblogic81 \ common \ bin \ commEnv. *** file, Set
Find the following content in commEnv. bat or commEnv. sh and modify it.
(1) Windows environment:
Java code
- : Sun
- If "% PRODUCTION_MODE %" = "true" goto sun_prod_mode
- Set JAVA_VM =-client
- Set MEM_ARGS =-Xms32m-Xmx200m-XX: MaxPermSize = 128 m
- Set JAVA_OPTIONS = % JAVA_OPTIONS %-Xverify: none
- Goto continue
- : Sun_prod_mode
- Set JAVA_VM =-server
- Set MEM_ARGS =-Xms32m-Xmx200m-XX: MaxPermSize = 128 m
- Goto continue
Modify the memory. Here, select the JDK to be modified to sun. You can view the modified jrockit JDK in weblogic: bea.
(2) Linux/Unix environment:
Java code
- Sun)
- JAVA_VM =-server
- MEM_ARGS = "-Xms32m-Xmx200m-XX: MaxPermSize = 128 m"
- ;;
- And
- Sun)
- JAVA_VM =-client
- MEM_ARGS = "-Xms32m-Xmx200m-XX: MaxPermSize = 128 m"
- JAVA_OPTIONS = "$ {JAVA_OPTIONS}-Xverify: none"
- ;;
Follow popular foreign websites
Facebook: http://www.fb-on.com
Facebook official website: http://www.facebookzh.com
FacebookFQ: http://www.cn-face-book.com
Youtube: http://www.youtubezh.com
Twitter: http://www.twitterzh.com
Modify the memory. Here, select the JDK to be modified to sun. You can view the content in BEA by modifying jrockit JDK in weblogic.
The second method is successful because the call "% WL_HOME % \ common \ bin \ commEnv. cmd" is called in the startWebLogic file ".
The two parameters are described as follows: Xms is the minimum memory and cannot exceed 25% of the physical memory; Xmx is the maximum memory-Xmx cannot exceed 1.8 GB (32-bit CPU ).