PHP-CGI Killing Server Resources | CWP

Started by DNA, July 10, 2020, 01:43:32 PM

Previous topic - Next topic

DNA

Hi

I am using CWP7.Admin , WebServer : Nginx + Apache + PHP-CGI , Php version: 7.3
My Website is on laravel . visitor 100 per day . It's killing my resources and server Load average is very high . Please check snapshop and any idea to fix .

It was smoothly running on Cpanel VPS with 1GB RAM. After transfer to CWP , it's can handle PHP request .


cinique

#1
Looks pretty obvious from the processes; you're consuming too much RAM, for your server specification.
Remove varnish and run mysqltuner - follow its' advice (apart from cache nonsense).

Fine tuning of nginx/Apache also required. With a reverse-proxy nginx, Apache can be paired back significantly if not serving too many requests to mySQL/maria.
Think that you also need to reduce keep-alive timeout, if indeed you enabled it, which you should.

All standard stuff required of a system administrator.


cinique

..and? I can't tell you what values to use. Read some documentation and reduce gradually, restarting Apache/nginx each time.
That deals with only one aspect of my initial response.

DNA

Quote from: cynique on July 10, 2020, 11:07:56 PM
..and? I can't tell you what values to use. Read some documentation and reduce gradually, restarting Apache/nginx each time.
That deals with only one aspect of my initial response.


Hi
Problem is fixed when i used Laravel session to Database instead of file. And Found Redis is better than Database for Laravel Session management.