Bienvenido(a) a Alcance Libre 11/09/2025, 08:17

Alcance Libre Foros

 Índice del foro > Todo acerca de Linux > Redes y Servidores New Topic Post Reply
 Exesivo consumo de RAM
Tópico anterior Tópico siguiente
   
Oscar Cáceres
 28/04/11 11:03 (Leído 1,940 veces)  

Participa mucho

Estado: desconectado
Forum User

Identificado: 13/01/10
Mensajes: 62
Localización:Ciudad del Este - Paraguay
Buenos días.
Nuevamente por aquí con una consulta. Tengo en producción un servidor que hace de mailserver maestro y dns secundario, por más que por momentos levanto algún ftp los principales son los primeros servicios. Tenía solo 1giga de RAM y como la consumía toda decidí agregarle una más de 1 giga pero esto fue en vano se la devora en cuestión de horas. También el mismo caso con otro server a la cual le subí la RAM a 3gigas. Características técnicas del Servidor:
Servidor raqueble de 1U.
Centos 5
Sendmail
Intel(R) Xeon(TM) CPU 3.20GHz
MemTotal: 2075304 kB
HD 500Gb Sata. (2)
El inconveniente que tengo es el consumo excesivo de RAM, pienso que es excesivo porque no hay tanta demanda en los servicios, además en hay momentos que el consumo de RAM cae. Les dejo algunas infos a ver si pueden echarme una mano.

PHP Formatted Code
free -m
                     total       used       free     shared    buffers     cached
Mem:          2026       1621        405          0        182       1140
-/+ buffers/cache:        298       1727
Swap:         5055          0       5055

