Project

General

Profile

Redmine Hangs - Redmine Performance

Added by WMI Admin over 13 years ago

Hello Everybody.
Sometimes my Redmine hang.
It back to normal after Apache restart.

I found in Apache error log:

[ pid=27753 thr=3074397984 file=ext/apache2/Hooks.cpp:788 time=2011-06-08 19:57:00.410 ]: Either the vistor clicked on the 'Stop' button in the web browser, or the visitor's connection has stalled and couldn't receive the data that Apache is sending to it. As a result, you will probably see a 'Broken Pipe' error in this log file. Please ignore it, this is normal. You might also want to increase Apache's TimeOut configuration option if you experience this problem often.

[ pid=22705 thr=-605402918 file=utils.rb:176 time=2011-06-08 19:57:00.410 ]: *** Exception Errno::ECONNRESET in Passenger RequestHandler's client socket (Connection reset by peer) (process 22705, thread #<Thread:0xb7d491b4>):
        from /usr/lib/ruby/1.8/phusion_passenger/utils/unseekable_socket.rb:101:in `write'
        from /usr/lib/ruby/1.8/phusion_passenger/utils/unseekable_socket.rb:101:in `write'
        from /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:131:in `process_request'
        from /home/redminebt/redmine-1.2.0/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:10:in `each'
        from /home/redminebt/redmine-1.2.0/vendor/rails/actionpack/lib/action_controller/response.rb:149:in `call'
        from /home/redminebt/redmine-1.2.0/vendor/rails/actionpack/lib/action_controller/response.rb:149:in `each'
        from /home/redminebt/redmine-1.2.0/vendor/rails/actionpack/lib/action_controller/response.rb:162:in `call'
        from /home/redminebt/redmine-1.2.0/vendor/rails/actionpack/lib/action_controller/response.rb:162:in `write'
        from /home/redminebt/redmine-1.2.0/vendor/rails/actionpack/lib/action_controller/streaming.rb:98:in `send_file'
        from /home/redminebt/redmine-1.2.0/vendor/rails/actionpack/lib/action_controller/streaming.rb:96:in `open'
        from /home/redminebt/redmine-1.2.0/vendor/rails/actionpack/lib/action_controller/streaming.rb:96:in `send_file'
        from /home/redminebt/redmine-1.2.0/vendor/rails/actionpack/lib/action_controller/response.rb:150:in `call'
        from /home/redminebt/redmine-1.2.0/vendor/rails/actionpack/lib/action_controller/response.rb:150:in `each'
        from /home/redminebt/redmine-1.2.0/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:9:in `each'
        from /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:130:in `process_request'
        from /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
        from /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
        from /usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
        from /usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
        from /usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
        from /usr/lib/ruby/1.8/phusion_passenger/utils.rb:479:in `safe_fork'
        from /usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
        from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `__send__'
        from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
        from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
        from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:180:in `start'
        from /usr/lib/ruby/1.8/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
        from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
        from /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
        from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
        from /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
        from /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
        from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
        from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
        from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
        from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `__send__'
        from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
        from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
        from /usr/share/phusion-passenger/helper-scripts/passenger-spawn-server:99

I increased PassengerMaxPoolSize to 4 - but Redmine still hang.
I increased KeepAliveTimeout to 30 and Timeout to 600 - but I'm not sure that this will help.
How can I troubleshoot this ?

Ubuntu 9.04
Redmine 1.2.0(same issue was with 1.1.3)
Mem: 1024900k total, 531924k used, 492976k free,


Replies (3)

RE: Redmine Hangs - Redmine Performance - Added by WMI Admin over 13 years ago

this is my gems:

  • LOCAL GEMS ***

actionmailer (2.3.11, 2.3.5)
actionpack (2.3.11, 2.3.5)
activerecord (2.3.11, 2.3.5)
activeresource (2.3.11, 2.3.5)
activesupport (2.3.11, 2.3.5)
acts-as-taggable-on (2.0.6)
acts_as_taggable_on_steroids (1.2)
Ascii85 (1.0.1)
business_time (0.3.1)
daemon_controller (0.2.6)
fastthread (1.0.7)
file-tail (1.0.5)
holidays (1.0.1)
i18n (0.4.2)
icalendar (1.1.6)
mysql (2.8.1)
passenger (3.0.5)
pdf-reader (0.9.2)
prawn (0.11.1)
rack (1.1.2, 1.0.1)
rails (2.3.11, 2.3.5)
rake (0.8.7)
spruz (0.2.5)
ttfunk (1.0.1)

RE: Redmine Hangs - Redmine Performance - Added by WMI Admin about 13 years ago

View Responce Time

cat production.log | grep -I "Completed in" | awk '{print $3 " - " $11 }' | sed 's/ms//' | sort > res-time.txt

cat res-time.txt

120 - [https://redmine.domain.com/]
121 - [https://redmine.domain.com/projects/transfer/issues/new?issue%5Bparent_issue_id%5D=5422]
123 - [https://redmine.domain.com/projects/test-proj]

    (1-3/3)