Forum Stats

  • 3,854,654 Users
  • 2,264,394 Discussions


Using jvisualvm to profile memory usage

2775971 Member Posts: 1


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 ?



This discussion has been closed.