Sales: 1300 467 843

OzHosting.com - Support Desk

Knowledgebase
Nginx - Lessen CPU usage
Posted by David Hernandez on 19 September 2018 03:33 PM

To speed up websites and lessen CPU usage of nginx

-check the number of CPU cores your VPS has

-> nproc

-check nginx.conf (/etc/nginx/nginx.conf)

-look for the worker_connections line

*If for example you have 2 cores on your VPS then worker_connections shoudl have the value of 2048

*Simply multiply the number of cores to 1024

2*1024 for 2 cores, 4*1024 for 4 cores and so on

If you have 8 cores or 16 cores, setting nginx to use 4 cores for 8 cores VPS might be enough

Same for 16 cores, setting nginx to use 8 cores may be enough

Note: Also make sure that gzip is enabled

(0 vote(s))
Helpful
Not helpful


Comments (0)
Login

Subscribe

 
http://assets03.desk.com/
OzHostingcom
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
Invalid characters found
/customer/portal/articles/autocomplete