Jump to content

CPU High Load


luizdsouza3

Recommended Posts

Pessoal, tenho um VPS com

4 Cores

4GB Ram

100 GB SSD

Anteriormente já tinha otimizado ele.

Porém quando o site que tenho hospedado chega a 120 a 150 users ao mesmo tempo no Analytics a CPU vai para uso entre 15.00 a 20.00

O problema está no MYSQL que chega a consumir mais de 300% de CPU

O comando que fica comendo recurso é esse: "usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/server.artevirtualfc.com.br.err --open-files-limit=15000 --pid-file=/var/lib/mysql/server.artevirtualfc.com.br.pid"

Tentei aumentar o Open File Limite no my.cnf porém o problema persiste.

Site hospedado está em Wordpress, já utiliza HyperCache, CloudFlare.

Não utiliza plugins em demasiado.

Não é apache mas sim Nginx

Link to comment
Share on other sites

3 minutos atrás, luizdsouza3 disse:

Pessoal, tenho um VPS com

4 Cores

4GB Ram

100 GB SSD

Anteriormente já tinha otimizado ele.

Porém quando o site que tenho hospedado chega a 120 a 150 users ao mesmo tempo no Analytics a CPU vai para uso entre 15.00 a 20.00

O problema está no MYSQL que chega a consumir mais de 300% de CPU

O comando que fica comendo recurso é esse: "usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/server.artevirtualfc.com.br.err --open-files-limit=15000 --pid-file=/var/lib/mysql/server.artevirtualfc.com.br.pid"

Tentei aumentar o Open File Limite no my.cnf porém o problema persiste.

Site hospedado está em Wordpress, já utiliza HyperCache, CloudFlare.

Não utiliza plugins em demasiado.

Não é apache mas sim Nginx

Qual MYSQL usa?

Link to comment
Share on other sites

2 minutos atrás, rafael.angelo disse:

É recomendo que procure virtualização Xen, Vmware se desejar te passo algumas indicações por MP.

Cara migrar de Server neste momento está fora de cogitação, teria que configurar tudo na mão de novo.

KVM não melhora ?

Link to comment
Share on other sites

Bom como uso WHM, verifiquei que há uma opção automática para determinar o Open Files

Server Configuration >> Tweak Settings >> SQL

** Let cPanel determine the best value for your MySQL open_files_limit configuration ? [?]

cPanel will adjust the open_files_limit value during each MySQL restart depending on your total number of tables.

Vou tentar essa opção antes de qualquer coisa.

Link to comment
Share on other sites

1 hora atrás, luizdsouza3 disse:

Bom como uso WHM, verifiquei que há uma opção automática para determinar o Open Files

Server Configuration >> Tweak Settings >> SQL

** Let cPanel determine the best value for your MySQL open_files_limit configuration ? [?]

cPanel will adjust the open_files_limit value during each MySQL restart depending on your total number of tables.

Vou tentar essa opção antes de qualquer coisa.

Se não atualize para MariaBD 10

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?