Foros del Web » Administración de Sistemas » Software para Servers »

Consumo de ram

Estas en el tema de Consumo de ram en el foro de Software para Servers en Foros del Web. Ultimamente mi servidor web en linux pasó de consumir menos de 1GB a consumir casi 10GB mi servidor lanza aplicaciones httpd para comunicarse con servidores ...
  #1 (permalink)  
Antiguo 26/01/2014, 21:21
 
Fecha de Ingreso: octubre-2006
Mensajes: 59
Antigüedad: 18 años
Puntos: 0
Consumo de ram

Ultimamente mi servidor web en linux
pasó de consumir menos de 1GB a consumir
casi 10GB

mi servidor lanza aplicaciones httpd para comunicarse
con servidores de aplicación

jboss 4801 0.0 0.0 29760 2360 ? S 07:15 0:04 /usr/local/apache2/bin/httpd -k start
jboss 5712 0.0 0.0 29888 2484 ? S 07:20 0:05 /usr/local/apache2/bin/httpd -k start
jboss 6787 0.0 0.0 29784 2396 ? S 10:24 0:01 /usr/local/apache2/bin/httpd -k start
jboss 6921 0.0 0.0 29652 2320 ? S 10:25 0:01 /usr/local/apache2/bin/httpd -k start
jboss 6948 0.0 0.0 29784 2384 ? S 10:25 0:01 /usr/local/apache2/bin/httpd -k start
jboss 7107 0.0 0.0 29768 2348 ? S 10:26 0:01 /usr/local/apache2/bin/httpd -k start
jboss 7139 0.0 0.0 29652 2324 ? S 10:26 0:01 /usr/local/apache2/bin/httpd -k start
jboss 7506 0.0 0.0 29896 2488 ? S 10:28 0:01 /usr/local/apache2/bin/httpd -k start
jboss 7508 0.0 0.0 29760 2344 ? S 10:28 0:01 /usr/local/apache2/bin/httpd -k start
jboss 7530 0.0 0.0 29784 2368 ? S 10:28 0:01 /usr/local/apache2/bin/httpd -k start
jboss 7693 0.0 0.0 29784 2348 ? S 10:29 0:01 /usr/local/apache2/bin/httpd -k start
jboss 8030 0.0 0.0 30192 2812 ? S 10:31 0:01 /usr/local/apache2/bin/httpd -k start
jboss 8032 0.0 0.0 29652 2308 ? S 10:31 0:01 /usr/local/apache2/bin/httpd -k start
jboss 8083 0.0 0.0 30040 2708 ? S 10:31 0:01 /usr/local/apache2/bin/httpd -k start



A pesar que bajo el servicio apache
el consumo se mantiene

/usr/local/apache2/bin/apachectl stop




