<%= t('Status') %>

<%= s = processes.size; number_with_delimiter(s) %>

<%= t('Processes') %>

<%= x = processes.total_concurrency; number_with_delimiter(x) %>

<%= t('Threads') %>

<%= ws = workset.size; number_with_delimiter(ws) %>

<%= t('Busy') %>

<%= x == 0 ? 0 : ((ws / x.to_f) * 100).round(0) %>%

<%= t('Utilization') %>

<%= format_memory(processes.total_rss) %>

<%= t('RSS') %>

<%= t('Processes') %>

<%= csrf_tag %>
<% lead = processes.leader %> <% sorted_processes.each do |process| %> <% end %>
<%= t('Name') %> <%= t('Started') %> <%= t('RSS') %>? <%= t('Threads') %> <%= t('Busy') %>  
<%= "#{process['hostname']}:#{process['pid']}" %> <%= process.tag %> <% process.labels.each do |label| %> <%= label %> <% end %> <% if process.stopping? %> quiet <% end %> <% if process.identity == lead %> leader <% end %>
<%= "#{t('Queues')}: " %> <% if process.weights %> <%= process.weights.sort_by { |weight| weight[0] }.map { |weight| weight.join(": ") }.join(", ") %> <% else %> <%= process.queues.sort.join(", ") %> <% end %> <% if process.version != Sidekiq::VERSION %>
<%= "#{t('Version')}: " %> <% if process.version %> <%= process.version %> <% else %> <%= t('Unknown') %> <% end %> <% end %>
<%= relative_time(Time.at(process['started_at'])) %> <%= format_memory(process['rss'].to_i) %> <%= process['concurrency'] %> <%= process['busy'] %>
<%= csrf_tag %>
<% unless process.stopping? %><% end %>

<%= t('Jobs') %>

<% if @workset.size > 0 && @total_size > @count %>
<%= erb :_paging, locals: { url: "#{root_path}busy" } %>
<% end %>
<% @workset.each do |process, thread, msg| %> <% job = Sidekiq::JobRecord.new(msg['payload']) %> <% end %>
<%= t('Process') %> <%= t('TID') %> <%= t('JID') %> <%= t('Queue') %> <%= t('Job') %> <%= t('Arguments') %> <%= t('Started') %>
<%= process %> <%= thread %> <%= job.jid %> <%= msg['queue'] %> <%= job.display_class %> <%= display_tags(job, nil) %>
<%= display_args(job.display_args) %>
<%= relative_time(Time.at(msg['run_at'])) %>