dubbo-monitor 监控中心安装BUG处理
来源:互联网 发布:北京知金教育论坛 编辑:程序博客网 时间:2024/06/05 10:33
在给自己的阿里云装 dubbo监控系统的时候出现了 启动不起来的原因
## There is insufficient memory for the Java Runtime Environment to continue.# Native memory allocation (malloc) failed to allocate 1879048192 bytes for committing reserved memory.# Possible reasons:# The system is out of physical RAM or swap space# In 32 bit mode, the process size limit was hit# Possible solutions:# Reduce memory load on the system# Increase physical memory or swap space# Check if swap backing store is full# Use 64 bit Java on a 64 bit OS# Decrease Java heap size (-Xmx/-Xms)# Decrease number of Java threads# Decrease Java thread stack sizes (-Xss)# Set larger code cache with -XX:ReservedCodeCacheSize=# This output file may be truncated or incomplete.## Out of Memory Error (os_linux.cpp:2756), pid=9808, tid=139890146473728## JRE version: (7.0_75-b13) (build )# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.75-b04 mixed mode linux-amd64 compressed oops)# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again#
上面说的是没有足够的内存启动 监控 这个时候查看你解压出来的启动文件 vi start.sh文件就是启动文件
STDOUT_FILE=$LOGS_DIR/stdout.logLIB_DIR=$DEPLOY_DIR/libLIB_JARS=`ls $LIB_DIR|grep .jar|awk '{print "'$LIB_DIR'/"$0}'|tr "\n" ":"`JAVA_OPTS=" -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true "JAVA_DEBUG_OPTS=""if [ "$1" = "debug" ]; then JAVA_DEBUG_OPTS=" -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n "fiJAVA_JMX_OPTS=""if [ "$1" = "jmx" ]; then JAVA_JMX_OPTS=" -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false "fiJAVA_MEM_OPTS=""BITS=`java -version 2>&1 | grep -i 64-bit`if [ -n "$BITS" ]; then JAVA_MEM_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 "else JAVA_MEM_OPTS=" -server -Xms1g -Xmx1g -XX:PermSize=128m -XX:SurvivorRatio=2 -XX:+UseParallelGC "fiecho -e "Starting the $SERVER_NAME ...\c"nohup java $JAVA_OPTS $JAVA_MEM_OPTS $JAVA_DEBUG_OPTS $JAVA_JMX_OPTS -classpath $CONF_DIR:$LIB_JARS com.alibaba.dubbo.container.Main > $STDOUT_FILE 2>&1 &
发现启动需要2个g内存。。-Xmx2g -Xms2g -Xmn256m
-Xms128m JVM初始分配的堆内存 -Xmx512m JVM最大允许分配的堆内存,按需分配
-XX:PermSize=64M JVM初始分配的非堆内存
-XX:MaxPermSize=128M JVM最大允许分配的非堆内存,按需分配
由于我的linux 的内存就只有2个G
而在启动的时候dubbo-monitor 默认需要2G 所以启动不起来 修改成 -Xmx512m -Xms512m 在启动就好了
阅读全文
1 0
- dubbo-monitor 监控中心安装BUG处理
- dubbo-monitor安装、 监控中心 配置过程
- dubbo之安装监控中心monitor
- dubbo-monitor安装、 监控中心 配置过程
- dubbo-monitor安装、 监控中心 配置过程
- dubbo-monitor安装、 监控中心 配置过程
- dubbo-monitor安装、 监控中心 配置过程
- dubbo-monitor-simple-2.5.3-assembly 简易监控中心安装
- Dubbo-monitor安装监控中心及配置过程
- Dubbo-monitor安装监控中心及配置过程
- Dubbo之监控中心(Monitor)安装-yellowcong
- dubbo-monitor监控安装
- Dubbo学习(八):监控中心Monitor
- dubbo-monitor装配、 监控中心 配置过程
- dubbo 的monitor监控中心 配置过程
- dubbo 的monitor监控中心配置
- dubbo 的monitor监控中心配置
- Dubbo监控中心安装
- 射线和轴对齐包围盒相交检测-简洁算法(ray-aabb overlap test alogrithm)
- 最简单的基于FFmpeg的内存读写的例子:内存播放器
- 《深入探索C++对象模型》第三章:Data语意学
- 手机端 阅读 pdf 文件 touchPDF.js
- 编写第一个Python程序(向Python问个“Hello World“)
- dubbo-monitor 监控中心安装BUG处理
- VC加载初始化GDI+方法
- 66-Plus One
- HBase笔记-3.过滤器
- 显示背景隐藏文本 使用text-indent:-99999px 遇到的一些
- 2016 年 Java 优秀文章
- 深入理解Java异常处理机制
- 数学优化与凸集2(斯坦福凸优化笔记2)
- MulVAL 工具安装配置