Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Using jvisualvm to profile memory usage

2775971Oct 16 2014 — edited Oct 16 2014

Hello,

I want to profile the memory used by the various classes of a Java appliction. I tried using jvisualvm which comes with the jdk. Both the jvisualvm and the application are running on the same linux server ( old jdk1.6.0_16 ). I use X windows to get the jvisualvm on a windows PC.

I cant start jvisualvm and connect to the application. I see the profiler tab and the CPU and Memory button. When I press the Memory or CPU button, it hangs a little and I finally get a dialog with no text, a red cross and a OK button.

I am kind of new to profiling so I may be doing something stupid. Do I need to set any flag when starting the java application ?

Thanks

Giolbert

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 13 2014
Added on Oct 16 2014
0 comments
706 views