Use the jvisualvm tool that comes with the jdk- you should be able to
connect to the clojure process.

Looking at the memory usage graphs, and if the heap size is banging against
the max heap size, then you might just be using too small a heap size - try
upping it.

You can also install the visualgc plugin for jvisualvm to get more info on
timings.


Alternatively go to the Threads pane, and click Thread Dump during the 30
second pause - you should be able to confirm what actual code is running at
this point, which might give a clue to what is going on.


If you have a memory leak, the Heap Dump button on the Monitor tab lets you
interactively explore all memory in the jvm.  If there is a lot of
something, that might be the thing that is leaking.



On Mon, Sep 15, 2014 at 7:55 AM, François Rey <fmj...@gmail.com> wrote:

> GC would be the first suspect, but then it could also be combined with a
> swap issue, or a JVM bug.
> Have a look at this article, which ends with a concrete list of things to
> do:
> https://blogs.oracle.com/poonam/entry/troubleshooting_long_gc_pauses
>
>
> --
> 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/d/optout.
>

-- 
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/d/optout.

Reply via email to