Thread names

Hello guys,

can I give names to the JRuby threads? I am trying to debug the GC of
a jruby application and in jconsole I can see only thread-1, thread-2,
etc. I would like to assign names so I know which piece of ruby code
is running each thread.

Thanks in advance,

GA


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I am not aware of any way to set thread name in Ruby, but you can just
access
the Java threading system directly:

java.lang.Thread.currentThread.setName(‘JRubyWorker’)

Peter

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs