The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

"Swap Used" sempre a 100%

Discussion in 'Discussões em Português' started by duques, Oct 21, 2015.

  1. duques

    duques Member

    Joined:
    Jul 29, 2015
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Meu VSP fica com o "Swap Used" sempre a 100%, o que pode causar isso?

    Server Load 0.74 (2 CPUs)
    Memory Used 30.28% (1,270,196 of 4,194,304)
    Swap Used 100% (524,288 of 524,288)
     
    #1 duques, Oct 21, 2015
    Last edited by a moderator: Oct 21, 2015
  2. Luciano Donato

    Joined:
    Oct 18, 2015
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Cachoeiro de Itapemirim, ES, Brasil
    cPanel Access Level:
    Root Administrator
    Confirme o uso com:

    free -m -t

    Se realmente o uso do swap estive alto, tente verificar qual processo está usando muito memória, este comando pode ajudar:

    ps aux

    att.
    Luciano Donato
     
  3. duques

    duques Member

    Joined:
    Jul 29, 2015
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Apareceu assim Luciano Donato:

    root@server [~]# free -m -t
    total used free shared buffers cached
    Mem: 4096 2187 1908 2 0 976
    -/+ buffers/cache: 1211 2884
    Swap: 512 512 0
    Total: 4608 2699 1908
     
  4. Luciano Donato

    Joined:
    Oct 18, 2015
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Cachoeiro de Itapemirim, ES, Brasil
    cPanel Access Level:
    Root Administrator
    Eu acho muito esttranho, com tanta memória livre,
    Você já reiniciou o servidor?
    Você verificou os processos em execução? talvez tenha algum "roubando" memória, algum processo zumbi.
    Você pode também demonstar a partição e formata-la, para verificar se não está com algum problema.

    Boa sorte.
     
  5. duques

    duques Member

    Joined:
    Jul 29, 2015
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    root@server [~]# ps aux
    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    root 1 0.0 0.0 19236 560 ? Ss Oct13 0:05 init
    root 2 0.0 0.0 0 0 ? S Oct13 0:00 [kthreadd/3097]
    root 3 0.0 0.0 0 0 ? S Oct13 0:00 [khelper/3097]
    root 141 0.0 0.0 10644 16 ? S<s Oct13 0:00 /sbin/udevd -d
    nobody 304 0.0 0.1 74112 6236 ? S 11:56 0:00 /usr/local/apache/bin/httpd -k start
    nobody 387 0.0 0.1 74116 6220 ? S 11:56 0:00 /usr/local/apache/bin/httpd -k start
    nobody 520 0.0 0.1 74112 6260 ? S 11:57 0:00 /usr/local/apache/bin/httpd -k start
    root 537 0.5 1.6 209844 68768 ? S 11:57 0:00 spamd child
    root 641 0.0 0.0 8552 92 ? Ss Oct21 0:00 jsvc.exec -user tomcat -cwd /usr/local/easy/
    tomcat 644 0.0 1.3 2435668 58308 ? Sl Oct21 0:27 jsvc.exec -user tomcat -cwd /usr/local/easy/
    nobody 646 0.0 0.1 74116 6244 ? S 11:57 0:00 /usr/local/apache/bin/httpd -k start
    root 664 0.0 0.1 184328 4348 ? Sl Oct13 1:23 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5
    nobody 674 0.0 0.1 74116 6192 ? S 11:57 0:00 /usr/local/apache/bin/httpd -k start
    nobody 679 0.0 0.1 74116 6076 ? S 11:57 0:00 /usr/local/apache/bin/httpd -k start
    named 685 0.0 0.1 240528 8296 ? Ssl Oct13 2:22 /usr/sbin/named -u named
    dbus 707 0.0 0.0 21436 52 ? Ss Oct13 0:00 dbus-daemon --system
    nscd 720 0.0 0.0 1330744 2720 ? Ssl Oct13 6:24 /usr/sbin/nscd
    nobody 734 0.0 0.1 74116 6088 ? S 11:57 0:00 /usr/local/apache/bin/httpd -k start
    nobody 738 0.0 0.1 74112 6192 ? S 11:57 0:00 /usr/local/apache/bin/httpd -k start
    root 745 0.0 0.0 64336 268 ? Ss Oct13 0:15 /usr/sbin/sshd
    root 755 0.0 0.0 20040 12 ? Ss Oct13 0:00 xinetd -stayalive -pidfile /var/run/xinetd.p
    root 764 0.0 0.0 106284 56 ? S Oct13 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/
    nobody 784 0.0 0.1 74252 6352 ? S 11:58 0:00 /usr/local/apache/bin/httpd -k start
    nobody 785 0.0 0.1 74116 6224 ? S 11:58 0:00 /usr/local/apache/bin/httpd -k start
    nobody 858 0.0 0.1 74116 6092 ? S 11:58 0:00 /usr/local/apache/bin/httpd -k start
    nobody 923 0.0 0.1 74120 6208 ? S 11:58 0:00 /usr/local/apache/bin/httpd -k start
    nobody 925 0.0 0.1 74112 6068 ? S 11:58 0:00 /usr/local/apache/bin/httpd -k start
    mailnull 927 0.0 0.0 73296 3188 ? S 11:58 0:00 /usr/sbin/exim -bd -q60m -oP /var/spool/exim
    mysql 929 1.7 15.9 2506804 669180 ? Sl Oct13 222:48 /usr/sbin/mysqld --basedir=/usr --datadir=/v
    nobody 930 0.0 0.1 74116 6280 ? S 11:58 0:00 /usr/local/apache/bin/httpd -k start
    nobody 931 0.0 0.1 74116 6064 ? S 11:58 0:00 /usr/local/apache/bin/httpd -k start
    mailnull 933 0.0 0.0 73296 3140 ? S 11:58 0:00 /usr/sbin/exim -bd -q60m -oP /var/spool/exim
    nobody 990 0.0 0.1 74112 6128 ? S 11:58 0:00 /usr/local/apache/bin/httpd -k start
    nobody 992 0.0 0.1 74112 6116 ? S 11:58 0:00 /usr/local/apache/bin/httpd -k start
    nobody 993 0.0 0.1 74112 6160 ? S 11:58 0:00 /usr/local/apache/bin/httpd -k start
    nobody 994 0.0 0.1 74116 6196 ? S 11:58 0:00 /usr/local/apache/bin/httpd -k start
    root 995 0.0 0.0 66412 12 ? Ss Oct13 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a
    root 996 0.0 0.0 66412 4 ? S Oct13 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a
    nobody 998 0.0 0.1 74120 6136 ? S 11:58 0:00 /usr/local/apache/bin/httpd -k start
    transpor 1023 0.0 0.0 29580 2256 ? S 11:58 0:00 dovecot/imap
    transpor 1031 0.0 0.0 29920 2856 ? S 11:58 0:00 dovecot/imap
    mailnull 1032 0.0 0.0 73296 3136 ? S 11:58 0:00 /usr/sbin/exim -bd -q60m -oP /var/spool/exim
    root 1053 0.0 0.0 136764 772 ? Ss Oct13 0:01 pure-ftpd (SERVER)
    root 1055 0.0 0.0 136144 396 ? S Oct13 0:01 /usr/sbin/pure-authd -s /var/run/ftpd.sock -
    root 1072 0.0 0.0 117112 712 ? Ss Oct13 0:06 crond
    root 1081 0.3 0.0 123980 2612 ? Sl 11:59 0:00 ./whmsonicsrv sonic.conf
    root 1088 0.0 0.0 19428 300 ? Ss Oct13 0:00 /usr/sbin/atd
    nobody 1108 0.0 0.1 74116 6060 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    nobody 1117 0.0 0.1 74116 6080 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    nobody 1118 0.0 0.1 74116 6148 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    mailnull 1119 0.0 0.0 72996 1872 ? S 11:59 0:00 /usr/sbin/exim -bd -q60m -oP /var/spool/exim
    nobody 1121 0.0 0.1 74116 6068 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    nobody 1122 0.0 0.1 74116 6080 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    nobody 1123 0.0 0.1 74116 6060 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    nobody 1124 0.0 0.1 74116 6176 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    32005 1126 0.2 0.0 0 0 ? Z 11:59 0:00 [webmaild - serv] <defunct>
    nobody 1135 0.0 0.1 74112 6068 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    mailnull 1136 0.0 0.0 72996 1872 ? S 11:59 0:00 /usr/sbin/exim -bd -q60m -oP /var/spool/exim
    nobody 1137 0.0 0.1 74112 5912 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    nobody 1138 0.0 0.1 74116 6060 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    lfpeccom 1143 0.0 0.0 20280 2660 ? S 11:59 0:00 dovecot/pop3
    nobody 1144 0.0 0.1 74112 5912 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    nobody 1145 0.0 0.1 74112 6072 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    nobody 1146 0.0 0.1 74112 6064 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    nobody 1147 0.0 0.1 74112 5912 ? S 11:59 0:00 /usr/local/apache/bin/httpd -k start
    lfpeccom 1153 0.0 0.0 18996 2004 ? D 11:59 0:00 dovecot/pop3
    root 1154 0.0 0.0 108352 1100 pts/0 R+ 11:59 0:00 ps aux
    root 1249 0.0 0.2 105700 10824 ? S Oct13 1:38 cpsrvd (SSL) - waiting f --llu=1445503909 --
    interess 1423 0.3 0.0 66028 688 ? Sl Oct13 39:50 ./sc_serv sc_serv.conf
    root 1460 0.0 0.0 4068 40 tty1 Ss+ Oct13 0:00 /sbin/mingetty console
    root 1463 0.0 0.0 4068 40 tty2 Ss+ Oct13 0:00 /sbin/mingetty tty2
    root 3641 0.0 0.1 73980 7428 ? Ss Oct20 0:10 /usr/local/apache/bin/httpd -k start
    root 7042 0.0 0.1 100876 4428 ? Ss 10:36 0:00 sshd: root@pts/0
    root 7148 0.0 0.0 106404 1772 pts/0 Ss 10:36 0:00 -bash
    root 7678 0.0 0.0 19172 1088 ? Ss 08:50 0:01 /usr/sbin/dovecot
    dovenull 7680 0.0 0.0 42612 3656 ? S 08:50 0:00 dovecot/pop3-login
    dovenull 7681 0.0 0.0 43012 4112 ? S 08:50 0:01 dovecot/imap-login
    dovecot 7682 0.0 0.0 13416 1180 ? S 08:50 0:00 dovecot/anvil
    root 7683 0.0 0.0 13552 1376 ? S 08:50 0:00 dovecot/log
    dovenull 7685 0.0 0.0 42724 3712 ? S 08:50 0:00 dovecot/pop3-login
    root 7686 0.0 0.0 14580 2140 ? S 08:50 0:01 dovecot/config
    dovenull 7687 0.0 0.1 44048 5168 ? S 08:50 0:03 dovecot/imap-login
    dovecot 7688 0.0 0.0 31772 1932 ? S 08:50 0:02 dovecot/auth
    lfpeccom 7805 0.0 0.1 44216 7948 ? S 08:51 0:01 dovecot/imap
    lfpeccom 7819 0.0 0.0 30280 3352 ? S 08:51 0:00 dovecot/imap
    lfpeccom 9148 0.0 0.0 30904 3380 ? S 08:58 0:00 dovecot/imap
    astemarc 9409 0.0 0.0 30412 3488 ? S 09:00 0:00 dovecot/imap
    lfpeccom 11875 0.0 0.0 30280 3264 ? S 09:11 0:00 dovecot/imap
    lfpeccom 13595 0.0 0.0 31372 3568 ? S 10:53 0:00 dovecot/imap
    tudoquer 15032 0.4 0.0 59056 840 ? Sl Oct20 11:09 ./sc_serv sc_serv.conf
    root 18354 0.0 0.2 76528 11340 ? S 11:08 0:00 /usr/local/cpanel/3rdparty/bin/perl /usr/loc
    lfpeccom 20785 0.0 0.0 29444 2176 ? S 11:16 0:00 dovecot/imap
    rraaadvb 23122 0.0 0.0 29888 3020 ? S 09:50 0:00 dovecot/imap
    rraaadvb 23853 0.0 0.0 29932 2980 ? S 11:27 0:00 dovecot/imap
    lfpeccom 24182 0.0 0.0 29444 2176 ? S 11:28 0:00 dovecot/imap
    lfpeccom 24790 0.0 0.0 29444 2176 ? S 11:30 0:00 dovecot/imap
    lfpeccom 24962 0.0 0.0 29444 2172 ? S 11:30 0:00 dovecot/imap
    mailnull 25149 0.0 0.0 72956 1348 ? Ss 06:51 0:00 /usr/sbin/exim -bd -q60m -oP /var/spool/exim
    root 25157 0.0 0.8 196004 33712 ? Ss 06:51 0:04 /usr/local/cpanel/3rdparty/perl/514/bin/spam
    lfpeccom 26887 0.0 0.0 29444 2172 ? S 11:36 0:00 dovecot/imap
    root 27224 0.0 0.0 32696 1324 ? S 07:03 0:00 queueprocd - wait to process a task
    root 27231 0.0 0.1 109984 8104 ? S 07:03 0:00 dnsadmin - server mode
    root 27245 0.0 0.3 79168 14172 ? S 07:03 0:05 tailwatchd
    root 27263 0.0 0.0 33656 3084 ? S 07:03 0:00 cpgreylistd - processor
    root 27266 0.0 0.1 78144 6072 ? S 07:03 0:04 cPhulkd - processor
    root 27319 0.0 0.0 132664 1868 ? S 07:03 0:00 cpdavd - accepting connections on 2077, 2078
    root 27322 0.0 0.0 23664 1656 ? SN 07:03 0:00 cpanellogd - sleeping for logs
    lfpeccom 27518 0.0 0.0 30032 3052 ? S 11:38 0:00 dovecot/imap
    nobody 29573 0.0 0.1 74112 6272 ? S 11:47 0:00 /usr/local/apache/bin/httpd -k start
    nobody 30170 0.0 0.1 74116 6196 ? S 11:49 0:00 /usr/local/apache/bin/httpd -k start
    nobody 30242 0.0 0.1 74116 6372 ? S 11:49 0:00 /usr/local/apache/bin/httpd -k start
    masterte 30408 0.0 0.0 31524 4120 ? S 11:49 0:00 dovecot/imap
    rraaadvb 30419 0.0 0.0 29788 2596 ? S 11:49 0:00 dovecot/imap
    rraaadvb 30571 0.0 0.0 29444 2212 ? S 11:50 0:00 dovecot/imap
    rraaadvb 30598 0.0 0.0 29872 2980 ? S 11:50 0:00 dovecot/imap
    nobody 31148 0.0 0.1 74252 6388 ? S 11:51 0:00 /usr/local/apache/bin/httpd -k start
    nobody 31351 0.0 0.1 74116 6132 ? S 11:52 0:00 /usr/local/apache/bin/httpd -k start
    nobody 31484 0.0 0.1 74116 6396 ? S 11:52 0:00 /usr/local/apache/bin/httpd -k start
    nobody 31671 0.0 0.1 74120 6400 ? S 11:53 0:00 /usr/local/apache/bin/httpd -k start
    root 32033 0.0 0.0 13412 1096 ? S 11:54 0:00 dovecot/ssl-params
    nobody 32085 0.0 0.1 74116 6120 ? S 11:54 0:00 /usr/local/apache/bin/httpd -k start
    nobody 32303 0.0 0.1 74112 6380 ? S 11:55 0:00 /usr/local/apache/bin/httpd -k start
    nobody 32752 0.0 0.1 74116 6152 ? S 11:56 0:00 /usr/local/apache/bin/httpd -k start


    Parece que o único que está com uso de memória maior é o Mysql, mas mesmo assim ainda sobra memória.
     
  6. Luciano Donato

    Joined:
    Oct 18, 2015
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Cachoeiro de Itapemirim, ES, Brasil
    cPanel Access Level:
    Root Administrator
    Tente desativar o swap e veja como fica seu uso.

    Desativando o SWAP:

    # swapoff -a

    Verifica se o uso foi para 0
    # free -m -t

    Ativando o SWAP:

    # swapon -a

    Verifica se uso voltou ao normal.
    # free -m -t
     
  7. duques

    duques Member

    Joined:
    Jul 29, 2015
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    não quer desativar:

    swapoff: Not superuser.

    Swap é isso?
    Swap é uma memória virtual que armazena os dados no disco rígido. O kernel do Linux se encarrega em escolher o que colocar no swap, como por exemplo, processos ociosos ou pouco acessados.

    Se a utilização de memória não está próxima de 100%, não é um problema.
     
  8. Luciano Donato

    Joined:
    Oct 18, 2015
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Cachoeiro de Itapemirim, ES, Brasil
    cPanel Access Level:
    Root Administrator
    Você não teve permissão para executar o comando, logue via root, ou utilize o sudo.
    ex.:

    $ sudo swapoff -a

    Obs>: Quando você receber uma comando linux e estive o caractere "#" este comando deve ser executado como root, se for "$" poderá ser executado com usuário normal.
     
  9. Luciano Donato

    Joined:
    Oct 18, 2015
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Cachoeiro de Itapemirim, ES, Brasil
    cPanel Access Level:
    Root Administrator
    Outra observação, este problema seu não parece ser do CPanel/WHM, parace ser problema no Linux, talvez deva tentar um forum de linux, talvez tenha mais gente que possa lhe ajudar.
    Você também precisa passar mais informações sobre seu ambiente, ex. qual Distro está usando? 32 ou 64Bits? Está atualizada? Verificou nos logs se tem algo dando errado?
     
  10. duques

    duques Member

    Joined:
    Jul 29, 2015
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Obrigado Luciano Donato, vou observar essas situações, obrigado pelo tempo oferecido, ainda estou aprendendo.
     
  11. Luciano Donato

    Joined:
    Oct 18, 2015
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Cachoeiro de Itapemirim, ES, Brasil
    cPanel Access Level:
    Root Administrator
    Que isso, somos dois, sempre aprendendo.
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I am happy to see the advice offered was helpful. Feel free to update us with the outcome in the future.

    Thank you.

    Translation:

    Olá :)

    Fico feliz em ver os conselhos oferecidos foi útil. Sinta-se livre para nos atualizar com o resultado no futuro.

    Obrigado.
     
  13. duques

    duques Member

    Joined:
    Jul 29, 2015
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Conforme empresa que contratei o servidor, diz que é normal pois não está afetando nenhuma atividade do servidor.

    Com isso devo concordar, mas como está 100% com sinal de ! em vermelho, chama atenção.

    Sem mais.
     

Share This Page