Weblogic10 memory and port number Modification

Source: Internet
Author: User

Http://www.finereporthelp.com/help/4/0/2/5.html#a:2.

After Weblogic is deployed Program If the default memory size is too small, the memory may overflow, resulting in a false state, you need to modify the Weblogic Memory Access Mechanism to expand the default memory size. How to modify it? You may also want to change the port number of the server for convenience, instead of using the default port number of the server. How can you modify this? The following describes how to modify the memory and port number of the WebLogic Server.

1. Modify the Weblogic server port number

1.1 open the console to start the server and open the Weblogic console. The default address is Http: // localhost: 7001/console . For details, see WebLogic Server deployment.

1.2 modify the port number to enter the console and select Environment> Server , Enter Examplesserver Management And then modify the port number at the listening port. For example, if the default port number of Weblogic is 7001, you can modify 7001 here. For example: After modifying the port number, remember to activate the modification to take effect.

2. Modify WebLogic Server Memory

2.1 modify the memory configuration of the commenv. CMD file after Weblogic is installed Bea \ wlserver_10.0 \ common \ bin Find Commenv. cmd File, Edit To modify part of the memory, as shown in Code . Modify the size of the memory configuration identified in to the desired size, for example: Note: There are two JVM memory settings in this configuration file, one built-in Virtual Machine in Weblogic and several virtual machines in the Local Machine, depending on which of the following is WebLogic used, only to know which modification is valid. By default, sun's JVM is used. It is recommended that all modifications be consistent.

2.2 modify the code of the setdomainenv. CMD file in the installation directory Bea \ user_projects \ Domains \ xxx_domain \ bin Find Setdomainenv. cmd File. The code is modified as follows:

    1. Set mem_args =-xms512m-xmx1024m
    2. Set mem_perm_size =-XX: permsize = 128 m
    3. Set mem_max_perm_size =-XX: maxpermsize = 256 m

2.3 check the effect after the above two steps are modified, the Weblogic memory configuration has been modified, and you can see your memory when starting weblogic. WebLogic can set-XMS (minimum memory usage)-xmx (maximum memory usage) and-XX: maxpermsize. Maximum memory usage: for UNIX, generally, it should not exceed 75% of the physical memory; for Windows, it should not exceed 50% of the physical memory;-XX: maxpermsize should generally be ms (maximum memory usage) half.

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.