PHP-memory leak with COM-objects?
| From: | Gustav Wiberg | Date: | Wed, 10 Oct 2007 07:36:00 +0000 |
| Subject: | PHP-memory leak with COM-objects? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-28540@lists.php.net to get a copy of this message | ||
Hi!
I want to use COM+ objects (especially with Word). I have understood (a lot of reading on the
Internet) that when initiating COM-objects with Word (even if the object is released in variable in
the code). Word leaks a lot of memory. I have also read that if I want to use Word-COM+ object I
should have a dedicated server because it takes so much memory.
I have tested some and I easily get out of memory even if there is 4GB on the server I tested
against.
Then I run PHP as ISAPI, and the suggestion on the php.net site was to run PHP as CGI because
COM-objects are run in the same memory-space as ISAPI when running as ISAPI-module. http://php.oregonstate.edu/manual/en/class.com.php
What do you guys thinks about above? Give me some feedback, please :-)
Best regards
/Gustav Wiberg
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.488 / Virus Database: 269.14.6/1060 - Release Date: 2007-10-09 16:43