PHP Formatted Code
##################################################################
top - 11:07:18 up 12 days, 21:11,  2 users,  load average: 1.00, 1.01, 1.00
Tasks: 123 total,   2 running, 114 sleeping,   7 stopped,   0 zombie
Cpu(s):  5.8%us, 45.0%sy,  0.0%ni, 49.2%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2075304k total,  1659768k used,   415536k free,   186464k buffers
Swap:  5177336k total,       56k used,  5177280k free,  1167736k cached
#################################################################
ps -aux
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   2072   624 ?        Ss   Apr15   0:01 init [3]
root         2  0.0  0.0      0     0 ?        S<   Apr15   0:00 [migration/0]
root         3  0.0  0.0      0     0 ?        SN   Apr15   0:00 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S<   Apr15   0:00 [watchdog/0]
root         5  0.0  0.0      0     0 ?        S<   Apr15   0:00 [migration/1]
root         6  0.0  0.0      0     0 ?        SN   Apr15   0:04 [ksoftirqd/1]
root         7  0.0  0.0      0     0 ?        S<   Apr15   0:00 [watchdog/1]
root         8  0.0  0.0      0     0 ?        S<   Apr15   0:00 [events/0]
root         9  0.0  0.0      0     0 ?        S<   Apr15   0:00 [events/1]
root        10  0.0  0.0      0     0 ?        S<   Apr15   0:00 [khelper]
root        11  0.0  0.0      0     0 ?        S<   Apr15   0:00 [kthread]
root        15  0.0  0.0      0     0 ?        S<   Apr15   0:00 [kblockd/0]
root        16  0.0  0.0      0     0 ?        S<   Apr15   0:00 [kblockd/1]
root        17  0.0  0.0      0     0 ?        S<   Apr15   0:00 [kacpid]
root       118  0.0  0.0      0     0 ?        S<   Apr15   0:00 [cqueue/0]
root       119  0.0  0.0      0     0 ?        S<   Apr15   0:00 [cqueue/1]
root       122  0.0  0.0      0     0 ?        S<   Apr15   0:00 [khubd]
root       124  0.0  0.0      0     0 ?        S<   Apr15   0:00 [kseriod]
root       190  0.0  0.0      0     0 ?        S    Apr15   0:05 [pdflush]
root       191  0.0  0.0      0     0 ?        S    Apr15   0:06 [pdflush]
root       192  0.0  0.0      0     0 ?        S<   Apr15   0:10 [kswapd0]
root       193  0.0  0.0      0     0 ?        S<   Apr15   0:00 [aio/0]
root       194  0.0  0.0      0     0 ?        S<   Apr15   0:00 [aio/1]
root       348  0.0  0.0      0     0 ?        S<   Apr15   0:00 [kpsmoused]
root       379  0.0  0.0      0     0 ?        S<   Apr15   0:00 [ata/0]
root       380  0.0  0.0      0     0 ?        S<   Apr15   0:00 [ata/1]
root       381  0.0  0.0      0     0 ?        S<   Apr15   0:00 [ata_aux]
root       385  0.0  0.0      0     0 ?        S<   Apr15   0:00 [scsi_eh_0]
root       386  0.0  0.0      0     0 ?        S<   Apr15   0:00 [scsi_eh_1]
root       390  0.0  0.0      0     0 ?        S<   Apr15   0:00 [kstriped]
root       403  0.0  0.0      0     0 ?        S<   Apr15   0:00 [ksnapd]
root       418  0.0  0.0      0     0 ?        S<   Apr15   2:46 [kjournald]
root       449  0.0  0.0      0     0 ?        S<   Apr15   0:00 [kauditd]
root       486  0.0  0.0   3084  1596 ?        S<s  Apr15   0:00 /sbin/udevd -d
root       964  0.0  0.0      0     0 ?        S<   Apr15   0:00 [kedac]
root      1353  0.0  0.0      0     0 ?        S<   Apr15   0:00 [kmpathd/0]
root      1354  0.0  0.0      0     0 ?        S<   Apr15   0:00 [kmpathd/1]
root      1355  0.0  0.0      0     0 ?        S<   Apr15   0:00 [kmpath_handlerd]
root      1379  0.0  0.0      0     0 ?        S<   Apr15   0:00 [kjournald]
root      1694  0.0  0.0   2172   516 ?        Ss   Apr15   0:01 mcstransd
root      2014  0.0  0.0  12528   788 ?        S<sl Apr15   0:22 auditd
root      2016  0.0  0.0  13108   756 ?        S<sl Apr15   0:02 /sbin/audispd
root      2038  0.0  0.5  11896 10560 ?        Ss   Apr15   0:00 /usr/sbin/restorecond
root      2052  0.0  0.0   1728   576 ?        Ss   Apr15   1:03 syslogd -m 0
root      2055  0.0  0.0   1680   392 ?        Ss   Apr15   0:20 klogd -x
named     2110  0.7  3.0 109856 63168 ?        Ssl  Apr15 141:33 /usr/sbin/named -u named -t /var/named/chroot
rpc       2139  0.0  0.0   1816   544 ?        Ss   Apr15   0:00 portmap
root      2170  0.0  0.0      0     0 ?        S<   Apr15   0:00 [rpciod/0]
root      2171  0.0  0.0      0     0 ?        S<   Apr15   0:00 [rpciod/1]
rpcuser   2179  0.0  0.0   1868   732 ?        Ss   Apr15   0:00 rpc.statd
root      2213  0.0  0.0   5524   588 ?        Ss   Apr15   0:00 rpc.idmapd
dbus      2238  0.0  0.0  13000  1028 ?        Ssl  Apr15   0:00 dbus-daemon --system
root      2253  0.0  0.0   2172   760 ?        Ss   Apr15   0:00 /usr/sbin/hcid
root      2259  0.0  0.0   1748   504 ?        Ss   Apr15   0:00 /usr/sbin/sdpd
root      2280  0.0  0.0      0     0 ?        S<   Apr15   0:00 [krfcommd]
root      2328  0.0  0.0  12736  1280 ?        Ssl  Apr15   0:00 pcscd
root      4388  0.0  0.0   1676   528 ?        Ss   Apr15   0:00 /usr/sbin/acpid
root      4410  0.0  0.0   1916   448 ?        Ss   Apr15   0:00 /usr/bin/hidd --server
root      4441  0.0  0.0  28276  1376 ?        Ssl  Apr15   0:00 automount
root      4463  0.0  0.0   5156   504 ?        Ss   Apr15   0:00 ./hpiod
root      4468  0.0  0.2  13752  4724 ?        S    Apr15   0:00 python ./hpssd.py
root      4484  0.0  0.3  27484  6672 ?        Sl   Apr15   1:12 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a
root      4502  0.0  0.0   7088  1060 ?        Ss   Apr15   0:00 /usr/sbin/sshd
root      4521  0.0  0.0   2728   856 ?        Ss   Apr15   0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root      4538  0.0  0.0   5200   520 ?        Ss   Apr15   0:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
root      4552  0.0  0.0   1880   512 ?        Ss   Apr15   0:08 /usr/sbin/dovecot
root      4568  0.0  0.0   7832  1824 ?        S    Apr15   0:17 dovecot-auth
root      4600  0.0  0.0   1908   368 ?        Ss   Apr15   0:00 gpm -m /dev/input/mice -t exps2
root      4621  0.0  0.1   4868  2196 ?        S    Apr15   0:00 /usr/sbin/nss_pcache off /etc/httpd/alias
root      4623  0.0  3.4  99736 71184 ?        Ssl  Apr15   0:02 /usr/sbin/httpd
root      4637  0.0  0.0   5300  1196 ?        Ss   Apr15   0:00 crond
xfs       4672  0.0  0.0   3840  1476 ?        Ss   Apr15   0:00 xfs -droppriv -daemon
root      4707  0.0  0.0   2276   436 ?        Ss   Apr15   0:00 /usr/sbin/atd
avahi     4722  0.0  0.0   2600  1368 ?        Ss   Apr15   0:00 avahi-daemon: running [mburuvicha.local]
avahi     4723  0.0  0.0   2600   312 ?        Ss   Apr15   0:00 avahi-daemon: chroot helper
68        4737  0.0  0.1   5852  3828 ?        Ss   Apr15   0:01 hald
root      4738  0.0  0.0   3164   984 ?        S    Apr15   0:00 hald-runner
68        4745  0.0  0.0   2020   812 ?        S    Apr15   0:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
68        4748  0.0  0.0   2020   816 ?        S    Apr15   0:00 hald-addon-keyboard: listening on /dev/input/event0
root      4789  0.0  0.0   3516   508 ?        S    Apr15   0:00 /usr/sbin/smartd -q never
root      4793  0.0  0.0   2896  1308 ?        Ss   Apr15   0:00 login -- root
root      4794  0.0  0.0   1664   424 tty2     Ss+  Apr15   0:00 /sbin/mingetty tty2
root      4795  0.0  0.0   1664   420 tty3     Ss+  Apr15   0:00 /sbin/mingetty tty3
root      4796  0.0  0.0   1664   448 tty4     Ss+  Apr15   0:00 /sbin/mingetty tty4
root      4803  0.0  0.0   1664   420 tty5     Ss+  Apr15   0:00 /sbin/mingetty tty5
root      4807  0.0  0.0   1664   444 tty6     Ss+  Apr15   0:00 /sbin/mingetty tty6
root      4849  0.0  0.0   4668  1500 tty1     Ss+  Apr15   0:00 -bash
root      4899  0.0  0.0   1908   716 tty1     T    Apr15   0:02 ping www.google.com
root      5493  0.0  0.0   3740   500 tty1     T    Apr15   0:00 tail -f /var/log/maillog
root     17314  0.0  0.1   9940  2820 ?        Ss   08:51   0:00 sshd: caos [priv]
caos     17316  0.0  0.0  10096  1728 ?        S    08:51   0:01 sshd: caos@pts/0
caos     17317  0.0  0.0   4640  1440 pts/0    Ss   08:51   0:00 -bash
root     17509  0.0  0.0   5876  1516 ?        S    09:00   0:00 crond
root     17510  0.0  0.0   2412   972 ?        Ss   09:00   0:00 /bin/bash /usr/share/clamav/freshclam-sleep
root     17513  0.0  0.0   1668   388 ?        S    09:00   0:00 sleep 10448
root     17615  0.0  0.0   4932  1304 pts/0    S    09:04   0:00 su
root     17616  0.0  0.0   4804  1588 pts/0    S    09:04   0:00 bash
root     17658  0.0  0.0   1704   436 ?        Ss   09:05   0:00 [rvnamed]
root     18479  0.0  0.0   3740   500 pts/0    T    09:09   0:00 tail -f /var/log/messages
root     18677  0.0  0.0   3740   496 pts/0    T    09:10   0:00 tail -f /var/log/messages
root     18786  0.0  0.0   3740   496 pts/0    T    09:13   0:00 tail -f /var/log/messages
apache   18968  0.0  1.2 105720 26604 ?        S    Apr25   0:01 /usr/sbin/httpd
root     18993  0.0  0.0   3740   492 pts/0    T    09:24   0:00 tail -f /var/log/messages
root     19213  0.0  0.0   4148   684 pts/0    T    09:32   0:00 rsync -avz -e ssh -p 22222 /var/www/mrtg/ root@172.16.17.4:/var/www/mrtg/
root     19214 90.7  0.4  14368 10252 pts/0    R    09:32  86:51 ssh -p 22222 -l root 172.16.17.4 rsync --server -vlogDtprz . /var/www/mrtg/
root     21754  0.0  0.0   9300  1924 ?        Ss   09:56   0:00 sendmail: accepting connections
smmsp    21763  0.0  0.0   8148  1492 ?        Ss   09:56   0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
dovecot  21900  0.0  0.0   4908  1504 ?        S    09:57   0:00 imap-login
dovecot  24135  0.0  0.0   4908  1500 ?        S    10:07   0:00 imap-login
dovecot  24258  0.0  0.0   4908  1504 ?        S    10:12   0:00 imap-login
dovecot  25500  0.0  0.0   4904  1496 ?        S    11:06   0:00 pop3-login
dovecot  25519  0.0  0.0   4904  1492 ?        S    11:06   0:00 pop3-login
root     25526  0.0  0.1   9364  2668 ?        S    11:07   0:00 sendmail: startup with [172.18.9.230]
root     25543  0.0  0.1   9364  2668 ?        S    11:08   0:00 sendmail: startup with [172.18.9.230]
root     25544  0.0  0.1   9364  2668 ?        S    11:08   0:00 sendmail: startup with [172.18.29.190]
dovecot  25545  0.0  0.0   4904  1500 ?        S    11:08   0:00 pop3-login
root     25546  0.0  0.0   4260   944 pts/0    R+   11:08   0:00 ps -aux
apache   29664  0.0  1.3 107328 28024 ?        S    Apr24   0:02 /usr/sbin/httpd
apache   29665  0.0  1.4 108016 29320 ?        S    Apr24   0:02 /usr/sbin/httpd
apache   29666  0.0  1.3 107768 28332 ?        S    Apr24   0:02 /usr/sbin/httpd
apache   29667  0.0  1.3 107216 27832 ?        S    Apr24   0:01 /usr/sbin/httpd
apache   29668  0.0  1.3 107468 28520 ?        S    Apr24   0:01 /usr/sbin/httpd
apache   29669  0.0  1.3 106656 27356 ?        S    Apr24   0:02 /usr/sbin/httpd
apache   29670  0.0  1.3 107840 28400 ?        S    Apr24   0:01 /usr/sbin/httpd
apache   29671  0.0  1.3 107320 28648 ?        S    Apr24   0:02 /usr/sbin/httpd


