RAM Belegung unter Lenny

smithers

New Member
Hallo,

ich bin vor kurzem von etch auf lenny umgestiegen. Mir ist nun folgendes aufgefallen:

1. die Konsole ist nicht mehr bunt

Also Dateien und Verzeichnisse sind nicht mehr unterschiedlich farbig dargestellt. Welche Einstellung oder welches Paket ist dafür verantwortlich?

2. die RAM-Belegung ist enorm hoch

Unter etch waren ca. 180 MB RAm belegt. Nun sind es ca. 300 MB. Kan man da was machen, oder ist das halt so bei lenny?

Code:
Tasks:  45 total,   1 running,  44 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.4% us,  0.1% sy,  0.4% ni, 98.8% id,  0.3% wa,  0.0% hi,  0.0% si
Mem:    547372k total,   311640k used,   235732k free,        0k buffers
Swap:        0k total,        0k used,        0k free,        0k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
20074 root      15   0  2184  984  788 R    2  0.2   0:00.01 top
    1 root      16   0  1904  688  592 S    0  0.1   0:01.14 init
 3234 root      16   0  1624  596  492 S    0  0.1   0:03.78 syslogd
 3244 root      16   0  5200 1036  684 S    0  0.2   0:00.00 sshd
 3306 root      18   0  2624 1300 1076 S    0  0.2   0:00.02 mysqld_safe
 3353 mysql     15   0 60304  28m 4564 S    0  5.3   0:43.50 mysqld
 3354 root      16   0  1548  528  460 S    0  0.1   0:00.00 logger
 3407 root      19   0  1752  428  352 S    0  0.1   0:00.00 courierlogger
 3408 root      16   0  1940  604  492 S    0  0.1   0:00.01 authdaemond
 3416 root      16   0  2152  672  516 S    0  0.1   0:00.01 authdaemond
 3418 root      16   0  2152  652  516 S    0  0.1   0:00.02 authdaemond
 3420 root      15   0  2152  672  516 S    0  0.1   0:00.02 authdaemond
 3423 root      15   0  2152  672  516 S    0  0.1   0:00.01 authdaemond
 3425 root      16   0  2152  672  516 S    0  0.1   0:00.02 authdaemond
 3437 root      18   0  1752  344  280 S    0  0.1   0:00.00 courierlogger
 3438 root      18   0  1860  576  492 S    0  0.1   0:00.00 couriertcpd
 3544 root      16   0  5404 1792 1452 S    0  0.3   0:01.55 master
 3580 root      17   0  8372 1128  912 S    0  0.2   0:00.04 saslauthd
 3609 root      16   0  8372  988  852 S    0  0.2   0:00.04 saslauthd
 3610 root      16   0  8372 1072  848 S    0  0.2   0:00.01 saslauthd
 3625 root      18   0  2276  848  688 S    0  0.2   0:00.00 xinetd
 3701 postgrey  16   0 11084 8484 2936 S    0  1.5   0:03.78 postgrey
 3863 root      16   0 32036  28m 2568 S    0  5.4   0:07.44 spamd
 3873 root      16   0  3568  956  752 S    0  0.2   0:00.03 vsftpd
 3905 root      16   0  1976  880  704 S    0  0.2   0:00.65 cron
 4012 root      16   0 43848  13m 6860 S    0  2.5   0:04.70 apache2
 5404 spamd     16   0 42920  37m 3380 S    0  7.0   0:52.33 spamd
 5406 spamd     16   0 35136  30m 3216 S    0  5.7   0:00.41 spamd
20176 root      16   0  6528 4700 1560 S    0  0.9   0:05.45 munin-node
32337 root      15   0  1756  432  352 S    0  0.1   0:00.00 courierlogger
32339 root      16   0  1860  604  520 S    0  0.1   0:00.00 couriertcpd
24373 postfix   16   0  5464 1888 1536 S    0  0.3   0:00.08 qmgr
20365 root      16   0  3368 1480 1232 S    0  0.3   0:00.29 pipelog.pl
20428 www-data  16   0 51244  18m 4632 S    0  3.4   0:08.49 apache2
 1400 www-data  15   0 58232  25m 4612 S    0  4.8   0:27.19 apache2
 1413 www-data  16   0 50604  17m 4400 S    0  3.3   0:09.68 apache2
 1415 www-data  16   0 55684  22m 4356 S    0  4.2   0:11.22 apache2
19816 www-data  16   0 57844  25m 4556 S    0  4.7   0:05.58 apache2
18058 www-data  16   0 50932  18m 4900 S    0  3.5   0:06.47 apache2
 1846 postfix   16   0  5416 1720 1400 S    0  0.3   0:00.00 pickup
 5265 web1p1    16   0  4372 1388 1180 S    0  0.3   0:00.02 imapd
 5510 web1p3    15   0  4372 1348 1164 S    0  0.2   0:00.01 imapd
19561 web1p1    16   0  4396 1468 1196 S    0  0.3   0:00.05 imapd
 1959 root      16   0  8108 2684 2216 S    0  0.5   0:00.07 sshd
 3121 root      16   0  2716 1512 1188 S    0  0.3   0:00.01 bash
 
Code:
uname -a

Der Apache nimmt sich unter Lenny mehr als unter Etch. Ich würde mysql und apache umkonfigurieren, damit drückst Du auch den RAM Verbrauch.
 
Du hast ja schon mal 5 Apache Serverprozesse laufen.

Ich gehe mal davon aus, dass du apache2 als prefork nutzt - dann könntest du mal in der /etc/apache2/apache2.conf folgende Zeilen

Code:
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

... beispielsweise folgendermaßen modifizieren:


Code:
<IfModule mpm_prefork_module>
    StartServers          1
    MinSpareServers       1
    MaxSpareServers      3
    MaxClients          50
    MaxRequestsPerChild   0
</IfModule>

Inwiefern das jetzt für die Verfügbarkeit deiner Seiten unter großem Besucheransturm optimal ist, steht jetzt mal auf einem anderen Blatt - aber das ist so das Prinzip mit dem man etwas Ram sparen kann.
 

Ok, es sind dann nur 32bit.

Ich werd mich dann mal mit dem apache beschäftigen und schauen wie es läuft.

Wenn der used RAM bei 300 verbleibt, geht es ja eigentlich auch noch. Es sind ja noch Reserven da.
 
Hallo!
RAM Belegung / Verbrauch scheint immer wieder ein Thema zu sein. Swappt dein Server? Nein? Dann ist die Konfiguration doch grundsätzlich OK. Wenn RAM da ist, wird es auch genutzt.

mfG
Thorsten
 
Back
Top