Project

General

Profile

Actions

Defect #12480

open

Gantt to PNG not working. Thin freeze with Redmine. High CPU usage.

Added by Anatolii Vorona over 11 years ago. Updated about 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Gantt
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

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

Files

Selection_002.png (78 KB) Selection_002.png Anatolii Vorona, 2012-11-30 20:47
Selection_003.png (54 KB) Selection_003.png Anatolii Vorona, 2012-11-30 20:47

Related issues

Has duplicate Redmine - Defect #12732: Serveroverload after Gantt PNG exportClosed

Actions
Actions #1

Updated by Daniel Felix about 11 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

Actions #2

Updated by Daniel Felix about 11 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?

Actions #3

Updated by Anatolii Vorona about 11 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.

Actions #4

Updated by Jean-Philippe Lang about 11 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.

Actions #5

Updated by Daniel Felix about 11 years ago

Well the export to PNG is good for meetings. But a PDF would be good enough too.

Actions

Also available in: Atom PDF