[Backgroundrb-devel] MySQL too many connections?

Ben Johnson bjohnson at contuitive.com
Sun Jul 30 23:49:40 EDT 2006

Does any have any idea why I would get:

Mysql::Error: Too many connections

I am creating new threads in my background process. I know  
allow_concurrency is set to true. Does this create a new database  
connection when a new thread is created? Because what I'm doing is  
similar to this:

@threads[model.id] = Thread.new do


I also kill off these threads and over write some of the @threads  
keys. Does it clean up the connections for me or do I need to do this  

Lastly, could this be because 2 threads are trying to access the  
database at the same time?

Thanks for your help.

Thank You,
Ben Johnson
E: bjohnson at contuitive.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060730/56c4499f/attachment.html 

More information about the Backgroundrb-devel mailing list