Azurel
Silver Pleskian
Hello,
I have a 32GB RAM QuadCore Root-Server and user/visitors on my websites reports "500/nginx" and "502/nginx" error-code sites from time to time or images want load and after f5 loaded perfectly. All this problems I dont have before (3 years older server without Plesk/Nginx). So I think I have not correctly setting up my server for plesk/nginx? Can anybody help me here for a better setting? Thank you!
MRTG stats
NGINX; /etc/nginx/nginx.conf
"Web Server Settings" for nginx have: "gzip_proxied any;"
====================
APACHE; /etc/httpd/conf
====================
MYSQL; /etc/my.cnf
I have used mysqltuner.pl to optimize:
I have a 32GB RAM QuadCore Root-Server and user/visitors on my websites reports "500/nginx" and "502/nginx" error-code sites from time to time or images want load and after f5 loaded perfectly. All this problems I dont have before (3 years older server without Plesk/Nginx). So I think I have not correctly setting up my server for plesk/nginx? Can anybody help me here for a better setting? Thank you!
MRTG stats
Established TCP Connections
max: 1069
Average: 591
current: 637
Current Processes Running
Max: 229
Average: 204
Current: 212
# top
top - 19:49:38 up 18 days, 17:23, 1 user, load average: 1.09, 0.89, 0.80
Tasks: 225 total, 2 running, 223 sleeping, 0 stopped, 0 zombie
Cpu(s): 8.9%us, 5.2%sy, 0.0%ni, 84.0%id, 1.6%wa, 0.1%hi, 0.3%si, 0.0%st
Mem: 32875680k total, 31226260k used, 1649420k free, 1518552k buffers
Swap: 1023992k total, 85184k used, 938808k free, 24922868k cached
# top
top - 23:24:33 up 19 days, 20:58, 1 user, load average: 0.60, 0.74, 0.78
Tasks: 212 total, 1 running, 211 sleeping, 0 stopped, 0 zombie
Cpu(s): 3.2%us, 2.3%sy, 1.4%ni, 92.4%id, 0.5%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 32875680k total, 32481364k used, 394316k free, 1524636k buffers
Swap: 1023992k total, 92240k used, 931752k free, 26082060k cached
NGINX; /etc/nginx/nginx.conf
keepalive_timeout 65;
"Web Server Settings" for nginx have: "gzip_proxied any;"
====================
APACHE; /etc/httpd/conf
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 512
MaxClients 512
MaxRequestsPerChild 4000
</IfModule>
====================
MYSQL; /etc/my.cnf
I have used mysqltuner.pl to optimize:
Code:
query_cache_size = 256M
innodb_buffer_pool_size = 256M
key_buffer_size = 2048M
join_buffer_size = 2M
thread_cache_size = 16
table_open_cache = 2048
#table_definition_cache = 2048
low_priority_updates = 1
slow_query_log = 1
expire_logs_days = 7
slow_query_log_file = /var/log/mysql-slow.log
log_error = /var/log/mysql-error.log
#long_query_time = 25
[mysqldump]
quick
quote-names
max_allowed_packet = 32M
[isamchk]
key_buffer_size = 256M
[myisamchk]
key_buffer_size = 256M
[mysqld_safe]
log-error = /var/log/mysql-error.log
pid-file = /var/run/mysqld/mysqld.pid
Last edited: