homepage Welcome to WebmasterWorld Guest from 54.161.246.212
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Excessive resource usage
Excessive resource usage
szempy

5+ Year Member



 
Msg#: 3603513 posted 11:27 pm on Mar 17, 2008 (gmt 0)

I'm running a php script whit cronjob on a server every 10 minutes, and the script is suposed to run maximum 5 minutes, and I get this error message from my provider :

Time: Mon Mar 17 17:20:17 2008
Account: accountname
Resource: Virtual Memory Size
Exceeded: 185 > 100 (MB)
Executable: /usr/local/bin/php
Command Line: /usr/local/bin/php -q
/home/accountname/public_html/ttc2/update_forum.php
PID: 23067
Killed: No

this script maximum memmory usage is 4.5 MB, tested whit : memory_get_peak_usage(true)
The script is running 5 minutes i set it whit : set_time_limit(300); and
ini_set('max_execution_time', 300); because in the past i got letters white execution time exceed.

I'm using curl in the script to get another page content.
And i can't use wget to run the php script.

And now my page is suspendet :(

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved