TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   virtual memory leak (http://www.talkphp.com/absolute-beginners/2337-virtual-memory-leak.html)

shiggle 02-26-2008 07:12 AM

virtual memory leak
 
hello everyone,

I hope you can help with this problem.

I'm writing a php application that indexes web pages. unfortunately the application runs for about an hour and a half before windows shuts down the localhost web server as too much virtual memory is being used.
I don't know about such things so I've posted this thread in beginners section.

the questions i hope you can help with are these:-
1) what causes windows to allocate more virtual memory to a php script?
2) what can be done to stop (free up) this memory during script execution?

hope you can help

thanks

DeMo 02-26-2008 08:49 AM

Are you dumping the content to a database or are you simply leaving everything on memory (stored in variabled, arrays etc)?

shiggle 02-26-2008 08:55 AM

Hi,
everything is going into a database. there are some global variables and session variables that are stored in memory.
I'm unsetting the objects when no longer needed, but still more and more memory is needed for the script.


All times are GMT. The time now is 01:10 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0