Alto consumo da memória

1. Alto consumo da memória

Gustavo
gugabyte

(usa CentOS)

Enviado em 08/02/2009 - 15:51h

Não sou fera em linux mais tenho um servidor dedicado que tem uma semana que ta me dando muita dor de cabeça, ele freqüentemente trava devido ao alto consumo da memória não tem hora especifica pode ser durando um pico de acesso ou ate mesmo durante a madruga, percebo o seguinte, apóis vários dias monitorando o consumo da memório percebo que o normal é consumir 2 a 3 gigas de memória ( o servidor tem 8 gigas) mais em uma certa hora do dia ( pode ser 1 ou até 3x no dia) esse consumo sobe rapidamente se chegar a 6 gigas e ele não diminui mais vai consumindo toda a memória ate começar a usar o swap e quando isso ocorre o serv fica muito lento chegando a sair do ar.

Algumas informações importantes:

Operating system CentOS Linux 5.2
Kernel and CPU Linux 2.6.18-92.1.22.el5PAE on i686
System uptime 2 hours, 27 minutes
CPU load averages 8.34 (1 min) 9.33 (5 mins) 9.39 (15 mins)
Real memory 7.92 GB total, 1.67 GB used
Virtual memory 8.29 GB total, 0 bytes used
Local disk space 222.61 GB total, 24.47 GB used

O site tem uma média de 35mil pageviews por dia
o banco de dados é mysql com 386.379 registros (200mb) e tendo uma média de 5.000 novos registro diários

Aparentemente nenhuma msg de esso antes da máquina travar
Feb 8 05:00:02 localhost ntpdate[6782]: adjust time server 192.5.41.40 offset -0.341383 sec
Feb 8 06:00:06 localhost ntpdate[11922]: adjust time server 128.252.19.1 offset -0.021390 sec
Feb 8 07:00:02 localhost ntpdate[14781]: adjust time server 192.5.41.40 offset -0.069693 sec
Feb 8 08:00:03 localhost ntpdate[17973]: adjust time server 192.5.41.40 offset -0.048406 sec
Feb 8 09:00:09 localhost ntpdate[21326]: adjust time server 128.252.19.1 offset -0.058768 sec
Feb 8 09:57:24 localhost shutdown[23598]: shutting down for system reboot
Feb 8 09:58:17 localhost init: Switching to runlevel: 6
Feb 8 10:01:54 localhost ntpdate[23844]: adjust time server 192.5.41.40 offset -0.060610 sec
Feb 8 10:06:19 localhost smartd[2792]: smartd received signal 15: Terminated
Feb 8 10:06:19 localhost smartd[2792]: smartd is exiting (exit status 0)
Feb 8 10:07:17 localhost avahi-daemon[2646]: Got SIGTERM, quitting.
Feb 8 10:07:21 localhost avahi-daemon[2646]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::20a:5eff:fe76:51ce.
Feb 8 10:07:21 localhost avahi-daemon[2646]: Leaving mDNS multicast group on interface eth0.IPv4 with address xxx.xxx.xxx.xxx.
Feb 8 10:07:24 localhost shutdown[24178]: shutting down for system reboot
Feb 8 10:10:21 localhost rpc.statd[2131]: Caught signal 15, un-registering and exiting.


comando free num momento normal:
> free
total used free shared buffers cached
Mem: 8301396 2562196 5739200 0 72940 558180
-/+ buffers/cache: 1931076 6370320
Swap: 8692948 0 8692948


