problems using jhat with mlvm and jruby

Stephen Bannasch stephen.bannasch at deanbrook.org
Sat Jul 31 15:35:21 PDT 2010


>Le 31/07/2010 19:56, Stephen Bannasch a écrit :
>> 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
>>   
>
>Is it working with regular jdk7 VM ?

I updated my build scripts so I'm building both 1.7.0 to 1.7.0-mlvm. I also updated my pickjdk bash function to easily switch from 1.7.0 to 1.7.0-mlvm.

The same error occurs in 1.7.0


More information about the mlvm-dev mailing list