Clojure performance measuring

334 views
Skip to first unread message

Jonathon McKitrick

unread,
May 11, 2013, 12:46:52 PM5/11/13
to clo...@googlegroups.com
If I cannot get New Relic to work, I'm going to stick to my development platform for initial optimization and memory troubleshooting.

What tools do you recommend for profiling memory under Clojure?  I didn't have much luck with VisualVM, since my Mac is a bit dated at this point, but I'd be willing to try again with a decent tutorial.

Stuart Sierra

unread,
May 12, 2013, 3:55:48 AM5/12/13
to clo...@googlegroups.com
We've found YourKit (a commercial product) to be helpful.
-S

Kelker Ryan

unread,
May 12, 2013, 8:30:22 AM5/12/13
to clo...@googlegroups.com
Try VisualVM. https://visualvm.java.net/

Here's a screenshot of the memory usage monitor https://visualvm.java.net/images/monitor.jpg

12.05.2013, 16:55, "Stuart Sierra" <the.stua...@gmail.com>:
> We've found YourKit (a commercial product) to be helpful.
> -S
>
> On Sunday, May 12, 2013 2:46:52 AM UTC+10, Jonathon McKitrick wrote:> If I cannot get New Relic to work, I'm going to stick to my development platform for initial optimization and memory troubleshooting.
>>
>> What tools do you recommend for profiling memory under Clojure? О©╫I didn't have much luck with VisualVM, since my Mac is a bit dated at this point, but I'd be willing to try again with a decent tutorial.
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Jonathon McKitrick

unread,
May 12, 2013, 8:41:32 AM5/12/13
to clo...@googlegroups.com
Does it help profile SQL calls as well?


--
Jonathon McKitrick


On Sun, May 12, 2013 at 8:30 AM, Kelker Ryan <thein...@yandex.com> wrote:
Try VisualVM. https://visualvm.java.net/

Here's a screenshot of the memory usage monitor https://visualvm.java.net/images/monitor.jpg

12.05.2013, 16:55, "Stuart Sierra" <the.stua...@gmail.com>:
> We've found YourKit (a commercial product) to be helpful.
> -S
>
> On Sunday, May 12, 2013 2:46:52 AM UTC+10, Jonathon McKitrick wrote:> If I cannot get New Relic to work, I'm going to stick to my development platform for initial optimization and memory troubleshooting.
>>
>> What tools do you recommend for profiling memory under Clojure?  I didn't have much luck with VisualVM, since my Mac is a bit dated at this point, but I'd be willing to try again with a decent tutorial.
You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/7g_w_LAKpzg/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.

Marc Hämmerle

unread,
May 12, 2013, 8:17:36 AM5/12/13
to clo...@googlegroups.com
Even though New Relic works best when used with a supported server/container, you'll still get some basic JVM stats like memory out of it. Other than that you could also take a look metrics (https://github.com/codahale/metrics) as it has JVM instrumentation in place and push the data to Graphite, Librato or Datadog.

That said, initial optimization probably makes most sense with tools like VisualVM and YourKit.



--

Marc Hämmerle

unread,
May 12, 2013, 5:35:13 PM5/12/13
to clo...@googlegroups.com
Not really - at least not for what you presumably want to do. If you want to stick with NewRelic you could have a look at their custom instrumentation: https://newrelic.com/docs/java/custom-instrumentation-with-the-java-agent); otherwise I'd use something like metrics, ostrich and instrument the calls myself (and most certainly their contexts).
Reply all
Reply to author
Forward
0 new messages