Comando top no momento normal:
top - 12:49:01 up 2:37, 1 user, load average: 10.71, 10.20, 9.87
Tasks: 476 total, 4 running, 471 sleeping, 0 stopped, 1 zombie
Cpu(s): 74.1%us, 25.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%st
Mem: 8301396k total, 2865468k used, 5435928k free, 73324k buffers
Swap: 8692948k total, 0k used, 8692948k free, 559084k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2456 mysql 23 0 561m 108m 4700 S 359 1.3 519:45.69 mysqld
17697 apache 15 0 24680 6200 2708 S 17 0.1 0:01.79 httpd
18153 apache 15 0 89008 68m 2720 S 8 0.8 0:00.99 httpd
18140 apache 16 0 103m 85m 2692 S 7 1.1 0:00.22 httpd
18193 apache 15 0 79800 59m 2480 S 5 0.7 0:00.15 httpd
17158 apache 15 0 29596 10m 2732 S 1 0.1 0:02.38 httpd
18400 root 15 0 2456 1284 816 R 1 0.0 0:00.18 top
15548 apache 15 0 89020 68m 2716 S 0 0.8 0:04.33 httpd
16819 apache 15 0 24708 6216 2688 S 0 0.1 0:01.88 httpd
17717 apache 15 0 24712 6232 2708 S 0 0.1 0:00.57 httpd
17841 apache 15 0 24608 5996 2616 S 0 0.1 0:00.02 httpd
17925 apache 16 0 29140 12m 4396 S 0 0.1 0:01.85 httpd
18096 apache 15 0 24568 5588 2324 S 0 0.1 0:00.01 httpd
1 root 15 0 2064 648 556 S 0 0.0 0:01.10 init
2 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0
3 root 39 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0
4 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0
5 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/1
6 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1
7 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1
8 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/2
9 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/2
10 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/2
11 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/3
12 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/3
13 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/3
14 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/0
15 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/1
16 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/2
17 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/3
18 root 10 -5 0 0 0 S 0 0.0 0:00.00 khelper
19 root 11 -5 0 0 0 S 0 0.0 0:00.00 kthread
25 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/0
26 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1
27 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/2
28 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/3
29 root 16 -5 0 0 0 S 0 0.0 0:00.00 kacpid
144 root 16 -5 0 0 0 S 0 0.0 0:00.00 cqueue/0
145 root 16 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1
146 root 17 -5 0 0 0 S 0 0.0 0:00.00 cqueue/2
147 root 17 -5 0 0 0 S 0 0.0 0:00.00 cqueue/3
150 root 11 -5 0 0 0 S 0 0.0 0:00.00 khubd
152 root 17 -5 0 0 0 S 0 0.0 0:00.00 kseriod
227 root 22 0 0 0 0 S 0 0.0 0:00.00 pdflush
228 root 15 0 0 0 0 S 0 0.0 0:00.10 pdflush
229 root 19 -5 0 0 0 S 0 0.0 0:00.00 kswapd0
230 root 19 -5 0 0 0 S 0 0.0 0:00.00 aio/0
231 root 20 -5 0 0 0 S 0 0.0 0:00.00 aio/1
232 root 10 -5 0 0 0 S 0 0.0 0:00.00 aio/2
233 root 20 -5 0 0 0 S 0 0.0 0:00.00 aio/3
390 root 11 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused
436 root 12 -5 0 0 0 S 0 0.0 0:00.00 ata/0

Se alguem puder da uma luz eu agradeço, se precisar de mais alguma informação para esclarecer o problema é só pedir q posto.







  


2. Re: Alto consumo da memória

Gustavo
gugabyte

(usa CentOS)

Enviado em 08/02/2009 - 16:14h

httpd:

ServerTokens OS

ServerRoot "/etc/httpd"

PidFile run/httpd.pid


Timeout 120

KeepAlive on

MaxKeepAliveRequests 100

KeepAliveTimeout 10

<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 500
MaxClients 500
MaxRequestsPerChild 500
</IfModule>

<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

Listen 80

LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

