We are using PhpRedis as a session handler for PHP sessions. Other than that, we are running a standard Apache/PHP configuration.
Since we are using an external Redis-as-a-service provider, we would like to keep the number of connections low as they dictate the monthly payment.
We are experiencing ever growing number of connections, even at times when the PHP site is completely idle. Connection count is always on the rise and we reach dozens of connections quickly.
Is there a way to limit / pool these connections?
The only probably related solution we found, is to limit the number of workers Apache spawns, but it seems to me like a too harsh of a solution.
We have already tried using persistent=1
in the connection string without any visible change.
Thanks for any tips.