当前位置:文档之家› weblogic集群

weblogic集群

10.64.6.241 ovp1 管理控制台
10.64.6.242 ovp2

下载wls1033_oepe111150_linux32.bin 到/opt

groupadd -g 501 dba
useradd -g 501 -u 501 weblogic
最好确保uid与gid一致


mkdir -p /export/home/weblogic
chown weblogic:dba /export/home/weblogic
cd /opt
chown weblogic:dba wls1033_oepe111150_linux32.bin
chmod u+x wls1033_oepe111150_linux32.bin

su - weblogic
cd /opt
./wls1033_oepe111150_linux32.bin

<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

Welcome:
--------

This installer will guide you through the installation of WebLogic 10.3.3.0. Type "Next" or enter to proceed to the next prompt.
If you want to change data entered previously, type "Previous". You may quit the installer at any time by typing "Exit".




Enter [Exit][Next]> next

<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

Choose Middleware Home Directory:
---------------------------------

"Middleware Home" = [Enter new value or use default "/home/weblogic/Oracle/Middleware"]




Enter new Middleware Home OR [Exit][Previous][Next]> /export/home/weblogic


<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

Choose Middleware Home Directory:
---------------------------------

"Middleware Home" = [/export/home/weblogic]

Use above value or select another option:
1 - Enter new Middleware Home
2 - Change to default [/export/home/weblogic/Oracle/Middleware]




Enter option number to select OR [Exit][Previous][Next]> next


<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

Register for Security Updates:
------------------------------

Provide your email address to be informed of security issues, install the product, and initiate configuration manager. https://www.doczj.com/doc/3413870801.html,/support/policies.html

1|Email:[]
2|My Oracle Support Password:[]
3|Receive Security Update:[Yes]



Enter index number to select OR [Exit][Previous][Next]> 3

<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

Register for Security Updates:
------------------------------

Provide your email address to be informed of security issues, install the product, and initiate configuration manager. https://www.doczj.com/doc/3413870801.html,/support/policies.html

"Receive Security Update:" = [Enter new value or use default "Yes"]



Enter [Yes][No]? no

<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

Register for Security Updates:
------------------------------

Provide your email address to be informed of security issues,

install the product, and initiate configuration manager. https://www.doczj.com/doc/3413870801.html,/support/policies.html

"Receive Security Update:" = [Enter new value or use default "Yes"]


** Do you wish to bypass initiation of the configuration manager and
** remain uninformed of critical security issues in your configuration?


Enter [Yes][No]? yes

<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

Register for Security Updates:
------------------------------

Provide your email address to be informed of security issues, install the product, and initiate configuration manager. https://www.doczj.com/doc/3413870801.html,/support/policies.html

1|Email:[]
2|My Oracle Support Password:[]
3|Receive Security Update:[No]



Enter index number to select OR [Exit][Previous][Next]> next

<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

Choose Install Type:
--------------------

Select the type of installation you wish to perform.

->1|Typical
| Install the following product(s) and component(s):
| - WebLogic Server
| - Oracle Coherence
| - Oracle Enterprise Pack for Eclipse

2|Custom
| Choose software products and components to install and perform optional configuration.





Enter index number to select OR [Exit][Previous][Next]> 1

<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

Choose Product Installation Directories:
----------------------------------------

Middleware Home Directory: [/export/home/weblogic]

Product Installation Directories:


1|WebLogic Server: [/export/home/weblogic/wlserver_10.3]
2|Oracle Coherence: [/export/home/weblogic/coherence_3.5]
3|Oracle Enterprise Pack for Eclipse: [/export/home/weblogic/oepe_11gR1PS2]




Enter index number to select OR [Exit][Previous][Next]> next

<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

The following Products and JDKs will be installed:
--------------------------------------------------

