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.
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:
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