Topic: Connection lost between Rails 3.2.7 and Postgres 8.4

Hi all,

(Sorry for my bad English)

I'm developing a large application in Rails 3.2.7, which is connected to a DB PostgresQL 8.4 installed on the same machine. The application runs on Apache with Passenger module.

The application is constantly used by hundreds of users and no problem for several hours and then, suddenly, Rails is no longer able to make requests to the DB without too I understand why. The sessions are stored in BD, then all users are disconnected. The login page making calls to records in the database, it is no longer attainable.

Here are the contents of database.yml:

production:
adapter: postgresql
database: ****** _prod
pool: 5
username: ******
password: ******
encoding: utf8

development:
adapter: postgresql
database: ****** _dev
pool: 5
username: ******
password: ******
encoding: utf8

Here's what happens as a controller error trying to access the DB:

- Code: time = (Parameter.find (: first,: conditions => [

Last edited by remiuz (2012-10-11 03:14:29)