>I have been trying to benchmark the backend scripting for a flash online
>game, for this purpose i wrote another PHP Script that uses fopen to
>make exactly the same requests the flash movie would make with the same
>timing, and writes a log of the game session into a database.
>I run this script from the shell of a linux box using the php CGI
>binary, and start it for a couple of times,

Wild Hypothesis:
Bench-marking the PHP Binary as opposed to the Module is probably not very
accurate...

>Sometime i get to start a hundred scripts or more, but they disappear in
>very short time.

You may have simply run out of process space or hit some OS limit or...

>i have the outputs pointed to /dev/null when putting the scripts into

Don't.  Point them to /temp/$PID or something to get output you can use.  I
got no idea how to do that, mind you, but there has to be some way...

If nothing else, alter your logging to include a process ID, and output them
all using http://php.net/error_log

>I also noticed when looking at the output of 'top' i see few httpd
>processes crashing saying <defunct>, this happens more rarely when i

By any chance do you have Oracle compiled in?...  There's some compile-time
configuration switch you need to use to re-compile to get rid of those...  I
forget exactly where I found that info...  Maybe ChangeLog?

>The benchmark scripts should log errors if there was no response from
>the server but i dont get any of those errors in the logs.

Have the benchmark scripts log much, much more, and narrow it down.
For example, add a line at the begining and end of your script logging the
process ID and that it's starting.

I suspect the 100 processes you see starting aren't *REALLY* starting, cuz
you're out of process space or there's some limit, and they live only long
enough to print "Unable to fork" or somesuch.  PHP itself never really gets
going.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to