Defect #12480
Gantt to PNG not working. Thin freeze with Redmine. High CPU usage.
Status: | New | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Gantt | |||
Target version: | - | |||
Resolution: | Affected version: | 2.1.4 |
Description
# cat /etc/thin/redmine.yml pid: /home/redmine/www/tmp/pids/thin.pid log: /home/redmine/www/log/thin.log timeout: 30 max_conns: 1024 max_persistent_conns: 512 require: [] no-epoll: true environment: production chdir: /home/redmine/www socket: /tmp/thin-redmine.sock servers: 1 daemonize: true user: redmine group: redmine $ tail -n 15 production.log Started GET "/projects/some_project/issues/gantt.pdf?month=11&months=3&year=2012&zoom=4" for 37.229.111.111 at Fri Nov 30 20:40:13 +0200 2012 Processing by GanttsController#show as PDF Parameters: {"zoom"=>"4", "months"=>"3", "project_id"=>"some_project", "month"=>"11", "year"=>"2012"} Current user: user (id=3) Rendered text template (0.7ms) Sent data some_project-gantt.pdf (748.6ms) Completed 200 OK in 2432ms (Views: 748.1ms | ActiveRecord: 755.8ms) Started GET "/projects/some_project/issues/gantt.png?month=11&months=3&year=2012&zoom=4" for 37.229.111.111 at Fri Nov 30 20:40:22 +0200 2012 Processing by GanttsController#show as PNG Parameters: {"zoom"=>"4", "months"=>"3", "project_id"=>"some_project", "month"=>"11", "year"=>"2012"} Current user: user (id=3) $ tail thin.0.log >> Writing PID to /home/redmine/www/tmp/pids/thin.0.pid >> Changing process privilege to redmine:redmine >> Using rack adapter >> Thin web server (v1.5.0 codename Knife) >> Maximum connections set to 1024 >> Listening on /tmp/thin-redmine.0.sock, CTRL+C to stop
Related issues
History
#1
Updated by Daniel Felix over 9 years ago
The same thing happens on my machine, after some png export. If some patch is available, I could test this for you.
Running:
Ruby 1.8.x
Ubuntu 10.04 LTS
#2
Updated by Daniel Felix over 9 years ago
The same on another machine.
CentOS 6.3
Ruby 1.8.7 - latest patchlevel
It uses all four CPU's.
Maybe there could be some Exportoptions, to disable Export to some special formats?
#3
Updated by Anatolii Vorona over 9 years ago
possibly it's important.
this problem occurred on a vps openvz.
same server redmine 2.1(thin+nginx, from user redmine) on a xen vps works fine, without this bug.
#4
Updated by Jean-Philippe Lang over 9 years ago
As a workaround, you can bundle Redmine without rmagick to disable the PNG export: bundle install --without rmagick
. I think that this feature should be removed anyway.
#5
Updated by Daniel Felix over 9 years ago
Well the export to PNG is good for meetings. But a PDF would be good enough too.