开发者

VisualVM can't connect to any PID on Snow Leopard?

开发者 https://www.devze.com 2022-12-24 22:32 出处:网络
No matter what I start up, Visual VM just gives me \"Unknown Application\" and \"Not supported for this JVM\" on my Mac.

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 us开发者_运维百科ing "-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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号