Oracle JRockit Mission Control
发表于:2025-11-12 作者:千家信息网编辑
千家信息网最后更新 2025年11月12日,用于分析jrockit虚拟机性能,可以实时监控性能,分析内存使用等等,现在的版本上面有很详细的帮助,还TMD中文的,感谢甲骨文。服务器端配置简单,就是配置JMX1.准备访问控制的.access和.pa
千家信息网最后更新 2025年11月12日Oracle JRockit Mission Control
用于分析jrockit虚拟机性能,可以实时监控性能,分析内存使用等等,现在的版本上面有很详细的帮助,还TMD中文的,感谢甲骨文。
服务器端配置简单,就是配置JMX
1.准备访问控制的.access和.password文件
mkdir -p /etc/jre_accesscp $JAVA_HOME/jre/lib/management/jmxremote.password.template /etc/jre_access/jmxremote.passwordcp $JAVA_HOME/jre/lib/management/jmxremote.access /etc/jre_access/jmxremote.accessvi /etc/jre_access/jmxremote.password# ...# monitorRole QED# controlRole R&Dusername userpasswd vi /etc/jre_access/jmxremote.access##monitorRole readonly#controlRole readwrite \# create javax.management.monitor.*,javax.management.timer.* \# unregisterusername readwrite chmod 600 /etc/jre_access/jmxremote.passwordchmod 644 /etc/jre_access/jmxremote.access |
2.添加 启动jmx类
#jport=开启的监控端口#SERVERIP=服务所在服务器IP$JAVA_HOME/bin/java -Dcom.sun.management.jmxremote.port=$jport -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.access.file=/etc/jre_access/jmxremote.access -Dcom.sun.management.jmxremote.password.file=/etc/jre_access/jmxremote.password -Djava.rmi.server.hostname=$SERVERIP ...#接JAVA项目参数 |
3.tomcat添加JMX监控
和java项目差不多,采用的是yum安装的Tomcat/7.0.39
直接贴到tomcat7.conf里的JAVA_OPTS里面能够启动,但关闭蛋疼不能用,去掉参数就可以关闭
无奈把tomcat7.conf换成两份tomcat7_start.conf,tomcat7_stop.conf,并修改/etc/init.d/tomcat7
#---------#贴代码#---------cp /etc/tomcat7/tomcat7.conf /etc/tomcat7/tomcat7_start.confcp /etc/tomcat7/tomcat7.conf /etc/tomcat7/tomcat7_stop.conf vi /etc/tomcat7/tomcat7_start.conf# 添加如下内容..JAVA_OPTS="$JAVA_OPTS -verbosegc -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.access.file=/etc/jre_access/jmxremote.access -Dcom.sun.management.jmxremote.password.file=/etc/jre_access/jmxremote.password -Djava.rmi.server.hostname=218.58.x.x " vi /etc/init.d/tomcat7# 修改TOMCAT_CFG部分# Get the tomcat config (use this for environment specific settings)TOMCAT_CFG_start="/etc/tomcat7/tomcat7_start.conf"if [ -r "$TOMCAT_CFG_start" ]; then . $TOMCAT_CFG_startfi TOMCAT_CFG_stop="/etc/tomcat7/tomcat7_stop.conf"if [ -r "$TOMCAT_CFG_stop" ]; then . $TOMCAT_CFG_stopfi # 修改function parseOptions()function parseOptions_start() { options="" options="$options $( awk '!/^#/ && !/^$/ { ORS=" "; print "export ", $0, ";" }' \ $TOMCAT_CFG_start )" if [ -r "/etc/sysconfig/${NAME}" ]; then options="$options $( awk '!/^#/ && !/^$/ { ORS=" "; print "export ", $0, ";" }' \ /etc/sysconfig/${NAME} )" fi TOMCAT_SCRIPT="$options ${TOMCAT_SCRIPT}"} function parseOptions_stop() { options="" options="$options $( awk '!/^#/ && !/^$/ { ORS=" "; print "export ", $0, ";" }' \ $TOMCAT_CFG_stop )" if [ -r "/etc/sysconfig/${NAME}" ]; then options="$options $( awk '!/^#/ && !/^$/ { ORS=" "; print "export ", $0, ";" }' \ /etc/sysconfig/${NAME} )" fi TOMCAT_SCRIPT="$options ${TOMCAT_SCRIPT}"} #修改function start和stop内调用的parseOptionsfunction start() {... parseOptions_start...} function stop() {... parseOptions_stop...} #修改stop参数,执行两次 stop) stop >> /dev/null 2>&1 stop ;; |
这样客户端就可以通过Oracle JRockit Mission Control 连接监控JVM项目
本回完
监控
参数
项目
服务
性能
服务器
分析
配置
差不多
代码
内存
内容
可以通过
实时
客户
客户端
就是
所在
文件
无奈
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
数据库选择语句最大值
数据库怎么连接封装
商品数据库张国良
网络安全平面海报设计
国家网络安全整改
网络安全的等级分为哪四种
药品广告数据库胃康灵胶囊
常见的文件型数据库
电子支付与网络安全 小论文
火影服务器
船舶计算机与网络技术
GTA5 服务器在香港
简单介绍什么是云服务器
分析数据库的特征
银行网络安全项目
如何搭建微信服务器
数据库恢复的技术原理
服务器为什么是负载均衡
深圳工业软件开发靠谱吗
江阴华为服务器维修价格
德惠智能化网络安全
邵阳软件开发哪家好
网络安全的物理层次安全主要包括
肥西电话网络技术咨询简介
服务器机柜u
数据库sign函数
软件开发副总监岗位职责
腾讯云服务器系统官方网站下载
数据库的完整性设置
杭州塑胶模具制造管理软件开发