problems using jhat with mlvm and jruby

Stephen Bannasch stephen.bannasch at deanbrook.org
Sat Jul 31 10:56:56 PDT 2010


I'm not sure if jhat works with mlvm but I tried Charlie's first simple example here:

   http://blog.headius.com/2010/07/browsing-memory-jruby-way.html

and got the following error:

[dev]$ jmap -histo:live 77467
java.lang.NullPointerException
	at java.io.File.<init>(File.java:293)
	at sun.tools.attach.BsdVirtualMachine.findSocketFile(BsdVirtualMachine.java:252)
	at sun.tools.attach.BsdVirtualMachine.<init>(BsdVirtualMachine.java:65)
	at sun.tools.attach.BsdAttachProvider.attachVirtualMachine(BsdAttachProvider.java:63)
	at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:213)
	at sun.tools.jmap.JMap.attach(JMap.java:296)
	at sun.tools.jmap.JMap.histo(JMap.java:218)
	at sun.tools.jmap.JMap.main(JMap.java:138)

more details here: http://gist.github.com/502415


More information about the mlvm-dev mailing list