vendredi 20 décembre 2019

Laravel Load / Stress Test - Failed

I am quite new to Laravel, I have a simple Laravel application which has 19 REST service endpoints which will be consumed by Mobile Application. I have tested the REST endpoints using J Meter to identify the concurrent users that I can have in my server. I have tested in two servers one had 512 MB RAM & Single core processor and I have ran the same load test on my local windows machine which has 8 GB RAM & 4 Core Intel i5 Processor. I am continuously facing different issues when I start the load test. My aim is make sure that application should work for at least 100 concurrent users. Below are the errors I got when I ran load test for a single endpoint - which always fetch one row from DB.

  1. 100% CPU Usage - When I start the load test CPU usage spikes up to 100 % always.
  2. Throttle Values exceeds 50 - When I set concurrent users to 50 then I am getting Too many connections issue.
  3. For 100 User - No Database selected - Some times I am getting error stating "No Database is selected"
  4. For 100 User - Failed to open stream Issue
  5. Some run has issues stating "Access Denied for the user to Database Forge" - I am not having any database called Forge, and not sure why the call is going to that database.

Can you please help me to pass this load test ? Happy to provide more information as well.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire