Django Dying on Shared Hosting Environment (Too Many MySQL Connections)
Posted
by Tom
on Server Fault
See other posts from Server Fault
or by Tom
Published on 2010-03-19T13:52:01Z
Indexed on
2010/03/19
14:01 UTC
Read the original article
Hit count: 564
I've had a Django site up and running on HostGator (client requirement), following these instructions, for a few weeks now. I had seen two error emails about pages dying with (1040: Too many MySQL connections) but had never been able to recreate the problem. As of today, the site is completely unresponsive and all pages, even the static files, are dying with that error. Two questions:
- What can I do to fix this (other than caching more stuff)?
- Why would static files be dying like that? I can request them directly without a problem, so how are they getting run through Django? The shared hosting setup doesn't allow for a <Location> block, but there's a flag in the rewrite rule that says only requests for files that don't exist in the filesystem should be processed. All of my static files exist on the system, though they are symbolically linked files if it matters.
© Server Fault or respective owner