JXM连接配置
来源:互联网 发布:同性题材网络剧泰国 编辑:程序博客网 时间:2024/05/29 07:32
公司正好做了个一个java项目,使用h2 kv数据库,因为会查询到1天、7天、30天等数据,1、7天的接口数据正常,但是调用30天的时候,CPU满载,线程都BLOCK,Jstack看到的都是cache载入有问题,这时候就想用VM去监控java的进程,查看各线程和类的工作状态
其实只要在catalina.sh中,加入:
- CATALINA_OPTS="$CATALINA_OPTS -Djava.rmi.server.hostname=192.168.8.7
- -Dcom.sun.management.jmxremote.port=8088
- -Dcom.sun.management.jmxremote.ssl=false
- -Dcom.sun.management.jmxremote.authenticate=false"
注意这里是用CATALINA_OPTS,而不是网上说的JAVA_OPTS,并且需要注意tomcat的启动用户,装tomcat的时候默认用户是work,而之前一直用root去配置jmx,导致百试无果,后来su - work,配置下,OK
0 0
- JXM连接配置
- JXM
- Enable JXM Remote Monitor
- Python连接Redis连接配置
- Python连接Redis连接配置
- Hibernate连接sqlite连接配置
- Python连接Redis连接配置
- Python连接Redis连接配置
- 配置数据连接池
- tomcat连接池配置
- 连接池的配置
- Tomcat5连接池配置
- 连接池的配置
- Tomcat连接池配置
- struts连接池配置
- oracle连接池配置
- mysql+hibernate连接配置
- Hibernate连接池配置
- sqlite sqlite3_bind_int sqlite3_bind_text
- 二分查找法 (java版)
- (Convolutional Neural Networks)CNN-卷积神经网络学习
- Android学习之 UI--ListView
- libevent+protobuf轻松搭建tcpserver
- JXM连接配置
- 编程之美读书笔记2.9—斐波那契数列
- 怎样成为高薪的UI设计师
- Android Intent的几种用法全面总结
- javascript cookie实现
- ORACLE LOGGING 、FORCE LOGGING 、NOLOGGING、归档模式、非归档模式
- jQuery选择器进行选择添加和删除样式
- spy++使用方法
- byte,string,long等通过位移操作相互转化