WebLogic Platform 10.3.3.0
|_____WebLogic Server
| |_____Core Application Server
| |_____Administration Console
| |_____Configuration Wizard and Upgrade Framework
| |_____Web 2.0 HTTP Pub-Sub Server
| |_____WebLogic SCA
| |_____WebLogic JDBC Drivers
| |_____Third Party JDBC Drivers
| |_____WebLogic Server Clients
| |_____WebLogic Web Server Plugins
| |_____UDDI and Xquery Support
| |_____Evaluation Database
|_____Oracle Coherence
| |_____Coherence Product Files
|_____Oracle Enterprise Pack for Eclipse
| |_____Common Files
|_____JDKs
|_____SUN SDK 1.6.0_18


|_____Oracle JRockit 1.6.0_17 SDK

*Estimated size of installation: 1,360.8 MB




Enter [Exit][Previous][Next]> next


<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

Installing files..

0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]




<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

Installing JDK....

0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]


Performing String Substitutions...





<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

Configuring OCM...

0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]


Creating Domains...





<---------------------------------------------- Oracle Installer - WebLogic 10.3.3.0 --------------------------------------------->

Installation Complete


Congratulations! Installation is complete.


Press [Enter] to continue or type [Exit]> 回车


安装完weblogic后开始部署实例

cd /export/home/weblogic/Oracle/Middleware/wlserver_10.3/common/bin
./setPatchEnv.sh
./config.sh

<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Welcome:
--------

Choose between creating and extending a domain. Based on your selection, the Configuration Wizard guides you through the steps
to generate a new or extend an existing domain.

->1|Create a new WebLogic domain
| Create a WebLogic domain in your projects directory.

2|Extend an existing WebLogic domain
| Use this option to add new components to an existing domain and modify configuration settings.





Enter index number to select OR [Exit][Next]> 1

<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Select Domain Source:
---------------------

Select the source from which the domain will be created. You can create the domain by selecting from the required components or
by selecting from a list of existing domain templates.

->1|Choose Weblogic Platform components
| You can choose the Weblogic component(s) that you want supported in your domain.

2|Choose custom template
| Choose this option if you want to use an existing template. This could be a custom created template using the Template
|Builder.





Enter index number to select OR [Exit][Pr

evious][Next]> 1

<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Application Template Selection:
-------------------------------



Available Templates
|_____Basic WebLogic Server Domain - 10.3.3.0 [wlserver_10.3]x
|_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.3.0 [wlserver_10.3] [2]
|_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.3.0 [wlserver_10.3] [3]



Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 2





<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Application Template Selection:
-------------------------------



Available Templates
|_____Basic WebLogic Server Domain - 10.3.3.0 [wlserver_10.3]x
|_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.3.0 [wlserver_10.3] [2] x
|_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.3.0 [wlserver_10.3] [3]



Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 3





<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Application Template Selection:
-------------------------------



Available Templates
|_____Basic WebLogic Server Domain - 10.3.3.0 [wlserver_10.3]x
|_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.3.0 [wlserver_10.3] [2] x
|_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.3.0 [wlserver_10.3] [3] x



Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> next

<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Edit Domain Information:
------------------------

| Name | Value |
_|________|_____________|
1| *Name: | base_domain |




Enter value for "Name" OR [Exit][Previous][Next]> mydomain





<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Edit Domain Information:
------------------------

| Name | Value |
_|________|__________|
1| *Name: | mydomain |

Use above value or select another option:
1 - Modify "Name"
2 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]> next


<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Select the target domain directory for this domain:
---------------------------------------------------

"Target Location" = [Enter new value or use default "/export/home/weblogic/user_projects/domains"]




Enter new Target

Location OR [Exit][Previous][Next]> next





<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode
servers.

| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"




Enter option number to select OR [Exit][Previous][Next]> 2

<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode
servers.

"*User password:" = []




Enter new *User password: OR [Exit][Reset][Accept]> weblogic1 此处密码不显示




<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode
servers.

| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | ******** |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]> 3





<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the A

dministrator role. This user is the default administrator used to start development mode
servers.

"*Confirm user password:" = []




Enter new *Confirm user password: OR [Exit][Reset][Accept]> weblogic1 此处密码不显示




<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode
servers.

| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | ******** |
3| *Confirm user password: | ******** |
4| Description: | This user is the default administrator. |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]> next

