Open link in a new tab

Content

Expand project menu

Performance Issue - Urgent

Hi,
Just installed OpenProject2.4 successfully with mysql5.5, ruby1.8.7-p370
HW Config:
VMware
Intel Core2Duo 2.53
2 GB RAM

Problem:
localhost:3000 is loading smoothly, But when I try to access with IP:3000 from another PC it takes ages to load.
Does anyone know what would have gone wrong? If there is a solution please post.

Thanks.
Namala.

Message actions

Hi,

loading pages from another PC is really slow because of WEBrick (the built-in development web server). There are two ways out of it: Set-up a real production system, or replace WEBbrick and continue with the development set-up.

  1. A real production set-up can be done with the passenger gem . Passenger/Apache replace WEBrick and are way faster. Don’t forget to also set-up backups and monitoring.
  2. The easy and fast way is to leave your set-up as is and just replace WEBbrick. “Thin” is a good replacement - to integrate it, do the following:
  • edit (or create) the Gemfile.local file. Insert the line

gem ‘thin’

  • do bundle install to install thin and its dependencies

  • start your server with bundle exec thin -e production start (which uses some production settings, omit the -e production if you actually want to develop OpenProject)

The startup of the server should now look like this:


bundle exec thin -e production start  

> > Using rails adapter  
> > Thin web server (v1.5.1 codename Straight Razor)  
> > Maximum connections set to 1024  
> > Listening on 0.0.0.0:3000, CTRL+C to stop
> 
> 

yours,
Philipp

Message actions

Thanks.