Search code examples
scalaubuntuvisualvm

VisualVM, Scala and Ubuntu?


I have a problem with VisualVM under Ubuntu 11.10 (64bit). I'm using the latest Java 1.6 version (1.6.0_29-b11) and Scala 2.9.1.

VisualVM does not show me CPU Usage in the Monitor's Tab (says: Not supported for this JVM.), the Threads Tab is missing and I cannot use the Sampler or Profiler. Actually I can click on CPU Profiling but nothing happens.

Everything works perfectly fine under Windows 7!

In the VisualVM logs I find this exception a few times:

com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded

Does anyone have an idea?


Solution

  • I've often sen things like this that are related to permissions. Make sure you have the correct permissions and/or are running as the same user as the JVM.