服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

使用tomcat为proxool启用JMX

我试图让proxool的MBeans可用,以便我可以使用jconsole查看/操作它们。 我有jconsole工作,但我没有看到与proxool有关的任何东西。 该系统正在使用Sun Java 1.5.0_17(我知道,我知道…我正在与开发人员进行升级)。 通过在我的tomcat 5.5启动脚本中修改$ JAVA_OPTS来启用JMX: SJO="$SJO -Dcom.sun.management.jmxremote" SJO="$SJO -Dcom.sun.management.jmxremote.port=4998" SJO="$SJO -Dcom.sun.management.jmxremote.authenticate=false" SJO="$SJO -Dcom.sun.management.jmxremote.ssl=false" JAVA_OPTS="$JAVA_OPTS $SJO" 我在server.xml中使用JNDIconfiguration了proxool: <GlobalNamingResources> <Resource name="jdbc/database" auth="Container" type="javax.sql.DataSource" factory="org.logicalcobwebs.proxool.ProxoolDataSource" user="username" password="password" proxool.driver-url="jdbc:oracle:thin:@fqdn.example.com:1521:MYSID" proxool.driver-class="oracle.jdbc.driver.OracleDriver" proxool.alias="mysid" proxool.maximum-connection-count="20" proxool.statistics="20s,5m,15m" proxool.statistics-log-level="INFO" proxool.jmx="true" proxool.verbose="true" /> </GlobalNamingResources> 我的testing.jsp可以运行查询,我可以使用与proxoolpipe理servlet的连接来查看它,但是我不确定是否还有更多需要在tomcat或proxool中configuration以获取JMX的function。 build议吗? jmxproxy信息编辑: jmxproxy servlet正在工作 – 当我访问URL http://tomcatserver.example.com:4999/manager/jmxproxy/?qry=*:type%3DRequestProcessor,* ,结果是: OK – Number of results: 2 Name: Catalina:type=RequestProcessor,worker=http-8080,name=HttpRequest0 modelerType: […]