Two Methods for setting WebLogic startup memory: weblogic startup

Source: Internet
Author: User

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
  1. Echo *************************************** ************
  2. Echo * To start WebLogic Server, use a username and *
  3. Echo * password assigned to an admin-level user. *
  4. Echo * server administration, use the WebLogic Server *
  5. Echo * console at http: \ [hostname]: [port] \ console *
  6. Echo *************************************** ************

(1) Windows environment:

Java code
  1. Set MEM_ARGS =-Xms512m-Xmx768m

(2) Linux/Unix environment:

 

Java code
  1. 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
  1. : Sun
  2. If "% PRODUCTION_MODE %" = "true" goto sun_prod_mode
  3. Set JAVA_VM =-client
  4. Set MEM_ARGS =-Xms32m-Xmx200m-XX: MaxPermSize = 128 m
  5. Set JAVA_OPTIONS = % JAVA_OPTIONS %-Xverify: none
  6. Goto continue
  7. : Sun_prod_mode
  8. Set JAVA_VM =-server
  9. Set MEM_ARGS =-Xms32m-Xmx200m-XX: MaxPermSize = 128 m
  10. 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
  1. Sun)
  2. JAVA_VM =-server
  3. MEM_ARGS = "-Xms32m-Xmx200m-XX: MaxPermSize = 128 m"
  4. ;;
  5. And
  6. Sun)
  7. JAVA_VM =-client
  8. MEM_ARGS = "-Xms32m-Xmx200m-XX: MaxPermSize = 128 m"
  9. JAVA_OPTIONS = "$ {JAVA_OPTIONS}-Xverify: none"
  10. ;;
  11. 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 ).

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.