On Dec 10, 2008, at 1:30 AM, DULMANDAKH Sukhbaatar wrote:
> >> File >> "/usr/local/python2.5/lib/python2.5/site-packages/ >> MySQL_python-1.2.2-py2.5-linux-i686.egg/MySQLdb/__init__.py", >> line 74, in Connect >> >> File >> "/usr/local/python2.5/lib/python2.5/site-packages/ >> MySQL_python-1.2.2-py2.5-linux-i686.egg/MySQLdb/connections.py", >> line 170, in __init__\n super(Connection, self).__init__(*args, >> **kwargs2) >> >> OperationalError: (1040, 'Too many connections') It's probably worth using django-logging or one of the other 3rd party packages to check how many queries your views are executing. The only time I ever saw this error was with high load on an extremely inefficient view (something like 60 queries in one view), and tweaking your use of the ORM can reduce those problems significantly. Eric >> > > as you can see above, it's mysql problem. mysql server have some > default limitation on concurrent connections. you can increase > max_connections in my.cnf. depending on your linux distro my.cnf may > be located in different places. for me, or on ubuntu it's at > /etc/mysql/my.cnf, and you need to uncomment the line, and increase > the value. > > by default mysql gets 100 concurrent connections. and the question is > why is dev site is getting that much connection? > > > -- > Regards > Dulmandakh > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---