现象:集群控制器内存太小,导致一直消耗cpu资源,在top界面看到排头第一的java进程就是集群控制器进程,需要加大内存。
适用版本EAS750、EAS800 的集群环境
解决方法:1.在\eas\eas\server\bin路径下,找到文件:server.pl,备份好改文件。2.编辑这个文件 462行开始如下所示:把红色部分修改为 -Xms512m -Xmx1024m即可,其他地方不变。 #===============================================================## ORM-RPC loadbalance Server Control##===============================================================substartDispatcher(){ my $jvmMemoptions = "-Xms64m-Xmx256m -Djava.io.tmpdir=$ENV{EAS_HOME}/iotmpdir" . $JVM_DEBUG_OPTIONS; my $jvmProps ="-Dlog4j.configuration=file:" . $common::EAS_HOME."/server/cluster/log4j_loadbalance.properties"; $jvmProps = $jvmProps . "-Dormrpc.config=" . $common::EAS_HOME ."/server/cluster/ormrpc_loadbalance.properties"; $jvmProps = $jvmProps . "-Djmxconnector.properties=" . $common::EAS_HOME."/server/cluster/jmxconnector.properties"; my $mainClass = "com.kingdee.eas.tools.launcher.Start"; my @progArgs = ("$common::EAS_HOME/server/cluster/loadbalance.pid","com.kingdee.bos.rpcwrapper.LoadBalanceServerMain"); my @classList = ( "\${EAS_HOME}/server/bin/tl_launcher.jar", "\${EAS_HOME}/server/lib/common/bos/classfile.jar", "\${EAS_HOME}/server/lib/common/bos/common.jar", "\${EAS_HOME}/server/lib/common/bos/ormrpc.jar", "\${EAS_HOME}/server/lib/common/trd/log4j-1.2.6.jar", "\${EAS_HOME}/server/lib/common/trd/js.jar", "\${EAS_HOME}/server/lib/common/trd/jmxri.jar", "\${EAS_HOME}/server/lib/common/trd/jmxremote.jar", "\${EAS_HOME}/server/lib/common/trd/jmxtools.jar", "\${EAS_HOME}/server/lib/common/trd/sigar.jar" ); my $classpath = &common::getClasspathByList(@classList); $COPYRIGHT_TITLE = "KingdeeORM-RPC LoadBalance"; if(&common::isOsWindows eq"true"){ &runJava($jvmMemoptions,$jvmProps, $classpath, $mainClass, @progArgs); }else{ my $standby = "false"; &startLoadBalanceBackground($standby, $jvmMemoptions, $jvmProps,$classpath, $mainClass, @progArgs); }} ------------------------------------------------------------------------------------------------------------------------------------------------------------- 关键字:集群控制器 LOAD加内存
12.png(57.32KB)
推荐阅读