Oscar Cáceres
 
Profile Email
 Quote
Joel Barrios Dueñas
 28/04/11 11:25  

Admin

Estado: desconectado
Site Admin

Identificado: 17/02/07
Mensajes: 1761
Localización:Mexico
De acuerdo a lo que muestras con free -m, solo estás utilizando realmente 298 MB RAM y tienes 1727 MB libres. Lo que ves como memoria saturada, en realidad se trata de memoria cache, la cual es reclamada de manera dinámica cuando el sistema necesite utilizarla.

Cuando tu sistema empieza a utilizar swap, entonces si significa que necesitas más RAM.

PHP Formatted Code
free -m
                   total  used  free  shared  buffers  cached
Mem:               2026   1621  405   0       182      1140
-/+ buffers/cache: 298    1727
Swap:              5055   0     5055


Lo anterior se traduce de la siguiente manera... tienes 2026 MB de RAM, hay 1621 utilizados, 405 libres, 0 de memoria compartida, 182 MB de RAM utilizados para bufers y 1140 MB de RAM utilizados como cache. La memoria libre se calcula restando al total la memoria utilizada por el cache más la memoria utilizada por los buffers. Es decir, tienes solo 298 MB RAM utilizados y 1727 MB libres.
 
Profile Email Website
 Quote
Oscar Cáceres
 28/04/11 11:58  

Participa mucho

Estado: desconectado
Forum User

Identificado: 13/01/10
Mensajes: 62
Localización:Ciudad del Este - Paraguay
Nuevamente muchas gracias Sr. Barrios.

Evidentemente por lo que usted me explica, mi problema radicaba en la mala comprensión de los datos, ayudado de unos gráficos que genero con cacti, que por cierto no estoy pudiendo subirlo para mostrárselo los tengo en jpg. Pero en fin gracias nuevamente.

Oscar Cáceres
 
Profile Email
 Quote
Contenido generado en: 0.24 segundos New Topic Post Reply
 Todas las horas son CST. Hora actual 08:17 .
Tópico normal Tópico normal
Tópico Pegado Tópico Pegado
Tópico bloqueado Tópico bloqueado
Mensaje Nuevo Mensaje Nuevo
Tópico pegado con nuevo mensaje Tópico pegado con nuevo mensaje
Tópico bloqueado con nuevo mensaje Tópico bloqueado con nuevo mensaje
Ver mensajes anónimos 
Los usuarios anónimos pueden enviar 
Se permite HTML Filtrado 
Contenido censurado