Hello, I am a newbie with rails, so I beg your pardon for any stupid question. I have a development setup with rails 11.1 / webrick / oracle. With each new request I make on rails, a new DB connection is established. The number of DB connections keeps growing until the max number of oracle processes is reached, causing an error. Is this because a new Thread is created by Webrick on each request ? I would appreciare any help on this matter. Thanks, JF PS: The power of this framework is incredible !!! _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Thanks for your reply. I am using the database.yml way without any explicit connection call. -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of David Morton Sent: Tuesday, April 05, 2005 10:48 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] DB connections number increasing -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Faissolle, Julien wrote: | Hello, | I am a newbie with rails, so I beg your pardon for any stupid | question. I have a development setup with rails 11.1 / webrick / | oracle. With each new request I make on rails, a new DB connection is | established. The number of DB connections keeps growing until the max | number of oracle processes is reached, causing an error. Is this | because a new Thread is created by Webrick on each request ? I would | appreciare any help on this matter. I had the same thing happen to me with mysql when I specified a connection call in the model. However, when I use the database.yml, everything is fine. I suspect there''s a bug here somewhere. - -- David Morton Maia Mailguard server side anti-spam/anti-virus solution: http://www.maiamailguard.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCUlC7SIxC85HZHLMRAuQPAJ9cDDbJZR5iXZyzin0MDKIYyh+AzgCfQCDR 4bfYD8lET+dD7BFnrGcFt/k=bgyV -----END PGP SIGNATURE----- _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Faissolle, Julien wrote: | Hello, | I am a newbie with rails, so I beg your pardon for any stupid question. | I have a development setup with rails 11.1 / webrick / oracle. With each | new request I make on rails, a new DB connection is established. The | number of DB connections keeps growing until the max number of oracle | processes is reached, causing an error. Is this because a new Thread is | created by Webrick on each request ? I would appreciare any help on this | matter. I had the same thing happen to me with mysql when I specified a connection call in the model. However, when I use the database.yml, everything is fine. I suspect there''s a bug here somewhere. - -- David Morton Maia Mailguard server side anti-spam/anti-virus solution: http://www.maiamailguard.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCUlC7SIxC85HZHLMRAuQPAJ9cDDbJZR5iXZyzin0MDKIYyh+AzgCfQCDR 4bfYD8lET+dD7BFnrGcFt/k=bgyV -----END PGP SIGNATURE-----