[root@servidorweb logs]# ps auxxxxxxx
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 10344 684 ? Ss 07:09 0:00 init [3]
root 2 0.0 0.0 0 0 ? S< 07:09 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN 07:09 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S< 07:09 0:00 [watchdog/0]
root 5 0.0 0.0 0 0 ? S< 07:09 0:00 [migration/1]
root 6 0.0 0.0 0 0 ? SN 07:09 0:00 [ksoftirqd/1]
root 7 0.0 0.0 0 0 ? S< 07:09 0:00 [watchdog/1]
root 8 0.0 0.0 0 0 ? S< 07:09 0:00 [events/0]
root 9 0.0 0.0 0 0 ? S< 07:09 0:00 [events/1]
root 10 0.0 0.0 0 0 ? S< 07:09 0:00 [khelper]
root 147 0.0 0.0 0 0 ? S< 07:09 0:00 [kthread]
root 152 0.0 0.0 0 0 ? S< 07:09 0:00 [kblockd/0]
root 153 0.0 0.0 0 0 ? S< 07:09 0:00 [kblockd/1]
root 154 0.0 0.0 0 0 ? S< 07:09 0:00 [kacpid]
root 313 0.0 0.0 0 0 ? S< 07:09 0:00 [cqueue/0]
root 314 0.0 0.0 0 0 ? S< 07:09 0:00 [cqueue/1]
root 317 0.0 0.0 0 0 ? S< 07:09 0:00 [khubd]
root 319 0.0 0.0 0 0 ? S< 07:09 0:00 [kseriod]
root 392 0.0 0.0 0 0 ? S 07:09 0:00 [pdflush]
root 393 0.0 0.0 0 0 ? S 07:09 0:00 [pdflush]
root 394 0.0 0.0 0 0 ? S< 07:09 0:00 [kswapd0]
root 395 0.0 0.0 0 0 ? S< 07:09 0:00 [aio/0]
root 396 0.0 0.0 0 0 ? S< 07:09 0:00 [aio/1]
root 601 0.0 0.0 0 0 ? S< 07:09 0:00 [kpsmoused]
root 647 0.0 0.0 0 0 ? S< 07:09 0:00 [mpt_poll_0]
root 648 0.0 0.0 0 0 ? S< 07:09 0:00 [scsi_eh_0]
root 655 0.0 0.0 0 0 ? S< 07:09 0:00 [ata/0]
root 656 0.0 0.0 0 0 ? S< 07:09 0:00 [ata/1]
root 657 0.0 0.0 0 0 ? S< 07:09 0:00 [ata_aux]
root 667 0.0 0.0 0 0 ? S< 07:09 0:00 [kstriped]
root 680 0.0 0.0 0 0 ? S< 07:09 0:00 [ksnapd]
root 704 0.0 0.0 0 0 ? S< 07:10 0:02 [kjournald]
root 732 0.0 0.0 0 0 ? S< 07:10 0:00 [kauditd]
root 766 0.0 0.0 13012 1196 ? S<s 07:10 0:00 /sbin/udevd -d
root 2146 0.0 0.0 0 0 ? S< 07:10 0:00 [kmpathd/0]
root 2147 0.0 0.0 0 0 ? S< 07:10 0:00 [kmpathd/1]
root 2148 0.0 0.0 0 0 ? S< 07:10 0:00 [kmpath_handlerd]
root 2174 0.0 0.0 0 0 ? S< 07:10 0:00 [kjournald]
root 2686 0.0 0.0 0 0 ? S< 07:10 0:16 [vmmemctl]
root 2856 0.0 0.0 133832 4132 ? S 07:10 0:02 /usr/sbin/vmtoolsd
root 3268 0.0 0.0 27328 808 ? S<sl 07:10 0:00 auditd
root 3270 0.0 0.0 16268 744 ? S<sl 07:10 0:00 /sbin/audispd
root 3305 0.0 0.0 5904 596 ? Ss 07:10 0:00 syslogd -m 0
root 3308 0.0 0.0 3800 432 ? Ss 07:10 0:00 klogd -x
root 3325 0.0 0.0 10728 368 ? Ss 07:10 0:00 irqbalance
rpc 3348 0.0 0.0 8048 588 ? Ss 07:10 0:00 portmap
root 3391 0.0 0.0 10140 768 ? Ss 07:10 0:00 rpc.statd
root 3434 0.0 0.0 0 0 ? S< 07:10 0:00 [rpciod/0]
root 3435 0.0 0.0 0 0 ? S< 07:10 0:00 [rpciod/1]
root 3443 0.0 0.0 48712 728 ? Ss 07:10 0:00 rpc.idmapd
dbus 3472 0.0 0.0 21256 984 ? Ss 07:10 0:00 dbus-daemon --system
root 3488 0.0 0.0 10428 784 ? Ss 07:10 0:00 /usr/sbin/hcid
root 3494 0.0 0.0 5932 540 ? Ss 07:10 0:00 /usr/sbin/sdpd
root 3518 0.0 0.0 0 0 ? S< 07:10 0:00 [krfcommd]
root 3570 0.0 0.0 21036 1300 ? Ssl 07:10 0:00 pcscd
root 3591 0.0 0.0 8512 476 ? Ss 07:10 0:00 /usr/bin/hidd --server
root 3613 0.0 0.0 32000 1228 ? Ssl 07:10 0:00 automount
root 3638 0.0 0.0 3796 560 ? Ss 07:10 0:00 /usr/sbin/acpid
root 3654 0.0 0.0 26312 508 ? Ss 07:10 0:00 ./hpiod
root 3659 0.0 0.0 155052 6708 ? S 07:10 0:00 python ./hpssd.py
root 3692 0.0 0.0 60672 1184 ? Ss 07:10 0:00 /usr/sbin/sshd
root 3732 0.0 0.0 6448 360 ? Ss 07:10 0:00 gpm -m /dev/input/mice -t exps2
root 3765 0.0 0.0 74816 1132 ? Ss 07:10 0:00 crond
xfs 3801 0.0 0.0 20820 1636 ? Ss 07:10 0:00 xfs -droppriv -daemon
root 3832 0.0 0.0 18732 456 ? Ss 07:10 0:00 /usr/sbin/atd
avahi 3867 0.0 0.0 23268 1396 ? Ss 07:10 0:00 avahi-daemon: running [vuprwe01.local]
avahi 3868 0.0 0.0 23144 332 ? Ss 07:10 0:00 avahi-daemon: chroot helper
68 3884 0.0 0.0 31044 4120 ? Ss 07:10 0:02 hald
root 3885 0.0 0.0 21688 1060 ? S 07:10 0:00 hald-runner
68 3893 0.0 0.0 12320 848 ? S 07:10 0:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root 3894 0.0 0.0 256904 15396 ? SN 07:10 0:00 /usr/bin/python -tt /usr/sbin/yum-updatesd
root 3900 0.0 0.0 12912 1172 ? SN 07:10 0:00 /usr/libexec/gam_server
68 3901 0.0 0.0 12320 844 ? S 07:10 0:00 hald-addon-keyboard: listening on /dev/input/event0
root 3910 0.0 0.0 10224 688 ? D 07:10 0:03 hald-addon-storage: polling /dev/hda
root 3958 0.0 0.0 18412 460 ? S 07:10 0:00 /usr/sbin/smartd -q never
root 3962 0.0 0.0 3788 484 tty1 Ss+ 07:10 0:00 /sbin/mingetty tty1
root 3963 0.0 0.0 3788 484 tty2 Ss+ 07:10 0:00 /sbin/mingetty tty2
root 3964 0.0 0.0 3788 488 tty3 Ss+ 07:10 0:00 /sbin/mingetty tty3
root 3965 0.0 0.0 3788 484 tty4 Ss+ 07:10 0:00 /sbin/mingetty tty4
root 3982 0.0 0.0 3788 488 tty5 Ss+ 07:10 0:00 /sbin/mingetty tty5
root 3985 0.0 0.0 3788 488 tty6 Ss+ 07:10 0:00 /sbin/mingetty tty6
root 18325 0.0 0.0 87028 3356 ? Rs 11:28 0:00 sshd: root@pts/0
root 18480 0.0 0.0 66296 1764 pts/0 Ss 11:28 0:00 -bash
root 24978 0.0 0.0 88216 3388 ? Ss 12:04 0:00 sshd: root@notty
root 24980 0.0 0.0 54004 2104 ? Ss 12:04 0:00 /usr/libexec/openssh/sftp-server
root 25359 0.0 0.0 88964 3356 ? Ss 12:06 0:00 sshd: root@pts/1
root 25361 0.0 0.0 66296 1740 pts/1 Ss+ 12:06 0:00 -bash
root 26187 0.0 0.0 65596 968 pts/0 R+ 12:19 0:00 ps auxxxxxxx


