Reputation: 1721
I am running a Java code in a server (remotely) by using javac. Now, I want to perform memory profiling remotely because as YourKit say's,
Picked up JAVA_TOOL_OPTIONS:
Cannot start the profiler UI: display is not available on this machine.
Can anybody help me how can I do this easily.
Upvotes: 1
Views: 1474
Reputation: 725
If your server starts with YourKit profiler agent (according to the output) you just need to start YourKit profiler UI and connect it to the remote profiler agent. There is "Monitor Remote Applications" on profiler start screen
Here is the direct links to YourKit help:
http://www.yourkit.com/docs/11/help/profiling_j2ee_remote.jsp
Upvotes: 2
Reputation: 3170
This is exact what is happening in our pre-production env...
actually if you want to launch the YourkitUI on remote machine directly, the way I am currently doing it is using Xmanager->xshell http://www.netsarang.com/products/xmg_overview.html You also need to install X-server as precondition. You will be able to run any kind of UI remotely, not only yourkit.
also make sure your yourkit launch conf like this
-agentpath:$YOURKIT_HOME/bin/linux-x86-64/libyjpagent.so=disablestacktelemetry,
disableexceptiontelemetry,builtinprobes=none,delay=20000,sessionname=jboss-pre-prod
Upvotes: 0
Reputation: 99
if this helps you. If this process is not helping may be we can think of any other option.
Upvotes: -1