2013-11-15 3 views
3

내 랩톱에서 실행되는 Jprofiler UI를 원격 서버에서 실행되는 뮬 서버에 연결하는 방법은 무엇입니까? jprofiler를 서버 상자에 원격으로 설치하고 jpenable을 실행하여 뮬 서버에 연결하려고 시도했지만 불가능합니다. 여기에 오류가 있습니다.원격 jprofiler와 뮬

Connecting to org.mule.module.reboot.MuleContainerBootstrap start0 [9828] ... Please select the profiling mode: GUI mode (attach with JProfiler GUI) [1, Enter] Offline mode (use config file to set profiling settings) [2] 1 ERROR: Attaching is not supported: Unable to open socket file: target process not responding or HotSpot VM not loaded com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded at sun.tools.attach.LinuxVirtualMachine.<init>(LinuxVirtualMachine.java:100) at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:63) at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:195) at com.jprofiler.frontend.attach.c.b(ejt:265) at com.jprofiler.frontend.attach.c.a(ejt:252) at com.jprofiler.frontend.attach.c.a(ejt:222) at com.jprofiler.frontend.EnableApplication.a(ejt:118) at com.jprofiler.frontend.EnableApplication.g(ejt:81) at com.jprofiler.frontend.EnableApplication.main(ejt:238) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.install4j.runtime.launcher.Launcher.main(Unknown Source)

답변

1

JVM의 첨부 메커니즘은 매우 신뢰할 수 없습니다, 그것은 도구 공급 업체의 통제 밖에있는 그 실패의 원인이 될 수있는 상황이 있습니다.

먼저 jpenable이 프로파일 링하려는 응용 프로그램과 동일한 사용자로 실행되는지 확인하십시오. 동일한 사용자를 사용하는 것이 효과가 없다면 프로파일 링을위한 VM 매개 변수를 응용 프로그램의 시작 명령에 추가하고 다시 시작해야합니다.

당신은 얻을 수

세션 -

를 호출하여 JProfiler와의 해당 매개 변수> 통합 Wizards-> 새 원격 통합

와 마법사의 단계를 다음과 같습니다. 는/usr/lib 디렉토리/JVM (그것은 777으로 설정)에

+1

실행 JProfiler와 프로브 나를 위해 그것을 짓을 하였다. 감사! –

0

변경 권한 (루트가 아닌 같은) 자바 응용 프로그램의 사용자로