[root@servidorweb logs]# free -m
total used free shared buffers cached
Mem: 16051 11058 4993 0 62 453
-/+ buffers/cache: 10542 5509
Swap: 5951 0 5951


El consumo aun sigue siendo 10GB !
Que proceso puede estar consumiendo tanto RAM ?
  #2 (permalink)  
Antiguo 27/01/2014, 23:08
Avatar de Adsl5mb  
Fecha de Ingreso: junio-2007
Mensajes: 1.589
Antigüedad: 17 años, 4 meses
Puntos: 34
Respuesta: Consumo de ram

Cuando veas un consumo fuera de lo normal utilizá un script como ps_mem.py y te dirá que proceso es el que consume tanta RAM.

http://crunchbang.org/forums/viewtopic.php?id=12933
__________________
Foro: Yelsoft
Blog: Milutilidades
  #3 (permalink)  
Antiguo 30/01/2014, 10:37
 
Fecha de Ingreso: octubre-2006
Mensajes: 59
Antigüedad: 18 años
Puntos: 0
Respuesta: Consumo de ram

# ./ps_mem.py
Private + Shared = RAM used Program

128.0 KiB + 232.0 KiB = 360.0 KiB gpm
144.0 KiB + 220.0 KiB = 364.0 KiB irqbalance
108.0 KiB + 320.0 KiB = 428.0 KiB klogd
244.0 KiB + 220.0 KiB = 464.0 KiB smartd
176.0 KiB + 288.0 KiB = 464.0 KiB atd
120.0 KiB + 356.0 KiB = 476.0 KiB hidd
240.0 KiB + 272.0 KiB = 512.0 KiB hpiod
148.0 KiB + 392.0 KiB = 540.0 KiB sdpd
156.0 KiB + 412.0 KiB = 568.0 KiB acpid
144.0 KiB + 440.0 KiB = 584.0 KiB portmap
156.0 KiB + 444.0 KiB = 600.0 KiB syslogd
152.0 KiB + 528.0 KiB = 680.0 KiB init
112.0 KiB + 576.0 KiB = 688.0 KiB hald-addon-storage
496.0 KiB + 236.0 KiB = 732.0 KiB rpc.idmapd
192.0 KiB + 576.0 KiB = 768.0 KiB rpc.statd
192.0 KiB + 576.0 KiB = 768.0 KiB audispd
224.0 KiB + 556.0 KiB = 780.0 KiB hcid
352.0 KiB + 468.0 KiB = 820.0 KiB auditd
420.0 KiB + 416.0 KiB = 836.0 KiB mingetty (6)
128.0 KiB + 720.0 KiB = 848.0 KiB hald-addon-acpi
128.0 KiB + 720.0 KiB = 848.0 KiB hald-addon-keyboard
352.0 KiB + 608.0 KiB = 960.0 KiB xinetd
524.0 KiB + 480.0 KiB = 1.0 MiB dbus-daemon
200.0 KiB + 860.0 KiB = 1.0 MiB hald-runner
612.0 KiB + 516.0 KiB = 1.1 MiB crond
304.0 KiB + 868.0 KiB = 1.1 MiB gam_server
836.0 KiB + 356.0 KiB = 1.2 MiB udevd
596.0 KiB + 620.0 KiB = 1.2 MiB automount
864.0 KiB + 436.0 KiB = 1.3 MiB pcscd
492.0 KiB + 972.0 KiB = 1.4 MiB avahi-daemon (2)
1.1 MiB + 500.0 KiB = 1.6 MiB xfs
1.0 MiB + 684.0 KiB = 1.7 MiB bash
2.6 MiB + 1.2 MiB = 3.8 MiB sshd (2)
2.9 MiB + 1.2 MiB = 4.0 MiB hald
3.1 MiB + 952.0 KiB = 4.0 MiB vmtoolsd
5.7 MiB + 896.0 KiB = 6.6 MiB python
11.0 MiB + 2.0 MiB = 13.0 MiB httpd (31)
13.5 MiB + 1.6 MiB = 15.2 MiB yum-updatesd
Warning: Shared memory is slightly over-estimated by this system
for each program, so totals are not reported.






