I'm facing an issue while doing the load testing through Jmeter. I hosted my dot net application in AWS and added all my images through CDN. While doing the load test through Jmeter, I'm getting 403 Access denied error. But if I run single users it seems to be working. When I run concurrent users more than 2 I'm getting the error. Can anyone please support on this
403 - Forbidden: Access is denied in JMeter
824 Views Asked by user14437520 At
2
There are 2 best solutions below
0
On
Without knowing the infrastructure details it's not possible to come up with a comprehensive answer so I can only provide some generic steps
- Check out your application logs, there might be some information there
- Check your CDN settings, there might be some restrictions there
- Make sure to properly correlate the requests as it might be the case you recorded the request for one user which runs successfully and fails for the 2nd and subsequent users because application doesn't allow concurrent logins or so
- Try launching JMeter in AWS as well, the same region or even VPC so the requests won't be considered "alien" by your application
- You could try setting up IP Spoofing so each user would use its own IP address or alias, however if you're behind NAT it might not work
- If your deployment is protected by i.e. AWS Shield check if you getting a common error with more meaningful message/cause than just "access denied" which is pretty "umbrella" for all "Forbidden" response status codes
Possibly it is because of some sort of firewall & DDOS protection of AWS cloud. It blocks concurrent users from same IP address sending request at the same time. You can try adding your ip address to the whitelist or you can close the firewall & DDOS protection if you are able to.