Hi. My scripts, are being hit fast and often, and I thought that a mySQL + PHP combo was the one to beat because of the possibility of using persistent DataBase connections.
However, I am not sure this is working as it should. In my code, I use the
function, and my php.ini file has persistent links enables, and both persistent and regular link limit is set to -1 (Unlimited).
This is reflected when I do
so I know my configuration is being found and read. But the connection count on that same info page never goes above 1. I know that the scripts are being hit, and that the connections are being opened, but I have a sinking feeling that they are not kept open for later use. Or, (and this would be worse), all the instances of the script are forced to share one solitary connection, which means they are forced to wait on it.
Can anyone suggest something?