Hm I've used JVisualVM before but not in cojunction with lein swank.
On my machine it appears to start two clojure.main processes both on
the client jvm, and referencing the clojure 1.2 jar despite having one
of the 1.3 versions in project.clj. Hrm..

On Jan 9, 6:15 am, Mark Engelberg <mark.engelb...@gmail.com> wrote:
> I'm trying to use JVisualVM to profile some Clojure code.
>
> One thing I successfully figured out from using the profiler was that
> lein swank was not actually starting the jvm in -server mode like I
> thought it was.  Arggh, now I have to figure out what's going wrong
> there.
>
> In the meantime, I fired up the "lein repl" which did start up in
> -server mode, and tried to do some profiling.  It tells me 80% of its
> time is being spent in:
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run()
>
> What does this mean?  Is this just an artifact of the connection
> between the profiler and the repl?
>
> The other time was mostly being spent in Clojure's hashmap classes.
> Is there any way to figure out which lines of my Clojure code actually
> triggered the time-consuming hash map operations?
>
> Is there a better free profiler I should be using?
>
> Thanks.

-- 
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

Reply via email to