<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Domain Mode Configuration:
--------------------------

Enable Development or Production Mode for this domain.

->1|Development Mode

2|Production Mode




Enter index number to select OR [Exit][Previous][Next]> 2





<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Java SDK Selection:
-------------------

->1|JRockit SDK 1.6.0_17 @ /usr/local/weblogic/jrockit_160_17_R28.0.0-679
2|Sun SDK 1.6.0_18 @ /usr/local/weblogic/jdk160_18
3|Other Java SDK




Enter index number to select OR [Exit][Previous][Next]> 1





<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Select Optional Configuration:
------------------------------

1|Administration Server [ ]
2| [ ]
3|Managed Servers, Clusters and Machines [ ]
4|Deployments and Services [ ]
5|JMS File Store [ ]
6|RDBMS Security Store [ ]



Enter index number to select OR [Exit][Previous][Next]> 1

<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Select Optional Configuration:
------------------------------

1|Administration Server [x]
2| [ ]
3|Managed Servers, Clusters and Machines [ ]
4|Deployments and Services [ ]
5|JMS File Store [ ]
6|RDBMS Security Store [ ]



Enter index number to select OR [E

xit][Previous][Next]> 3





<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Select Optional Configuration:
------------------------------

1|Administration Server [x]
2| [ ]
3|Managed Servers, Clusters and Machines [x]
4|Deployments and Services [ ]
5|JMS File Store [ ]
6|RDBMS Security Store [ ]



Enter index number to select OR [Exit][Previous][Next]> next

只有做控制台的服务器需要选择Administration Server 其余节点只用选Managed Servers, Clusters and Machines



<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Configure the Administration Server:
------------------------------------

Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration
Server hosts the Administration Console which is used to perform administrative tasks.

| Name | Value |
_|__________________|_____________________|
1| *Name: | AdminServer |
2| *Listen address: | All Local Addresses |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"




Enter option number to select OR [Exit][Previous][Next]> 2

<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Configure the Administration Server:
------------------------------------

Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration
Server hosts the Administration Console which is used to perform administrative tasks.

| Name | Value |
_|__________________|_____________________|
1| *Name: | AdminServer |
2| *Listen address: | All Local Addresses |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |




Enter value for "Listen address" OR [Exit][Previous][Next]> 10.64.6.241





<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Configure the Administration Server:
------------------------------------

Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration
Server hosts the Administration Console which is used to perform administrative tasks.

| Name | Value |
_|__________________|_____________|
1|

*Name: | AdminServer |
2| *Listen address: | 10.64.6.241 |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |

Use above value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"
5 - Discard Changes




Enter option number to select OR [Exit][Previous][Next]> next





<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Configure Managed Servers:
--------------------------

Add or delete configuration information for Managed Servers. A typical production environment has one or more Managed Servers.
Each Managed Server is an instance of WebLogic Server used to host enterprise applications.

| Name* | Listen address* | Listen port | SSL listen port | SSL enabled |
_|_______|_________________|_____________|_________________|_____________|




Enter name for a new OR [Exit][Previous][Next]> next

<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Configure Clusters:
-------------------

Add or delete configuration information for clusters. A cluster consists of multiple server instances working together to
provide increased scalability and reliability.

| Name* | Cluster messaging mode | Multicast address | Multicast port | Cluster address |
_|_______|________________________|___________________|________________|_________________|




Enter name for a new Cluster OR [Exit][Previous][Next]> next





<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Configure Machines:
-------------------

Add or delete machines. A machine hosts one or more WebLogic Server instances. The Admin Server and Node Manager use this
machine definition to start remote servers.

| Name* | Node manager listen address | Node manager listen port |
_|_______|_____________________________|__________________________|




Enter name for a new Machine OR [Exit][Previous][Next]> next





<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Configure Unix Machines:
------------------------

Add or delete machines. A machine hosts one or more WebLogic Server instances. The Admin Server and Node Manager use this
machine definition to start remote servers.

| Name |
_|______|




