WebFaction
Community site: login faq

My Django app recently started throwing "OperationalError: (1040, 'Too many connections')". I don't think a lot has changed in our volume and I haven't made a change to the application, so I'm not sure if there could be another cause for this? I've never gotten this before in an application that has been running for a couple years now. Our volume may have increased slightly so that's all I can think of.

Is there a way to increase this number? If so, how do I go about it?

asked 06 Jul '12, 15:15

rsp
141612
accept rate: 0%


You can't increase max connections on our shared MySQL service - if you want or need that ability, then you'll need to build your own MySQL from source and run it as a custom app.

However, before you go down that road...

The error you saw was caused by high load, which was caused another customer on your server. When that happens, queries take longer, and available connections become exhausted.

We're working with that customer to resolve this issue, and have already made some progress. I believe that it is unlikely that you'll see this error in the coming days.

Hope that helps!

permanent link

answered 06 Jul '12, 18:37

seanf
12.2k41936
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×225
×168
×16

question asked: 06 Jul '12, 15:15

question was seen: 3,902 times

last updated: 06 Jul '12, 18:37

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM