Re: PHP CLI & Forking children



On Sep 29, 8:32 pm, qwerty...@xxxxxxxxxxxxxx wrote:
Instead of writing a PHP script that downloads 2 million headers from
a newsgroup in a single connection (which will cause PHP to crash
anyway as it'll reach 500MB+ memory usage), I thought it would be
better to launch 4 processes do download it in chunks of 50,000
headers - with 4 connections to the same NNTP server.

I admit I should be using Perl or C for these tasks, but I know PHP
and I'm used to using its functions.

.



Relevant Pages

  • Re: PHP CLI & Forking children
    ... a newsgroup in a single connection (which will cause PHP to crash ... anyway as it'll reach 500MB+ memory usage), ... Nothing wrong with using PHP for this. ... It will be slower than a compiled language like C, but most of your time will be spent waiting on I/O anyway. ...
    (comp.lang.php)
  • Re: Memory usage by class files
    ... discovered that when my app starts to include the class definitions it ... memory usage is TEN TIMES the size the class file occupied on the disk - ... efficient way of building the code (should I consider 'compiling' the ... PHP gets compiled into Zend Opcodes before executing. ...
    (comp.lang.php)
  • PHP 4.3.4 memory usage
    ... I'm concerned with very steep jump the PHP 4.3.4 made in memory usage ... the memory usage for PHP process was 4372 kB after running a simple ...
    (php.general)
  • Re: [PHP] Negative memory_get_usage() Values
    ... I'll do as you suggest (and learn more about PHP memory usage) to try to see what's going on. ... I suspect that there is a bug in utf8_encodebut I'd like others to ... echo utf8_encode; ...
    (php.general)
  • Re: Problem with memory management
    ... I'm wondering why PHP doesn't free my memory with this test code. ... The memory usage is always the same even if i unset my object. ...
    (php.general)