Answer the question
In order to leave comments, you need to log in
How to reduce load from apache and mysql?
Hello everyone, there is a site with a small attendance of 3-4k per day. Now half of the old news has been removed from the site due to the lack of relevance, the database has become 2 times less weight, but that's the problem when there are 100-150 people on the site, the site began to slow down terribly.
VDS parameters: 2 processor cores 100GB
SSD
2GB RAM
It used to work fine and so online, but now it slows down the only thing that has changed during this time is now used by MariaDB and Apache used to be just Mysql.
Apache goes in conjunction with Nginx
At peak consumption according to VESTACP
Apache
httpd
web server
Processor: 1.5Memory: 93 MB Running
: 0 min. mysql mariadb
database
server
Processor: 3.7 Memory: 1119 MB Running
: 53 min.
Usually Mysql spent 600-700 and here are the numbers.
I tried editing the config, but it didn't really help. Maybe I did something wrong there because of inexperience.
Here are the configs
Answer the question
In order to leave comments, you need to log in
Self-written engine?
Well, so, with such a load (in visitors), there should not be a problem with Apache and the database, and it is not the server that needs to be optimized here, but the CODE.
Most likely you have a problem with "crooked SQL queries"
PS 2Gb RAM is not enough by today's standards.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question