Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Quercus

Reply
 
Thread Tools Display Modes
  #1  
Old 11-19-2009, 02:46 PM
juancho_h juancho_h is offline
Junior Member
 
Join Date: Nov 2009
Location: Mar del Plata, Buenos Aires, Argentina
Posts: 6
Exclamation Mysql Too many connections

I have a little problem currently i'm using resin 3.1.9 and don't have any problem. But when i move the same site to resin 4.0.1 I've an error "Mysql too many connections".
Anybody knows what is happening or how could i fix it?
Thanks and sorry by my english..
Reply With Quote
  #2  
Old 11-19-2009, 07:12 PM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

Hi,

I've submitted a bug report for this at:

http://bugs.caucho.com/view.php?id=3774

Does Resin print out a stack trace for this error?
Reply With Quote
  #3  
Old 11-20-2009, 02:55 AM
juancho_h juancho_h is offline
Junior Member
 
Join Date: Nov 2009
Location: Mar del Plata, Buenos Aires, Argentina
Posts: 6
Red face

No, there is no stack trace or anything at all.
But, i found what was happening.
I'm migrating this site from Apache/Php to quercus, i found that when i check if i'm connected to mysql i'm using a "instaceof mysqli" but on this version this don't works, and for every query i'm connecting again to mysql, on a cicle I connect to db every time. This is my mistake,
Another thing is on the file web.xml I was configured max-connection setting to 10 and on the mysql server I have max connections to 200. I'm setting anything wrong on the web.xml or realy it's a bug?

Thanks again, and sorry for my bad english.
Reply With Quote
  #4  
Old 11-21-2009, 10:41 AM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

It looks like a bug. By the way, the instanceof for mysql is fixed for 4.0.2.

php/1f0c

Last edited by nam; 11-21-2009 at 10:43 AM.
Reply With Quote
Reply

Tags
mysql

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:00 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.