Vignesh SP Vignesh SP - 3 years ago 259
Apache Configuration Question

Stress testing Apache using python


I'm trying to stress test my apache server and below is what I wrote for this purpose (Not sure if this would do what I want to do)

import requests

url = "http://<ip of my server>"
response = requests.get(url,verify=False, json={})
sum = 0

while sum != 1:
print (response.status_code)

I believe that the above code sends continuous get requests to my apache web server, which could put some stress on my server.

Not sure if I'm making sense with this.

Any directions on how can I put some stress on my apache would be really helpful.

Thanks in advance.

Answer Source

For stress testing a Web app with Python, Molotov is - perhaps - your best friend.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download