Hallo,

СЯшЯ СтЯменковић wrote:
> Still sometimes get
> 
> PDOException with message 'SQLSTATE[42000] [1203] User *** already has
> more than 'max_user_connections' active connections

As I said in the beginning of this discussion (and btw, we can say that
this was the reason for your problem):

When you are allowed to have 15 connections to your database server, you
can serve 15 requests at the same time, when every request will establish 1
connection.

If you are establishing more than one connection per request, the number of
concurrent requests will be lower ;-)

Ask you hoster for more connections or switch to another one.

If this isn't possible, check if you can establish a connection in the
bootstrap and show a friendly error message to you users (e.g "Too much
load").

You could also limit the webserver, to just allow x concurrent requests, so
that the webserver will do the queue/error handling for you.

 
-- 
Grüße
Thomas

Reply via email to