Hi,
I have a PHP web site based on Yii Framework, having both MySQL and MsSql DB connections.
The server is Microsoft’s ISS 6.0, and i have tried both using php 5.2.7 and 5.3.8.
The problem is, the server’s paged pool memory is constantly increasing, based on the traffic of the web site as long as i have observed. The server’s paged pool memory increases from 50-60Mb to around 300*350Mbs approx and then after a while the system crashed since no paged pool memory can be allocated.
The logs of the web site gives errors for being unable to open source .php files or connections (ex errors: not enough space, could not locate/open file, could not open connection vs.)
I know there is a way to tell the server to start trimming paged pool memory (default value when it reaches to 80% of max PPM) earlier, but i need to know what is probably leaking paged pool memory (as it ever increases i believe there is a leak).
I have tried using poolmon.exe to determine the leak but it had no help (Strg tag is consuming and seems to be leaking memory, but i could not lead to anywhere from that info.)
All my DB connections are closed properly in the code (don’t really know if it has anything to do with my problem).
In the task manager, all php-cgi.exe processes (their number can be up to 20*25 based on the traffic), uses at most around 150Kb Paged pool memory.
I have used different values for php memory limit, iis max instances, max connections variables. Nothing helped.
I believe there is a problem in the coding, may be regarding the connections to DB servers or ASP.NET servers (used as game or chat motors, by use of web services).
I will be very glad if anyone has faced with a similar problem, or can help with what reasons can lead to a leak in Paged pool memory of the server for a php based web site.
Thanks.
Can