cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Excessive resource usage

From: Szentpétery István <szempy_at_gmail.com>
Date: Wed, 19 Mar 2008 10:36:54 -0700

Hello

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 memory 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.

Thanks.
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-03-19