ID: 8931 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Performance problem Description: Memory leaks attributable to OO PHP The short version scored 7680 hits over 2 min, whereas the Object Oriented version scored around 1700 hits over 2 min running 4 threads. Both scripts do the same thing, query to database, with same result, but the OO version seems to be 5 times slower, so I am classifying this bug as a performance problem. Previous Comments: --------------------------------------------------------------------------- [2001-01-26 06:32:37] [EMAIL PROTECTED] I wrote two scripts to compare the difference in performance between simple script and one written in OO with classes and required libraries. Both scripts accessed the SQL database using ADODB connection. I used Microsoft Web Application Stress Tool, which seems to be very useful. The "simple" version yielded better performance in less CPU usage (and no memory leaking), whereas the OO version maxed out the CPU usage 100%, as well as slowly but surely leaking memory. I tried using the unset() function in several places in the code, but this did not help much, as the script was still leaking memory during the tests. Using unset() to unset the COM object helped a lot, as PHP did not seem able to free the memory by itself. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8931 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]