 Redmine long loading time
Redmine long loading time
Added by Artem Konoplin over 16 years ago
Hi! I am install the redmine using this guide: http://www.redmine.org/wiki/redmine/RedmineInstall
now i run redmine (under shell) using this command: ruby ./public/.rb
Next i wait a long time, like minute or two and see the generated page text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
...
Powered by <a href="http://www.redmine.org/">Redmine</a> © 2006-2008 Jean-Philippe Lang
....
In the production.log i see what page generation time like the 0.5-0.6 sec., and i don't understand why overall generation time is so big. Can anyone help? I am newbie to ruby and maybe i do something wrong?
irb, and ruby -v/rails -v runs instantly.
My system:
VPS on Debian 4.0/768 Mb/1.5Ghz/30Gb
ruby script/about
GLoc v1.1 running in development mode. Strings can be modified at runtime.
About your application's environment
Ruby version              1.8.7 (i486-linux)
RubyGems version          1.3.1
Rails version             2.1.2
Active Record version     2.1.2
Action Pack version       2.1.2
Active Resource version   2.1.2
Action Mailer version     2.1.2
Active Support version    2.1.2
Edge Rails revision       unknown
Application root          /var/www/vhosts/acom.su/subdomains/dev/httpdocs
Environment               development
Database adapter          mysql
Database schema version   101
If I set:
export RAILS_ENV=production
when i get next message:
ruby script/about
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- rails/info (MissingSourceFile)
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /var/www/vhosts/acom.su/subdomains/dev/httpdocs/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in  `require'
        from /var/www/vhosts/acom.su/subdomains/dev/httpdocs/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
        from /var/www/vhosts/acom.su/subdomains/dev/httpdocs/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
        from /var/www/vhosts/acom.su/subdomains/dev/httpdocs/vendor/rails/railties/lib/commands/about.rb:2
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from script/about:3
Replies (4)
     RE: Redmine long loading time
    -
    Added by Artem Konoplin over 16 years ago
    RE: Redmine long loading time
    -
    Added by Artem Konoplin over 16 years ago
  
  ruby script/about
Anyone can say how long this command work on your system?
     RE: Redmine long loading time
    -
    Added by Jean-Baptiste Barth over 16 years ago
    RE: Redmine long loading time
    -
    Added by Jean-Baptiste Barth over 16 years ago
  
  # time ruby script/about [...] real 0m13.075s user 0m12.040s sys 0m0.830s
=> about 13 seconds on my server.
Your problem is quite difficule to understand :
- you say you're using this command "ruby ./public/.rb" ; what is it exactly ? The way you try to start the server ??
- is your Redmine instance located in /var/www/vhosts/acom.su/subdomains/dev/httpdocs ?
- how did you put the files here ? script/about says rails/info is missing in gems, but if you have a stable release, rails is included and this is not necessary to have rails gem installed.
I'm a bit lost and I don't really know how to help you, maybe someone else will :-) Good luck
     RE: Redmine long loading time
    -
    Added by Artem Konoplin over 16 years ago
    RE: Redmine long loading time
    -
    Added by Artem Konoplin over 16 years ago
  
  Hi! Thank you for answer.
you say you're using this command "ruby ./public/.rb" ; what is it exactly ? The way you try to start the server ??
No. First i try to start server but always wait a long time and see a blank page. As i understand this is because of timeout. Then i try to look - may be i have a problem with script.
time ruby script/about
real    0m17.411s
user    0m6.042s
sys     0m2.652s
time public/dispatch.rb.example
[...]
real    0m22.205s
user    0m6.141s
sys     0m2.797s
"ruby ./public/.rb"
Sorry, forgot the name of the script =)
is your Redmine instance located in /var/www/vhosts/acom.su/subdomains/dev/httpdocs ?
Yes.
how did you put the files here ? script/about says rails/info is missing in gems, but if you have a stable release, rails is included and this is not necessary to have rails gem installed.
First i try to install gems as written in how-to by the command:
gem install rails -v=2.2.2
next i think may be this is not so correct for Debian, and install it via:
apt-get install rails
As i see now this is a normal loading time for ruby...
And i find the problem: site not loading because my provider deny any connections on non-standard port :)
Thank you for help so much!
     RE: Redmine long loading time
    -
    Added by Jean-Baptiste Barth over 16 years ago
    RE: Redmine long loading time
    -
    Added by Jean-Baptiste Barth over 16 years ago
  
  Rails version for Debian Etch is terribly old, you should use "gem" command to install it if you want. But the "RedmineInstall" page clearly mentions that you don't need to install rails if you use a stable/official version :
Official releases include the appropriate Rails version in their vendor directory. So no particular action is needed.