0

I have a website with around 1000 daily users, am using Godaddy Ultimate Shared hosting (2 Shared CPU, Up to 1GB Shared RAM, IO 1024.0 KB/s limit, Entry processes 125 limit, Processes 140 limit) and am using laravel as my backend.

Since yesterday, for a minute at a time, happened twice yesterday and once so far today (Users haven't increased much since yesterday, actually about 10,20 decreased), I have been getting a

Resource Limit is reached

error

Resource Limit is Reached

During this time, all my IO, processes, Shared RAM and CPU reach 100% usage. This happens only about 1 minute at a time, with not much than the usualy happening in the background.

Looking at my sites errors log at this time, they show users using the site like usual (also have an android app connected to the site, with usually around 100 users in the last 30 minutes according to firebase analytics).

According to usage resource details in cpanel These are the graphs Resource Details Graphs And this is the table Table Headers Affected Table Here is a snapshot of processes at 9:28, before the spike Before shutdown snapshot I will include the snapshot for processes at 9:30 during the spike if required (its extremely big), but there are mainly a lot of

/usr/sbin/httpd 0% 204

/usr/sbin/httpd 0% 188

some of these processes

lsphp:ome/vjfm463wnnh6/public_html/public/index.php 0% 14

But it is mainly flooded with httpd processes with high MEM

During normal time, the sites statistics on cpanel are these. enter image description here

Here is the main error logged on my site logs

SQLSTATE[42000] [1226] User '******' has exceeded the 'max_user_connections' resource (current value: 30) (SQL: select * from users where id = 2289 limit 1)

I am not able to figure out if this could be a problem with my code (php, backend, but there are many different functions being used during these times my different users, which are also being used in times when the site is normally running), a DDOS attack, or a problem with my hosting?

All help would be highly appreciated. Thank you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.