470,841 Members | 1,096 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,841 developers. It's quick & easy.

Stress Testing a PHP server: A wee bit OT

If you want to stress test your Apache/PHP server just have a small
little typo like this:

$errCodes=range(910000,9100005);

in your code instead of

$errCodes=range(910000,910005);

Some serious crunching will go on! Off course don't do this on a
production server!

Jan 16 '06 #1
3 1935
Darkstar 3D wrote:
If you want to stress test your Apache/PHP server just have a small
little typo like this:

$errCodes=range(910000,9100005);

in your code instead of

$errCodes=range(910000,910005);

Some serious crunching will go on! Off course don't do this on a
production server!


That's not really stress testing a web server... that's just CPU stress,
for any machine. The script will just crunch until the time limit is
reached and die, no biggie (assuming that on your devel machine you keep
a low time limit (like 10 seconds).

If you want to test how well your web server can handle requests loads,
you'd want something like:
http://httpd.apache.org/docs/2.0/misc/perf-tuning.html

Of course, you could also try to get a link posted in a slashdot or digg
story saying something like "help me stress test..." ;)

--
Justin Koivisto, ZCE - ju****@koivi.com
http://koivi.com
Jan 16 '06 #2
Justin,

I think you missed the point. The point is how a small typo can cause
big errors. Not really on how to stress a web server. Although, that
typo shot Apache memory utilization up to 1.5GB before coming back down
to Earth. Thats also why the title has "OT" in it.

No links needed, I am versed in stress testing servers. If only my
knowledge of it could somehow be applied to corrective finger movements
so that I don't have typos...now that would be something special.

Jan 16 '06 #3
Darkstar 3D wrote:

I think you missed the point. The point is how a small typo can cause
big errors. Not really on how to stress a web server. Although, that
typo shot Apache memory utilization up to 1.5GB before coming back down
to Earth. Thats also why the title has "OT" in it.
No, I got it... but I know that some people take everything they read on
usenet literally. ;)
No links needed, I am versed in stress testing servers. If only my
knowledge of it could somehow be applied to corrective finger movements
so that I don't have typos...now that would be something special.


Wouldn't be great if you could insert a chip into your hand for stuff
like that?

--
Justin Koivisto, ZCE - ju****@koivi.com
http://koivi.com
Jan 16 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by msnews.microsoft.com | last post: by
7 posts views Thread by cpnet | last post: by
1 post views Thread by ESmith | last post: by
4 posts views Thread by FFMG | last post: by
reply views Thread by techiebrandon | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.