2012-12-06 4 views
7
내가 jconsole를 사용하여 원격 프로세스를 모니터링하려고

이 내가 jconsole의 오류는 다음과 같습니다 java.io.EOFException

jconsole -debug localhost:4080 

을 사용하는 명령이었다 그리고 이것은 스택 추적입니다 I 얻을

java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
    java.io.EOFException 
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286) 
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184) 
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322) 
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) 
    at sun.tools.jconsole.ProxyClient.checkSslConfig(ProxyClient.java:217) 
    at sun.tools.jconsole.ProxyClient.<init>(ProxyClient.java:110) 
    at sun.tools.jconsole.ProxyClient.getProxyClient(ProxyClient.java:463) 
    at sun.tools.jconsole.JConsole$3.run(JConsole.java:510) 
Caused by: java.io.EOFException 
    at java.io.DataInputStream.readByte(DataInputStream.java:250) 
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:228) 

프로세스의 PID를 jconsole에 제공하면 성공적으로 연결할 수 있습니다.

답변

8

우리는

CATALINA_OPTS="-Djava.awt.headless=true -Xmx128M -server -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false" 

이 그것 (말)에서 모니터링 것이라고 바람둥이에게 포트 7091을 통해 JConsole의 것, 원격 프로세스가

기본적으로 추가를 모니터링하는 데에 연결할 수 있도록 바람둥이를 구성해야 떨어져서.

그런 다음 jconsole를 성공적으로 연결 이제

jconsole localhost:7091 

로 jconsole를 시작했다.

+0

안녕하세요. 나는 같은 Tomcat에서 구성해야하는 동일한 Exception.In 파일도 얻고 있습니다. 고맙습니다. – Prabha

+0

catalina.sh에 추가해야합니다. – amrk7

+0

포트 7091에서 성공적으로 연결되었지만 포트 8080에서 webapp이 실행되고 있습니다. 모니터링에 새로운데, 서버에 대한 webapp의 메모리 영향을 계속 볼 수 있습니까? 포트 7091에서 모니터링하고 있습니까? – KasparTr

관련 문제