Weblogic10.3.5 memory modification

Source: Internet
Author: User

1. Modify weblogic memory:

Location: file in Oracle/Middleware/wlserver_10.3/common/bin

CommEnv. sh:

If ["$ PRODUCTION_MODE" = "true"]; then
Case $ JAVA_VENDOR in
Oracle)
JAVA_VM =-jrockit
MEM_ARGS = "-Xms128m-Xmx256m"
;;
HP)
JAVA_VM =-server
MEM_ARGS = "-Xms32m-Xmx200m-XX: MaxPermSize = 128 m"
;;
IBM)
JAVA_VM =
MEM_ARGS = "-Xms32m-Xmx200m"
;;
Sun)
JAVA_VM =-server
MEM_ARGS = "-Xms4g-Xmx8g-XX: MaxPermSize = 2g" // modify it according to your jdk: 4g-8g,
;;
Apple)
JAVA_VM =-server
MEM_ARGS = "-Xms32m-Xmx200m-XX: MaxPermSize = 128 m"
;;
*)
JAVA_VM =
MEM_ARGS = "-Xms32m-Xmx200m"
;;
Esac
Else
Case $ JAVA_VENDOR in
Oracle)
JAVA_VM =-jrockit
MEM_ARGS = "-Xms128m-Xmx256m"
JAVA_OPTIONS = "$ {JAVA_OPTIONS}-Xverify: none"
;;
HP)
JAVA_VM =-client
MEM_ARGS = "-Xms32m-Xmx200m-XX: MaxPermSize = 128 m"
;;
IBM)
JAVA_VM =
MEM_ARGS = "-Xms32m-Xmx200m"
;;
Sun)
JAVA_VM =-client
MEM_ARGS = "-Xms4g-Xmx8g-XX: MaxPermSize = 2g"
JAVA_OPTIONS = "$ {JAVA_OPTIONS}-Xverify: none"
;;
Apple)
JAVA_VM =-client
MEM_ARGS = "-Xms32m-Xmx200m-XX: MaxPermSize = 128 m"
;;
*)
JAVA_VM =
MEM_ARGS = "-Xms32m-Xmx200m"
;;
Esac
Fi
Export JAVA_VM MEM_ARGS JAVA_OPTIONS


2. jdk memory configuration

Location: Middleware/user_projects/domains/base_domain/bin

Modify setDomainEnv. sh

If ["$ {JAVA_VENDOR}" = "Sun"]; then
WLS_MEM_ARGS_64BIT = "-Xms4g-Xmx6g"
Export WLS_MEM_ARGS_64BIT
WLS_MEM_ARGS_32BIT = "-Xms4g-Xmx6g"
Export WLS_MEM_ARGS_32BIT
Else
WLS_MEM_ARGS_64BIT = "-Xms512m-Xmx512m"
Export WLS_MEM_ARGS_64BIT
WLS_MEM_ARGS_32BIT = "-Xms512m-Xmx512m"
Export WLS_MEM_ARGS_32BIT
Fi
Ps: jdk is sun by default, and others are configured as needed

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.