2012/10/22 larry google groups <lawrencecloj...@gmail.com> > I have not yet added any security to the app, so there is a chance that > someone is shutting it down with spam. (I just got this app up last week, > and was planning to add security checks this week). > > I do not know much about programming for the JVM, so I am curious, how do > I diagnose this? I could add some logging, but what should I log? What > should I be looking for? >
Start by simply logging requests. If that does not reveal much, add JVM flags that will log GC runs to a file and dump the heap to a file when OutOfMemory exceptions are thrown [1]. Use VisualVM to monitor your app's heap size and other parameters remotely [2]. Also, take a look at your system log. Are there any messages about processed being killed by the OOM (out-of-memory) killer? 1. http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html 2. http://docs.oracle.com/javase/7/docs/technotes/guides/visualvm/applications_remote.html -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- 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