Java Code - perform memory profiling remotely

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.

Answer:1

I would recommend you to use JProfiler.You can get it from here and found many helpful tutorials.Here is JProfiler manual

Answer:2

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

Answer:3

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
Answer:4

I need to find and display the the employee who has the maximum salary from the Farm. this is what I got so far public class Employee implements Comparable<Employee> { private String name; ...

I am trying to build a java server using AWS on an EC2 server on tomact. Why i am building is for a game i am making in unity. This will not be a real time game where I need a constant connection ...

I want use the android NDK to make my c++ engine work on android without having to rewrite the engine in java. Can system calls for android, for example touch input, accelerometer, windowing and all ...

I am creating a SpannerSingleton to stay connected for the duration of the app's life. I'm interested in connection durability... if there is a session/connection issue how can I recreate a session? ...