Stress Testing a PHP server: A wee bit OT

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Darkstar 3D

    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!

  • Justin Koivisto

    #2
    Re: Stress Testing a PHP server: A wee bit OT

    Darkstar 3D wrote:[color=blue]
    > 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![/color]

    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:


    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 - justin@koivi.co m

    Comment

    • Darkstar 3D

      #3
      Re: Stress Testing a PHP server: A wee bit OT

      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.

      Comment

      • Justin Koivisto

        #4
        Re: Stress Testing a PHP server: A wee bit OT

        Darkstar 3D wrote:[color=blue]
        >
        > 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.[/color]

        No, I got it... but I know that some people take everything they read on
        usenet literally. ;)
        [color=blue]
        > 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.[/color]

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

        --
        Justin Koivisto, ZCE - justin@koivi.co m

        Comment

        Working...