TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-26-2008, 07:12 AM   #1 (permalink)
The Visitor
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
shiggle is on a distinguished road
Default 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
shiggle is offline  
Reply With Quote
Old 02-26-2008, 08:49 AM   #2 (permalink)
The Contributor
 
DeMo's Avatar
 
Join Date: Jan 2008
Location: Brazil
Posts: 77
Thanks: 14
DeMo is on a distinguished road
Default

Are you dumping the content to a database or are you simply leaving everything on memory (stored in variabled, arrays etc)?
Send a message via ICQ to DeMo Send a message via MSN to DeMo Send a message via Skype™ to DeMo
DeMo is offline  
Reply With Quote
Old 02-26-2008, 08:55 AM   #3 (permalink)
The Visitor
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
shiggle is on a distinguished road
Default

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.
shiggle is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:33 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design