Include conf.d/*.conf

User apache
Group apache

UseCanonicalName Off

DocumentRoot "/var/www/html"

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_userdir.c>
UserDir disable
</IfModule>

DirectoryIndex index.html index.html.var

AccessFileName .htaccess

<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>

TypesConfig /etc/mime.types

DefaultType text/plain

<IfModule mod_mime_magic.c>
MimeMagicFile conf/magic
</IfModule>

HostnameLookups Off

EnableMMAP off

EnableSendfile off

ErrorLog logs/error_log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog logs/access_log combined

ServerSignature On

Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_dav_fs.c>
DAVLockDB /var/lib/dav/lockdb
</IfModule>

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

ForceLanguagePriority Prefer Fallback

AddDefaultCharset ISO-8859-1

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

AddHandler type-map var

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml


Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
<Directory "/var/www/error">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>
</IfModule>
</IfModule>

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
</Location>



3. Re: Alto consumo da memória

Gustavo
gugabyte

(usa CentOS)

Enviado em 08/02/2009 - 16:15h

arquivo my.cnf

[mysqld]
datadir = /var/lib/mysql
socket = /var/lib/mysql/mysql.sock
user=mysql

set-variable = max_allowed_packet=1M
set-variable = myisam_sort_buffer_size=64M
set-variable = sort_buffer=1M
set-variable = max_connections=500
set-variable = key_buffer=312M
set-variable = table_cache=20000
skip-locking
skip-name-resolve

# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


4. Re: Alto consumo da memória

Gustavo
gugabyte

(usa CentOS)

Enviado em 08/02/2009 - 18:00h

fiquei monitorando a cada 20 minutos e tudo ia bem umas 3 horas sem problema derrepente fui ver a memória e derrepente ja tava com 6gigas(vinte minutos antes tava com uns 2gigas de uso) em uso foi o tempo de dar um print no comando top e a máquina travou, agora tenho que entrar em contato com o provedor que fica na florida perder um tempo para eles darem um reset manual na maquina, com isso o site fica ums 30minutos fora do ar e eu não posso fazer nada.

estou monitorando tambem o apache atraves do "Apache Server Status" no momento do alto consumo da memoria estava assim:
Parent Server Generation: 0
Server uptime: 4 hours 42 minutes 44 seconds
403 requests currently being processed, 0 idle workers



top - 14:53:56 up 4:42, 1 user, load average: 31.08, 18.64, 15.07
Tasks: 509 total, 12 running, 497 sleeping, 0 stopped, 0 zombie
Cpu(s): 75.4%us, 24.4%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%st
Mem: 8301396k total, 6072028k used, 2229368k free, 103656k buffers
Swap: 8692948k total, 0k used, 8692948k free, 637608k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2456 mysql 18 0 599m 137m 4704 S 326 1.7 937:41.50 mysqld
25314 apache 16 0 228m 210m 2732 S 21 2.6 0:01.93 httpd
25599 apache 15 0 24708 6232 2712 S 12 0.1 0:01.09 httpd
25669 apache 16 0 131m 113m 2644 R 9 1.4 0:00.30 httpd
24921 apache 16 0 120m 101m 2728 R 9 1.3 0:03.87 httpd
25680 apache 17 0 127m 109m 2692 R 8 1.4 0:00.79 httpd
25756 apache 16 0 110m 91m 2728 S 3 1.1 0:02.20 httpd
24595 apache 15 0 46848 27m 2728 R 2 0.3 0:03.60 httpd
26179 apache 16 0 39092 19m 2460 S 2 0.2 0:00.06 httpd
24638 apache 16 0 166m 148m 2732 S 2 1.8 0:03.34 httpd
26115 apache 15 0 37376 18m 2504 R 2 0.2 0:00.05 httpd
26131 apache 16 0 39340 19m 2416 S 2 0.2 0:00.06 httpd
25219 apache 24 0 90564 69m 2728 R 1 0.9 0:01.89 httpd
25880 apache 15 0 24712 6140 2632 S 1 0.1 0:00.80 httpd
24794 apache 18 0 28712 11m 4320 S 0 0.1 0:02.48 httpd
25191 apache 15 0 24712 6276 2728 S 0 0.1 0:01.92 httpd
25655 apache 15 0 24728 6244 2708 S 0 0.1 0:00.70 httpd
26035 apache 15 0 24472 5600 2328 S 0 0.1 0:00.01 httpd
26203 root 15 0 2456 1272 804 R 0 0.0 0:00.04 top
1 root 15 0 2064 648 556 S 0 0.0 0:01.10 init
2 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0
4 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0
5 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/1
6 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1
7 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1
8 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/2
9 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/2
10 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/2
11 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/3
12 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/3
13 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/3
14 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/0
15 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/1
16 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/2
17 root 10 -5 0 0 0 S 0 0.0 0:00.00 events/3
18 root 10 -5 0 0 0 S 0 0.0 0:00.00 khelper
19 root 17 -5 0 0 0 S 0 0.0 0:00.00 kthread
25 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/0
26 root 18 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1
27 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/2
28 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/3






5. Re: Alto consumo da memória

Gustavo
gugabyte

(usa CentOS)

Enviado em 08/02/2009 - 18:11h

mensagens minutos antes da maquina travar e após ser iniciada:

Feb 8 11:00:16 localhost ntpdate[7341]: adjust time server 192.5.41.40 offset 0.221514 sec
Feb 8 12:00:02 localhost ntpdate[15275]: adjust time server 192.5.41.40 offset 0.063343 sec
Feb 8 13:00:02 localhost ntpdate[19127]: adjust time server 192.5.41.40 offset 0.098272 sec
Feb 8 14:00:02 localhost ntpdate[23038]: adjust time server 192.5.41.40 offset 0.076326 sec
Feb 8 14:59:50 localhost shutdown[26626]: shutting down for system reboot
Feb 8 15:00:05 localhost init: Switching to runlevel: 6
Feb 8 15:00:54 localhost ntpdate[26733]: adjust time server 192.5.41.40 offset 0.088970 sec
Feb 8 15:02:12 localhost smartd[2724]: smartd received signal 15: Terminated
Feb 8 15:02:12 localhost smartd[2724]: smartd is exiting (exit status 0)
Feb 8 15:03:06 localhost avahi-daemon[2642]: Got SIGTERM, quitting.
Feb 8 15:03:10 localhost avahi-daemon[2642]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::20a:5eff:fe76:51ce.
Feb 8 15:03:10 localhost avahi-daemon[2642]: Leaving mDNS multicast group on interface eth0.IPv4 with address xxx.xxx.xxx.xxx.
Feb 8 15:06:10 localhost rpc.statd[2134]: Caught signal 15, un-registering and exiting.
Feb 8 15:06:11 localhost portmap[27238]: connect from 127.0.0.1 to unset(status): request from unprivileged port
Feb 8 15:06:12 localhost auditd[2023]: The audit daemon is exiting.
Feb 8 15:06:12 localhost kernel: audit(1234123572.266:380): audit_pid=0 old=2023 by auid=4294967295
Feb 8 15:06:12 localhost pcscd: pcscdaemon.c:572:signal_trap() Preparing for suicide
Feb 8 15:06:12 localhost pcscd: hotplug_libusb.c:376:HPRescanUsbBus() Hotplug stopped
Feb 8 15:06:13 localhost pcscd: readerfactory.c:1379:RFCleanupReaders() entering cleaning function
Feb 8 15:06:13 localhost pcscd: pcscdaemon.c:532:at_exit() cleaning /var/run
Feb 8 15:06:16 localhost kernel: Kernel logging (proc) stopped.
Feb 8 15:06:16 localhost kernel: Kernel log daemon terminating.
Feb 8 15:06:17 localhost exiting on signal 15
Feb 8 15:07:33 localhost syslogd 1.4.1: restart.
Feb 8 15:07:33 localhost kernel: klogd 1.4.1, log source = /proc/kmsg started.
Feb 8 15:07:33 localhost kernel: Linux version 2.6.18-92.1.22.el5PAE (mockbuild@builder16.centos.org) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Tue Dec 16 12:36:25 EST 2008
Feb 8 15:07:33 localhost kernel: BIOS-provided physical RAM map:




6. Re: Alto consumo da memória

Danilo de Araujo Miranda
Adnarim

(usa Ubuntu)

Enviado em 07/03/2009 - 22:02h

Fala, cara!

Estou tendo um problema parecido com o teu no meu servidor web, por mera coincidência, tem uma configuração equivalente a tua.
A parte do apache até que consegui estabilizar depois de muito custo. Se tu quiser até te mando meu httpd.conf, mas agora estou com problema no mysql que, vira e mexe, dá database error na página, e isso com poucos usuários acessando.
Se tento mexer nas configurações do apache e do próprio mysql aumentando o número de usuários, volta a dar o problema que você citou... a memória vai lá em cima até o serviço travar.

Você já arrumou alguma solução?

Abraço.



7. Re: Alto consumo da memória

Xerxes
xerxeslins

(usa BigLinux)

Enviado em 07/03/2009 - 23:12h

Tbm nao sou fera. mas vou pitacar.

ouvi alguem dizer que tava com algo parecido com o seu problema. muito parecido, o problema era hardware, vou dizer porque.

o monitoramento do uso da RAM monitorava so o usuario atual, mas outros usuários estavam logados e com processos consumindo memoria! entao ele estava gastando mais RAM do que aparecia no monitoramento.

a solução desse cara , diss ele, foi mais 8GB de ram.


8. Re: Alto consumo da memória

Juliano Giacomeli
julianjedi

(usa Arch Linux)

Enviado em 08/03/2009 - 12:25h

o problema começou a quanto tempo? a quanto tempo você esta rodando esse servidor?, os pacotes do mysql e apache estao bem atualizados? ja tentou restartar o serviço? tente reiniciar primeiro o apache quando a memoria estiver quase cheia, caso o consumo de memoria volte ao normal, reinstale o apache ou atualize-o... bom nao li tudo que vc postou, portanto posso estar errado, mas qdo sobrar um tempinho dou mais uma lida, tente reiniciar o serviço que esta consumindo muita memoria, caso o consumo baixe, você pode fazer uma solução meio muito quebra galho =] agende no cron para reiniciar o servidor a cada 1 hora por exemplo, enquanto isso faça backup do seu servidor e tente reinstalar o serviço que esta consumindo tanta memoria...


9. Re: Alto consumo da memória

Sérgio Abrantes Junior
pelo

(usa Debian)

Enviado em 08/03/2009 - 22:37h

Meu caro,

Creio que o problema estaja no teu apache.
Analizando o teu httpd.conf, veja as considerações:
StartServers 8 => instâncias do apache inicializadas
MinSpareServers 5 => mínimo de instâncias abertas para atender o servidor quando as 8 estiverem ocupadas.
MaxSpareServers 20 => máximo de instâncias "reservas"
MaxClients 500 => máximo de clientes 501 apresentará a mensagem server busy.

Então vamos lá!

Cada instância do apache ocupa cerca de 7M. com o pico de 500 usuários simultâneos, ele pode consumir 7x500=3500 ou 3,5G.
Bastante memória.
Tente altarar somente a quantidade máxima de clientes para um número menor para testes.

Sérgio Abrantes
[]'s


10. Re: Alto consumo da memória

Denis Doria
thuck

(usa Debian)

Enviado em 08/03/2009 - 23:33h

Cara, provavelmente seu problema está aqui: Kernel and CPU Linux 2.6.18-92.1.22.el5PAE on i686.
Mesmo com o PAE disponibilizando o uso de memória acima de 4GB, sinceramente é quase certeza que seu kernel está gerenciando porcamente sua memória.
Tive um problema semelhante com esse, embora fosse com uma versão mais antiga de centos. E a solução foi trocar o kernel por um hugemem (que não existe mais no centos5.x); sinceramente eu mudaria seu kernel e se possível todo o sistema operacional p/ 64 bits.


11. Re: Alto consumo da memória

Gustavo
gugabyte

(usa CentOS)

Enviado em 09/03/2009 - 00:31h

Apesar do alto consumo da memoria do apache o verdfadeiro problema esta no mysql, minha base de dados estava com mais de 200megas e mais de 400mil registros, dei uma penerada na minha base de dados hoje ela tem 250mil dados e um pouco mais de 150megas, com isso o problema sumiu, mais não sei como farei no futuro pois tenho uma media de 3mil novos dados diarios na minha tabela.

Caso alguem tenha uma ideia de solucao eu agradeco


12. RE: ALTO CONSUMO DA MEMÓRIA

Marcone Gomes Dias
bikikis

(usa Debian)

Enviado em 19/05/2016 - 23:03h

Dê o comando df -h e verifique o espaço livre das unidades. Já aconteceu comigo de ter erros no MySQL e gerar muito log e encher a unidade de disco, aí o load do server vai la em cima e uso de memória Também.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts