Project

General

Profile

Actions

Bug #7259

closed

Rendering hosts/show.html.erb very slow (40s)

Added by Arnd Hannemann almost 10 years ago. Updated over 9 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Performance
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi,

we are using foreman 1.5.2 on debian wheezy and a puppet interval of 5 Minutes,
so we get quiet a view reports.

When viewing a host via https://foreman.../hosts/node
foreman is burning CPU and it takes around 40 Seconds for the default range of
7 Days.

The Logfile shows something like that:
Started GET "/hosts/....?range=7" for ...
Processing by HostsController#show as HTML
Parameters: {"range"=>"7", "id" => "node5"}
Rendered hosts/_overview.html.erb (33.0ms)
Rendered hosts/_metrics.html.erb (0.2ms)
Rendered hosts/show.html.erb within layouts/application (40714.1ms)
...
Completed 200 OK in 41113.9 ms (Views: 40673.2ms | ActiveRecord: 86.6ms)

For above timing example there are "1978" reports found. However, I think
there is something wrong, if it takes this longs on a reasonable fast
machine to display. As said, while viewing this page, the foreman/Rack
process handling this request is burning 100% cpu, so the database seems
out of the question here.


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Refactor #2232: Can we speed up loading of Host overview page.ClosedTomer Brisker02/20/2013Actions
Actions

Also available in: Atom PDF