I'm learning that the tooling for the jvm covers a spectrum from 
pathetically broken to non-existent.

I've had some luck running jmap like "jmap -histo:live <pid>". Pipe it 
through head and run with watch, and you have a crude real-time monitor. 
E.g. running against the processing running from a SNAPSHOT uberjar:

watch jmap -histo:live $(ps axu | grep SNA[P] | sed -e 's/ \+/\t/g' | 
cut -f2) \| head -40





On Tuesday, September 17, 2013 2:14:20 AM UTC-7, Joachim De Beule wrote:
>
> Dear Brian,
>
> Thanks for your reply. I tried to use jmap, unfortunately it fails:
>
> bash-3.2$ jmap -F -dump:file=heap.bin 58708
> Attaching to process ID 58708, please wait...
> Debugger attached successfully.
> Server compiler detected.
> JVM version is 20.51-b01-457
> Dumping heap to heap.bin ...
> Exception in thread "main" java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at sun.tools.jmap.JMap.runTool(JMap.java:179)
> at sun.tools.jmap.JMap.main(JMap.java:110)
> Caused by: sun.jvm.hotspot.oops.UnknownOopException
>
> As for visualvm: it never seems to finish producing a heap dump :( 
>
> Joachim. 
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to