How to simulate arbitrary concurrent traffic / access in Apache?

5

I'm using EasyPHP 14.1 Devserver , which comes with Apache 2.4.7 / MySQL 5.6.15 .

I want to simulate high traffic and concurrent access to observe the performance and behavior of my site under these conditions, to make the proper adjustments.

The question is: how do I simulate these conditions? Is there any tool to simulate these cases or open the same script in multiple tabs is already efficient?

    
asked by anonymous 24.12.2014 / 16:22

1 answer

6

You will have to use appropriate software. You can even do it on your own but it does work and you probably will not do it right.

You need to test the normal and overestimated load until the server no longer responds. The ideal is that the normal load (or a little above what can be considered normal) is running for a long time (24 hours or more).

This alone is not enough, you have to try to simulate realistic scenarios and try to create unusual situations by forcing the application or server to have problems in less obvious situations.

a list of software for this.

Apache itself comes with a utility called ab (ApacheBench) .

If you want something more sophisticated and can use Java itself Apache has hosted the JMeter project.

They say HP's link works with heavier loads if needed.

Another is DummyNet .

I've also heard about Seagull .

    
24.12.2014 / 16:40