Enter name for a new Unix Machine OR [Exit][Previous][Next]> next





<--------------------------------------------- Fusion Middleware Configuration Wizard -------------------------------------------->

Creating Domain...

0% 25% 50% 75% 100%
[----------

--|------------|------------|------------]
[***************************************************]


**** Domain Created Successfully! ****


-bash-3.00$

启动管理控制台
修改startWebLogic.sh
WLS_USER="weblogic"
export WLS_USER
WLS_PW="weblogic1"
export WLS_PW
SAVE_JAVA_OPTIONS="${JAVA_OPTIONS} -Dfile.encoding=GBK"

cd /export/home/weblogic/Oracle/Middleware/user_projects/domains/mydomain/bin
./setDomainEnv.sh
nohup ./startWebLogic.sh &




用命令启动集群
cd /export/home/Oracle/weblogic/user_projects/domains/weblogic/bin
修改startManagedWebLogic.sh ,
WLS_USER="weblogic"
export WLS_USER
WLS_PW="weblogic1"
export WLS_PW
JAVA_OPTIONS="-Dfile.encoding=GBK -Dweblogic.security.SSL.trustedCAKeyStore="/export/home/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/cacerts" ${JAVA_OPTIONS}"
export JAVA_OPTIONS

#新建启动节点服务的脚本,注意修改console_ip,和每个节点启动的服务进程名称server1和server2。
节点1
cd /export/home/weblogic/Oracle/Middleware/user_projects/domains/mydomain/bin
vi cntv_run_node.sh
nohup ./startManagedWebLogic.sh server1 http://10.64.6.241:7001 &
节点2
cd /export/home/weblogic/Oracle/Middleware/user_projects/domains/mydomain/bin
vi cntv_run_node.sh
nohup ./startManagedWebLogic.sh server2 http://10.64.6.241:7001 &


通过管理控制台启动集群

启动weblogic 节点管理器
cd /usr/local/weblogic/wlserver_10.3/server/bin
./setWLSEnv.sh
nohup ./startNodeManager.sh &

netstat -nl
tcp 0 0 0.0.0.0:5556 0.0.0.0:* LISTEN 节点管理器
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 10.64.6.241:7001 0.0.0.0:* LISTEN 控制台

在另一台机器中执行相同的安装,部署实例的时候domain的名字要和控制台服务器的一致,只用安装Managed Servers, Clusters and Machines 选项
安装完成后从控制台服务器拷贝两个文件到其他节点服务器
/usr/local/weblogic/user_projects/domains/weblogic/config/nodemanager/nm_password.properties
/usr/local/weblogic/user_projects/domains/weblogic/security/SerializedSystemIni.dat
启动节点管理管理器
cd /usr/local/weblogic/wlserver_10.3/server/bin
./setWLSEnv.sh
nohup ./startNodeManager.sh &


打开浏览器 http://10.64.6.241:7001/console 输入用户名密码 weblogic:weblogic1

点击左上的锁定并编辑

计算机-新建2个计算机,计算机名与服务器主机名一致
在一般信息中修改uid和gid为weblogic和bea
在节点管理器重修改监听地址为10.64.6.241和10.64.242

集群-新建,输入名字,选择消息传送方式为多播

服务器-新建-输入名字,ip地址,端口号,所属集群,完成后点击新建的服务器修改该服务器所属计算机,启用ssl监听设置ssl端口为8003
server1 10.64.6.241 7003 cluster-1 所

属计算机v-test ssl监听端口7003
server2 10.64.6.242 7004 cluster-1 所属计算机v-test1 ssl监听端口7003

所有都配好以后点击释放配置,然后在服务器也选控制标签,选择所有实例启动。

oracle linux5.5安装weblogic11g可能会慢,加入以下内容
在在setDomainEnv.sh文件最后加上如下内容
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.security.egd=file:/dev/./urandom"
export JAVA_OPTIONS

