English 中文(简体)
VisualVM can t connect to any PID on Snow Leopard?
原标题:

No matter what I start up, Visual VM just gives me "Unknown Application" and "Not supported for this JVM" on my Mac.

I ve tried JBoss, Jetty, Eclipse - just to see if it would be able to identify / profile anything, and so far, nada.

$ java -version java version "1.6.0_17" Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

Running on Snow Leopard. I ve tried with the default visual vm (which appears to be 1.0) and a freshly downloaded version from https://visualvm.dev.java.net/download.html .

I also can t seem to get jconsole to connect to anything, and I think the two are related. I am using "-Xshare:off" as recommended to prevent crashing, but I can t connect anyway, so that s moot.

I ve also verified that Visual VM and these other apps are running from the same JVM:

VisualVM: 010-03-23 13:35:09 Full thread dump Java HotSpot(TM) 64-Bit Server VM (14.3-b01-101 mixed mode):

JBoss: 2010-03-23 13:35:57 Full thread dump Java HotSpot(TM) 64-Bit Server VM (14.3-b01-101 mixed mode):

I have no idea what s wrong. Anyone have any ideas?

最佳回答

I don t know if I have an answer, but is there any chance that you have an underscore in your user name?

I see similar problems, and found that there is an old bug in jps that causes problems if you have an underscore in your username. This was fixed in Java 1.6 (by Sun), but I m not sure it was by Apple. I ve found that if I use a user that does not have an underscore in the user name, things work on my Mac. But, with the underscore... well, not so much.

问题回答

暂无回答




相关问题
How to package Java Agent as Visual VM plugin

I have written a Java Agent along with an SWT GUI for controlling the agent. https://github.com/mchr3k/org.intrace/wiki I want to package this library into a plugin for VisualVM to allow the agent ...

Interpreting the results of a VisualVM profiling session

I have an application that writes some data (about 15mb in 80k tuples) into an SQLite database using this jdbc-driver on Mac OS X. This is done using transactions, the largest of which contains about ...

VisualVM can t connect to any PID on Snow Leopard?

No matter what I start up, Visual VM just gives me "Unknown Application" and "Not supported for this JVM" on my Mac. I ve tried JBoss, Jetty, Eclipse - just to see if it would be able to identify / ...

Still cannot connect Tomcat 6 remotely via VisualVM

If checked the other questions regarding this issue but so far no soultion. Here is my setup: TC6 runs on a debian vm on my macbook. in /etc/default/tomcat6.0 I have following options set: ...

MBean Simple Graph Monitor

I have some JMX Beans that expose performance information in my application. I would like to have some facility to plot an attribute of an MBean in a graph for monitoring (a la Windows Perf Mon). I ...

Total method time in Java VisualVM

In Java VisualVM, is there any way to display total method time, rather than "self time"? (The latter is not particularly useful, since it doesn t tell you anything about how much time methods ...

VisualVM breaks jetty

I m trying to profile application that is run by "mvn jetty:run", when I connect VisualVM to it and click on Profile jetty crashes with: Profiler Agent: Waiting for connection on port 5140 (Protocol ...

热门标签