redmine is slow

Added by tapan S over 9 years ago

Hi Guys,

Recently, I migrated redmine from redmine0.8 to redmine0.9. The migration was successful but my the latest redmine is comparatively slow.

ruby seems to consume more memory/cpu even though fastcgi is enabled.

I am not able to figure it out whether the issue is with database connectivity or something else...!

This is my apache configuration for redmine. I have fine tuned passenger here to make ruby faster.

LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
<VirtualHost *:80>
RailsSpawnMethod smart
PassengerMaxRequests 5000
PassengerStatThrottleRate 5
RailsAppSpawnerIdleTime 0
RailsFrameworkSpawnerIdleTime 0
PassengerPoolIdleTime 1000
ServerName redmine.mydomain.com
DocumentRoot /opt/redmine/public
<Directory /opt/redmine/public>
SetEnv RAILS_ENV production
AllowOverride all
Options Indexes +ExecCGI FollowSymLinks -MultiViews
AddHandler fcgid-script .fcgi
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Can anybody point at something?

Replies (10)

RE: redmine is slow - Added by Felix Schäfer over 9 years ago

Are you using fcgi or passenger? What DB are you using? Please also post the output of rails script/about RAILS_ENV=production run in your redmine directory.

RE: redmine is slow - Added by tapan S over 9 years ago

I am using mysql database.

##passenger or fcgi...? How to find out? Because I have followed multiple documents to install redmine.

ruby script/about.....

Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.5
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Application root /opt/redmine
Environment development
Database adapter mysql
Database schema version 20100221100219

About your Redmine plugins
Customer plugin 0.2.0

RE: redmine is slow - Added by tapan S over 9 years ago

Hello,

My redmine server is using Passenger. Production.log is full of phusion passenger information. But fcgi and passenger both are installed in my server.

Hope this would give you more closed look to the issue.

RE: redmine is slow - Added by Felix Schäfer over 9 years ago

Then remove all configuration regarding fcgi and move (or delete) the .htaccess.

RE: redmine is slow - Added by tapan S over 9 years ago

Hi,
I disabled the module fcgi. Removed .htaccess, dispatch.cgi and dispatch.fcgi from public directory. Still no improvment.

RE: redmine is slow - Added by Felix Schäfer over 9 years ago

Have you restarted apache so it notices the changes? What errors do you have?

RE: redmine is slow - Added by tapan S over 9 years ago

I have restarted Apache.

There is no error at all. Redmine works fine but it is quite SLOW.
I just checked, ruby is consuming 40 to 50% of memory while browsing through redmine pages.

RE: redmine is slow - Added by Felix Schäfer over 9 years ago

Sorry, I thought you had problems getting it to run. What machine is it running on? Do you have the mysql or the ruby-mysql gem installed? Do you have other things running on that machine that might also show slowness?

RE: redmine is slow - Added by tapan S over 9 years ago

System configuration point of view there is no problem. It is a dedicated server. This server I am using only for svn and redmine. No other application is on this server.

I am using mysql no ruby-mysql.

RE: redmine is slow - Added by tapan S over 9 years ago

Is there any thing to do with ruby here?

(1-10/10)