在用root用户启动weblogic的时候会在base_domain里产生root权限的文件,或者用root权限的文件覆盖了部分原来存在的
weblogic用户所属文件,当再次切换到weblogic用户后,启动的时候就会出现权限问题,所以报告上面的错误。这个错误就是
因为EmbeddedLDAP.tran文件的权限变成了root的。
错误解决:
修改相应文件和文件夹的权限即可



修改应用监听地址/export/home/weblogic/Oracle/Middleware/user_projects/domains/domain/config/config.xml
将应用7003端口的地址改成0.0.0.0 或者直接在管理控制台改服务器的监听地址为0.0.0.0


配置数据源
名字随便起
jndi名称要和程序一致一般用jdbc/myJDBC
驱动选择oracles driver(thin) for Instance connections
数据库名称用SID
输入主机名或ip地址 数据库用户名密码
在目标标签里选择应用服务器


修改/export/home/weblogic/Oracle/Middleware/wlserver_10.3/common/bin/commEnv.sh的内存大小可以更改节点管理器
的内存调用
如果是通过nohup ./startManagedWebLogic.sh server2 http://CONSOLE_IP:7001 & 命令手工启动应用
则是调用的setDomainEnv.sh里的参数
可以在执行手工起应用的命令前执行common/bin/commEnv.sh 这样手工起的命令就调用节点管理器的内存参数了


修改weblogic内存大小
可以解压64位jdk将其文件替换掉/export/home/weblogic/Oracle/Middleware/中的jdk160_18或jrockit_160_17_R28.0.0-679
目录中文件这样可以将setDomainEnv.sh中内存设置到很大

cd /export/home/weblogic/Oracle/Middleware/user_projects/domains/mydomain/bin
vi setDomainEnv.sh

WLS_HOME="${WL_HOME}/server"
export WLS_HOME

if [ "${JAVA_VENDOR}" = "Sun" ] ; then
WLS_MEM_ARGS_64BIT="-Xms3072m -Xmx3072m -XX:MaxPermSize=256m"
export WLS_MEM_ARGS_64BIT
WLS_MEM_ARGS_32BIT="-Xms2048m -Xmx2048m -XX:MaxPermSize=256m"
export WLS_MEM_ARGS_32BIT
else
WLS_MEM_ARGS_64BIT="-Xms3072m -Xmx3072m -XX:MaxPermSize=256m"
export WLS_MEM_ARGS_64BIT
WLS_MEM_ARGS_32BIT="-Xms2048m -Xmx2048m -XX:MaxPermSize=256m" 修改管理控制台和应用的内存大小
export WLS_MEM_ARGS_32BIT
fi


cd /export/home/weblogic/Oracle/Middleware/wlserver_10.3/common/bin
vi commEnv.sh

if [ "$PRODUCTION_MODE" = "true" ]; then
case $JAVA_VENDOR in
Oracle)
JAVA_VM=-jrockit
MEM_ARGS="-Xms1024m -Xmx1024m --XX:MaxPermSize=256m" 修改节点管理器的内存大小
;;


HP)
JAVA_VM=-server
MEM_ARGS="-Xms32m -Xmx200m -XX:MaxPermSize=128m"
;;
IBM)
JAVA_VM=
MEM_ARGS="-Xms32m -Xmx200m"
;;
Sun)
JAVA_VM=-server
MEM_ARGS="-Xms32m -Xmx200m -XX:MaxPermSize=128m"
;;
Apple)
JAVA_VM=-server
MEM_ARGS="-Xms32m -Xmx200m -XX:MaxPermSize=128m"
;;
*)
JAVA_VM=
MEM_ARGS="-Xms32m -Xmx200m"
;;
esac
else
case $JAVA_VENDOR in
Oracle)
JAVA_VM=-jrockit
MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=256m" 修改节点管理器的内存大小

JAVA_OPTIONS="${JAVA_OPTIONS} -Xverify:none"
;;
HP)
JAVA_VM=-client
MEM_ARGS="-Xms32m -Xmx200m -XX:MaxPermSize=128m"
;;
IBM)
JAVA_VM=
MEM_ARGS="-Xms32m -Xmx200m"

相关主题
文本预览
相关文档 最新文档