# ./mem_info.py
Private + Shared = RAM used Program

128.0 KiB + 232.0 KiB = 360.0 KiB gpm
144.0 KiB + 220.0 KiB = 364.0 KiB irqbalance
108.0 KiB + 320.0 KiB = 428.0 KiB klogd
244.0 KiB + 220.0 KiB = 464.0 KiB smartd
176.0 KiB + 288.0 KiB = 464.0 KiB atd
120.0 KiB + 356.0 KiB = 476.0 KiB hidd
240.0 KiB + 272.0 KiB = 512.0 KiB hpiod
148.0 KiB + 392.0 KiB = 540.0 KiB sdpd
156.0 KiB + 412.0 KiB = 568.0 KiB acpid
144.0 KiB + 440.0 KiB = 584.0 KiB portmap
156.0 KiB + 444.0 KiB = 600.0 KiB syslogd
152.0 KiB + 528.0 KiB = 680.0 KiB init
112.0 KiB + 576.0 KiB = 688.0 KiB hald-addon-stor
496.0 KiB + 236.0 KiB = 732.0 KiB rpc.idmapd
192.0 KiB + 576.0 KiB = 768.0 KiB rpc.statd
192.0 KiB + 576.0 KiB = 768.0 KiB audispd
224.0 KiB + 556.0 KiB = 780.0 KiB hcid
352.0 KiB + 468.0 KiB = 820.0 KiB auditd
420.0 KiB + 416.0 KiB = 836.0 KiB mingetty (6)
128.0 KiB + 720.0 KiB = 848.0 KiB hald-addon-acpi
128.0 KiB + 720.0 KiB = 848.0 KiB hald-addon-keyb
352.0 KiB + 608.0 KiB = 960.0 KiB xinetd
524.0 KiB + 480.0 KiB = 1.0 MiB dbus-daemon
200.0 KiB + 860.0 KiB = 1.0 MiB hald-runner
612.0 KiB + 516.0 KiB = 1.1 MiB crond
304.0 KiB + 868.0 KiB = 1.1 MiB gam_server
836.0 KiB + 356.0 KiB = 1.2 MiB udevd
596.0 KiB + 620.0 KiB = 1.2 MiB automount
864.0 KiB + 436.0 KiB = 1.3 MiB pcscd
492.0 KiB + 972.0 KiB = 1.4 MiB avahi-daemon (2)
1.1 MiB + 500.0 KiB = 1.6 MiB xfs
1.0 MiB + 684.0 KiB = 1.7 MiB bash
2.6 MiB + 1.2 MiB = 3.8 MiB sshd (2)
2.9 MiB + 1.2 MiB = 4.0 MiB hald
3.1 MiB + 948.0 KiB = 4.0 MiB vmtoolsd
5.7 MiB + 896.0 KiB = 6.6 MiB python
10.5 MiB + 2.0 MiB = 12.5 MiB httpd (28)
13.5 MiB + 1.6 MiB = 15.2 MiB yum-updatesd

Private + Shared = RAM used Program

((No llega a capturar el total))



# free -m
total used free shared buffers cached
Mem: 16051 12258 3793 0 181 1466
-/+ buffers/cache: 10610 5441
Swap: 5951 0 5951


muchas gracias por cualquier ayuda
  #4 (permalink)  
Antiguo 19/02/2014, 11:57
 
Fecha de Ingreso: octubre-2006
Mensajes: 59
Antigüedad: 18 años
Puntos: 0
Respuesta: Consumo de ram

alguna ayuda adicional ?

Etiquetas: apache, consumo, ip, ram, red, server, servidor, servidores-web
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:07.