当前位置:网站首页>EAS 集群环境server 实例内存分配
EAS 集群环境server 实例内存分配
2022-07-21 18:02:00 【Gecko (脑)】
实例启动失败,admin.log日志提示如图所示
【原因】
1、根据报错内容“Error occurred during initialization of VM”和“Too small initial heap fornew size specified”,说明在加载jvm初始化heap的时候,内存太小导致不能加载成功。
2、继续向上查找admin.log,发现初始化jvm只有128M;这个时候查看set-server-env.bat的文件,参数JVM_INITIAL_HEAP_SIZE和JVM_MAX_HEAP_SIZE的设置为:
SETJVM_INITIAL_HEAP_SIZE=128m
SETJVM_MAX_HEAP_SIZE=768m
【操作步骤】
1、修改eas/server/profiles/server*/bin/set-server-env.bat的如下参数,设置为合理的值,之后重启实例。
SETJVM_INITIAL_HEAP_SIZE=1024m
SETJVM_MAX_HEAP_SIZE=1024m
【说明】
注意:上面设置的只是针对32bit的windows环境来举例,针对不同的客户环境,请根据实际情况设置大小。
一、针对64bit的windows环境
调整eas的内存到3GB,集群环境每一个server下面的文件都要改(需要64bit的os环境才能修改为3g,32bit的环境请咨询总部或参看上面)
window环境下,修改这个文件:eas\server\profiles\server#\bin\set-server-env.bat
1、打开eas\server\profiles\server#\bin\set-server-env.bat
注意:(群集环境中每个实例下的配置文件都需要修改)。
修改为以下参数值:
SET JVM_INITIAL_HEAP_SIZE=3072m
SET JVM_MAX_HEAP_SIZE=3072m
SET JVM_CUSTOM_PARAMS= -Xgcpolicy:gencon -Xmn500m -Xpartialcompactgc ------注意windows环境改set-server-env.bat 这个地方 -Xpartialcompactgc 的时候,不需要引号,linux环境才需要引号。
2、保存后重启EAS server (集群环境就重启集群)生效。
二、针对64bit的 linux AIX环境:
aix& linux环境下,修改eas\server\profiles\server#\bin\set-server-env.sh
1、打开eas\server\profiles\server#\bin\set-server-env.sh(linux文件举例)
注意:(群集环境中每个实例下的配置文件都需要修改)。
修改为以下参数值:
SET JVM_INITIAL_HEAP_SIZE=3072m
SET JVM_MAX_HEAP_SIZE=3072m
SET JVM_CUSTOM_PARAMS= -Xgcpolicy:gencon -Xmn500m "-Xpartialcompactgc"
2、保存后重启EAS server (集群环境就重启集群)生效。
边栏推荐
猜你喜欢
High frequency leetcode deep search part: 98 Validate binary search tree
Array of C language
Geospatial matrix by province, city and county: multi index data sets such as prefecture level city space and geographical distance matrix
高频leetcode深搜部分:剑指 Offer 36. 二叉搜索树与双向链表
Review 后台管理系统实战:请求参数的 2 种封装风格
[original] principle of an automatic nine point calibration tool (including part of the source code)
写了2个月的借贷系统的心得
修改Hosts文件自定义本机IP域名
程序员那些年的斗智斗勇!!!
C语言之位操作和整形的补位
随机推荐
以构建补丁形式打包时,客户端加载不到元数据。
1978-2021 China Statistical Yearbook, 2003-2019 (provincial and municipal panel data), 1999-2019 (county panel data)
嵌入式之认识网卡phy自协商
Oracle函数大全之日期函数
Mathematical operation
SQL注入
High frequency leetcode deep search part: 695 Maximum area of the island
嵌入式之网络问题总结(网卡丢包、网卡无法识别)
refreshToken
MySQL installation configuration -version 8.0 -windows
飞机躲子弹小游戏案例
文献: Axure(简单介绍)
英语四级词汇
Geospatial matrix by province, city and county: multi index data sets such as prefecture level city space and geographical distance matrix
力扣题之整数反转
数组的反转(逆序输出)(定义一个数组并赋值按逆序输出这个数组)
响应式布局——字体常用单位
Statistics of uni app access to Youmeng
High frequency leetcode deep search part: 617 Merge binary tree
高频leetcode深搜部分:剑指 Offer 36. 二叉搜索树与双向链表