Thread names


#1

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

#2

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