Thread List

<%= link_to 'Back', :action => 'index' %>

<% main = Thread.main threads = Thread.list - [ main ] nr_threads = [] threads.delete_if { | thread | nr_threads << thread if thread.key? 'newrelic_label' } ([ main ] + threads).each_with_index do | thread, i | -%> <% end -%> <% if nr_threads.size > 0 -%> <% nr_threads.each_with_index do | thread, i | -%> <% end -%> <% end -%>
Application Threads
Name Status Group Priority Locals
<%= h(thread == main ? 'main' : thread.to_s) %> <%= h(thread.status || 'terminated with exception') %> <%= h(thread.group || 'none') %> <%= h thread.priority %> <%= thread.keys.map{|k| h k}.join("
") %>
 
New Relic Agent Threads
Name Status Group Priority Locals
<%= h thread['newrelic_label'] %> <%= h(thread.status || 'terminated with exception') %> <%= h(thread.group || 'none') %> <%= h thread.priority %> <%= (thread.keys - ['newrelic_label']).map{|k| h k}.join("
") %>