JoeDog / siege

Siege is an http load tester and benchmarking utility
GNU General Public License v3.0
5.9k stars 386 forks source link

Concurrent requests not working in Siege - Http stress testing #205

Closed SaeedArisha closed 2 years ago

SaeedArisha commented 2 years ago

I'm testing an app located in a AWS EC2 instance via a POST request. I'm posting an image with the url in the form of a json string by converting it to base64. All the settings are in place. The problem is that even though I'm sending 10 concurrent requests by using the -c parameter only the first request gets processed and the Siege stress test stops. JcoMy

This is the code I'm using siege -c10 -r11 --content-type "application/json" -g 'http://www.hello.com POST {"img": "test", fname: "img.jpg"}'

JoeDog commented 2 years ago

I just ran that by substituting www.joedog.org for www.hello.com and it ran fine.

Try adding --debug to your arguments and see if that's enlightening. You might also try changing the user-agent. AWS might block consecutive requests from siege.

On Tue, Feb 8, 2022 at 7:30 AM Arisha Akkas @.***> wrote:

I'm testing an app located in a AWS EC2 instance via a POST request. I'm posting an image with the url in the form of a json string by converting it to base64. All the settings are in place. The problem is that even though I'm sending 10 concurrent requests by using the -c parameter only the first request gets processed and the Siege stress test stops. [image: JcoMy] https://user-images.githubusercontent.com/19253430/152987331-fe38a63e-48d2-4dc2-817e-c4adcf60c59c.jpg

This is the code I'm using siege -c10 -r11 --content-type "application/json" -g 'http://www.hello.com POST {"img": "test", fname: "img.jpg"}'

— Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/issues/205, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZT42EA6D6ZZVRGFC4LU2EEGRANCNFSM5N2KGPPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes