Martin Mucha wrote:
> First we had the Midgard configuration in the initial Apache
> configuration and therefore the MidgardEngine turned on for all
> virtual hosts. Then we moved the Midgard configuration into the
> virtualhost sections. Each of the Midgard sites has its own MySQL
> database.
>
> The Apache Error-Logfile shows:
>
> [crit] Midgard: Too many connections
>
> Although we are only two persons testing (no, we are not workin too hard ;-)
> What went wrong with our configuration?
At the moment each apache child handler opens a connection to the
database
for each MidgardDatabase directive. With 5 distinct databases and let's
say a conservative 50 handlers max, that's still 250 possbile
connections.
Put a higher connection setting in /etc/my.cnf. I'm working on a fix
that's
going to drastically cut the number of connections required.
Emile