• This forum has a zero tolerance policy regarding spam. If you register here to publish advertising, your user account will be deleted without further questions.

Server wird durch Apache in die Knie gezwungen

looser9

New Member
Hallo,

irgendwie hat mein Server eine extreme Last!

Hier ist mal der TOP Auszug!

Code:
top - 21:57:58 up 19 days,  6:55,  2 users,  load average: 5.23, 4.14, 3.63
Tasks: 128 total,   6 running, 122 sleeping,   0 stopped,   0 zombie
Cpu(s): 56.9%us, 42.8%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.3%si,  0.0%st
Mem:   2977136k total,  2641928k used,   335208k free,   126720k buffers
Swap:  1999984k total,     3452k used,  1996532k free,  1952176k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
11510 www-data  20   0 98.1m  66m 4424 R   56  2.3   0:12.12 apache2
11481 www-data  20   0 98.2m  67m 4984 R   35  2.3   0:16.94 apache2
11649 www-data  20   0 93952  60m 4300 S   23  2.1   0:05.30 apache2
11617 www-data  20   0 96216  62m 4300 R   22  2.1   0:01.36 apache2
11616 www-data  20   0 91372  57m 4528 S   15  2.0   0:05.52 apache2
11574 www-data  20   0 89508  56m 4880 S   13  1.9   0:01.24 apache2
11622 www-data  20   0 92336  58m 4356 S   11  2.0   0:02.86 apache2
  924 mysql     20   0  146m  65m 6056 S   10  2.2 550:49.01 mysqld
11605 www-data  20   0 94348  61m 4920 R    6  2.1   0:08.04 apache2
11604 www-data  20   0 93684  60m 4416 S    5  2.1   0:05.94 apache2
11446 www-data  20   0 98.5m  67m 4940 S    3  2.3   0:28.26 apache2
11601 www-data  20   0 93668  60m 4956 S    1  2.1   0:08.78 apache2
  887 root      15  -5     0    0    0 S    0  0.0   1:45.21 kjournald
    1 root      20   0  2100  688  588 S    0  0.0   0:09.72 init
    2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S    0  0.0   0:00.56 migration/0
    4 root      15  -5     0    0    0 S    0  0.0   0:33.59 ksoftirqd/0

Ich denke mir mal, dass sich Apache nicht mit mehreren Instanzen fast 100% CPU ziehen sollte!



Außerdem habe ich in den Apache2 Logfiles lauter "Internal Dummy Connections", ähnlich dem hier:

Was kann das sein und wie kann ich das abstellen?

mfg Ludwig
 
Last edited by a moderator:
Hier noch meine Apache Config:

Code:
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>

# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#

AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain


#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., [url]www.apache.org[/url] (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog /var/log/apache2/error.log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

# Include all the user configurations:
Include /etc/apache2/httpd.conf

# Include ports listing
Include /etc/apache2/ports.conf
MOD: Bitte [noparse]
Code:
...
[/noparse]-Tags um Ausgaben, Code, etc. verwenden (im Editor auch mit '#' erreichbar). Danke!


Ich hoffe, dass hilft euch weiter :)

mfg Ludwig
 
Last edited by a moderator:
Der Server hängt schon im Swap. Arbeitsspeicher am Limit.

Poste doch mal eine ps-aux !

MaxRequestsPerChild 0 auf 4000

Und MaxClients 150 höchstens auf 50


Probiere das mal und Apache neu starten /etc/init.d/apache2 restart

Lg Alex
 
Setze mal Timeout runter, Wert zwischen 5 und 15 Sek.
Setze Keep alive off, wenn das Verbesserungen bringt, dann setze KeepAliveTimeout auf 2-10 Sek
Erhöhe MaxRequesPerChild, mit den Werten musst du testen was eine Verbesserung bringt: 100-10000
 
Danke für deine Hilfe!

Was ist ein ps-aux?

Ich hab die Children auf 4000 gesetzt und die max clients auf 50...zudem die keep alive time von 15 runter auf 2!

Sieht immer noch so böse aus!


Code:
top - 23:05:09 up 19 days,  8:02,  1 user,  load average: 2.22, 2.29, 2.63
Tasks:  92 total,   5 running,  87 sleeping,   0 stopped,   0 zombie
Cpu(s): 58.3%us, 24.9%sy,  0.0%ni, 16.6%id,  0.0%wa,  0.2%hi,  0.0%si,  0.0%st
Mem:   2977136k total,  2380220k used,   596916k free,   130092k buffers
Swap:  1999984k total,     3284k used,  1996700k free,  1960828k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
15094 www-data  20   0 42412  17m 4276 S   81  0.6   0:02.42 apache2
15084 www-data  20   0 45604  20m 4152 R   17  0.7   0:00.50 apache2
15078 www-data  20   0 41896  17m 4376 R   15  0.6   0:02.94 apache2
15076 www-data  20   0 44868  20m 4284 R   14  0.7   0:00.42 apache2
  924 mysql     20   0  146m  65m 6056 S   13  2.3 560:34.62 mysqld
15073 www-data  20   0 37644  13m 4288 S   12  0.5   0:00.72 apache2
15077 www-data  20   0 38000  13m 3600 S   11  0.4   0:01.74 apache2
15079 www-data  20   0 41896  17m 4332 S    1  0.6   0:02.44 apache2
15080 root      20   0  2388 1124  884 R    1  0.0   0:00.04 top
15083 www-data  20   0 42204  17m 4328 S    1  0.6   0:02.62 apache2
15087 www-data  20   0 42176  17m 4324 S    1  0.6   0:02.40 apache2
15095 root      20   0  6756 2200 1808 S    1  0.1   0:00.02 sshd
    1 root      20   0  2100  688  588 S    0  0.0   0:09.74 init
    2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S    0  0.0   0:00.56 migration/0
    4 root      15  -5     0    0    0 S    0  0.0   0:33.63 ksoftirqd/0
    5 root      RT  -5     0    0    0 S    0  0.0   0:06.40 watchdog/0

Wie bereits gesagt, habe ich einen Haufen "internal dummy connections"!

mfg Ludwig
 
Hier nochmal der TOP...diesesmal komplett!

Code:
top - 23:34:54 up 19 days,  8:32,  1 user,  load average: 2.86, 2.29, 1.99
Tasks:  89 total,   6 running,  83 sleeping,   0 stopped,   0 zombie
Cpu(s): 46.3%us, 53.3%sy,  0.0%ni,  0.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2977136k total,  2409544k used,   567592k free,   131096k buffers
Swap:  1999984k total,     3284k used,  1996700k free,  1963888k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
16113 www-data  20   0 47824  23m 4368 R   59  0.8   0:07.48 apache2
16101 www-data  20   0 45736  21m 4464 S   50  0.7   0:08.06 apache2
16146 www-data  20   0 44052  19m 4304 S   50  0.7   0:04.94 apache2
16117 www-data  20   0 42316  18m 4840 S   15  0.6   0:05.62 apache2
16154 www-data  20   0 44828  20m 4224 R   15  0.7   0:02.86 apache2
  924 mysql     20   0  146m  65m 6056 S    8  2.2 563:21.11 mysqld
16107 root      20   0  2388 1156  884 R    1  0.0   0:00.16 top
    1 root      20   0  2100  688  588 S    0  0.0   0:09.76 init
    2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S    0  0.0   0:00.56 migration/0
    4 root      15  -5     0    0    0 S    0  0.0   0:33.67 ksoftirqd/0
    5 root      RT  -5     0    0    0 S    0  0.0   0:06.40 watchdog/0
    6 root      RT  -5     0    0    0 S    0  0.0   0:00.62 migration/1
    7 root      15  -5     0    0    0 S    0  0.0   0:12.60 ksoftirqd/1
    8 root      RT  -5     0    0    0 S    0  0.0   0:00.64 watchdog/1
    9 root      15  -5     0    0    0 S    0  0.0   0:34.24 events/0
   10 root      15  -5     0    0    0 S    0  0.0   0:39.87 events/1
   11 root      15  -5     0    0    0 S    0  0.0   0:00.48 khelper
   44 root      15  -5     0    0    0 S    0  0.0   0:00.88 kblockd/0
   45 root      15  -5     0    0    0 S    0  0.0   0:02.24 kblockd/1
   66 root      15  -5     0    0    0 S    0  0.0   0:00.00 kseriod
  131 root      20   0     0    0    0 S    0  0.0   0:16.32 pdflush
  133 root      15  -5     0    0    0 S    0  0.0   0:10.56 kswapd0
  134 root      15  -5     0    0    0 S    0  0.0   0:00.00 aio/0
  135 root      15  -5     0    0    0 S    0  0.0   0:00.00 aio/1
  336 root      15  -5     0    0    0 S    0  0.0   0:00.00 ata/0
  337 root      15  -5     0    0    0 S    0  0.0   0:00.00 ata/1
  338 root      15  -5     0    0    0 S    0  0.0   0:00.00 ata_aux
  365 root      15  -5     0    0    0 S    0  0.0   0:00.00 scsi_eh_0
  367 root      15  -5     0    0    0 S    0  0.0   0:00.00 scsi_eh_1
  375 root      15  -5     0    0    0 S    0  0.0   0:00.00 scsi_eh_2
  377 root      15  -5     0    0    0 S    0  0.0   0:00.00 scsi_eh_3
  679 root      15  -5     0    0    0 S    0  0.0   0:00.00 ksuspend_usbd
  680 root      15  -5     0    0    0 S    0  0.0   0:00.00 khubd
  843 root      15  -5     0    0    0 S    0  0.0   0:00.10 md0_raid1
  851 root      15  -5     0    0    0 S    0  0.0   4:17.35 md1_raid1
  886 root      20   0  5592 1280 1080 S    0  0.0   0:00.02 mysqld_safe
  887 root      15  -5     0    0    0 S    0  0.0   1:46.26 kjournald
  925 root      20   0  4704  608  532 S    0  0.0   0:00.00 logger
  968 root      16  -4  2284  740  488 S    0  0.0   0:00.12 udevd
 1958 root      20   0 29448 1680  968 S    0  0.1   1:02.16 rsyslogd
 1971 messageb  20   0  2616  748  616 S    0  0.0   0:00.00 dbus-daemon
 1983 avahi     20   0  3380 1468 1076 S    0  0.0   0:10.46 avahi-daemon
 1984 avahi     20   0  2880  444  304 S    0  0.0   0:00.00 avahi-daemon
 2023 root      20   0  5412  904  692 S    0  0.0   0:06.52 sshd
 2178 postgres  20   0 40804 3760 3140 S    0  0.1   0:13.12 postgres
 2233 postgres  20   0 40804 1384  764 S    0  0.0   1:01.82 postgres
 2234 postgres  20   0 40804 1188  568 S    0  0.0   0:44.14 postgres
 2235 postgres  20   0 40804 1384  684 S    0  0.0   0:16.22 postgres
 2236 postgres  20   0 12124 1124  484 S    0  0.0   0:10.38 postgres
 2635 root      20   0  2144  536  432 S    0  0.0   0:04.66 mdadm
 2655 root      20   0  5152  988  804 S    0  0.0   0:10.80 cron
 2706 root      20   0  1764  504  436 S    0  0.0   0:00.00 getty
 2707 root      20   0  1764  508  436 S    0  0.0   0:00.00 getty
 2708 root      20   0  1764  500  436 S    0  0.0   0:00.00 getty
 2709 root      20   0  1764  508  436 S    0  0.0   0:00.00 getty
 2710 root      20   0  1764  508  436 S    0  0.0   0:00.00 getty
 2711 root      20   0  1764  508  436 S    0  0.0   0:00.00 getty
 6451 root      20   0     0    0    0 S    0  0.0   0:43.17 pdflush
 8039 sw-cp-se  20   0  5456 2980 1480 S    0  0.1   0:00.72 sw-cp-serverd
10506 root      20   0  4908  640  532 S    0  0.0   0:00.00 couriertcpd
10508 root      20   0  3364  772  604 S    0  0.0   0:00.00 courierlogger
10517 root      20   0  4908  648  536 S    0  0.0   0:00.00 couriertcpd
10519 root      20   0  3496  944  752 S    0  0.0   0:00.00 courierlogger
10526 root      20   0  4908  652  536 S    0  0.0   0:04.04 couriertcpd
10528 root      20   0  3496  944  752 S    0  0.0   0:03.46 courierlogger
10536 root      20   0  4908  652  536 S    0  0.0   0:01.20 couriertcpd
10538 root      20   0  3496  940  752 S    0  0.0   0:00.86 courierlogger
10560 postfix   20   0  5796 2004 1556 S    0  0.1   0:04.88 qmgr
10578 postfix   20   0  6120 2788 1952 S    0  0.1   0:01.40 tlsmgr
13201 root      20   0 10472 3124 2524 R    0  0.1   0:00.40 sshd
13217 root      20   0  5924 1708 1348 S    0  0.1   0:00.02 bash
15065 root      20   0 34992  14m 7944 S    0  0.5   0:01.08 apache2
15071 www-data  20   0 26040 4012  460 S    0  0.1   0:00.00 apache2
15804 postfix   20   0  5632 1788 1444 S    0  0.1   0:00.00 pickup
15953 www-data  20   0 49060  24m 4884 S    0  0.9   0:15.26 apache2
16065 www-data  20   0 44936  21m 5520 S    0  0.7   0:12.46 apache2
16097 www-data  20   0 47864  23m 4456 S    0  0.8   0:09.32 apache2
16108 www-data  20   0 43532  19m 4932 S    0  0.7   0:06.28 apache2
16109 www-data  20   0 42256  18m 4504 S    0  0.6   0:04.14 apache2
16111 www-data  20   0 39896  15m 4836 S    0  0.5   0:02.98 apache2
16139 www-data  20   0 40000  15m 4376 R    0  0.5   0:03.20 apache2
16156 www-data  20   0 35700 9800 2780 R    0  0.3   0:00.00 apache2
22404 root      20   0  2484  836  692 S    0  0.0   0:00.32 xinetd
23895 bind      20   0 52224  10m 2312 S    0  0.4   0:00.88 named
24249 root      20   0  5620 1820 1468 S    0  0.1   0:20.94 master
25744 root      20   0 30284  27m 2536 S    0  0.9   2:12.71 spamd
25747 popuser   20   0 30284  25m  888 S    0  0.9   0:00.64 spamd
25748 popuser   20   0 30284  25m  888 S    0  0.9   0:00.86 spamd


Und der PS AUX

Code:
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   2100   688 ?        Ss   May08   0:09 init [2]
root         2  0.0  0.0      0     0 ?        S<   May08   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S<   May08   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        S<   May08   0:33 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   May08   0:06 [watchdog/0]
root         6  0.0  0.0      0     0 ?        S<   May08   0:00 [migration/1]
root         7  0.0  0.0      0     0 ?        S<   May08   0:12 [ksoftirqd/1]
root         8  0.0  0.0      0     0 ?        S<   May08   0:00 [watchdog/1]
root         9  0.0  0.0      0     0 ?        S<   May08   0:34 [events/0]
root        10  0.0  0.0      0     0 ?        S<   May08   0:39 [events/1]
root        11  0.0  0.0      0     0 ?        S<   May08   0:00 [khelper]
root        44  0.0  0.0      0     0 ?        S<   May08   0:00 [kblockd/0]
root        45  0.0  0.0      0     0 ?        S<   May08   0:02 [kblockd/1]
root        66  0.0  0.0      0     0 ?        S<   May08   0:00 [kseriod]
root       131  0.0  0.0      0     0 ?        S    May08   0:16 [pdflush]
root       133  0.0  0.0      0     0 ?        S<   May08   0:10 [kswapd0]
root       134  0.0  0.0      0     0 ?        S<   May08   0:00 [aio/0]
root       135  0.0  0.0      0     0 ?        S<   May08   0:00 [aio/1]
root       336  0.0  0.0      0     0 ?        S<   May08   0:00 [ata/0]
root       337  0.0  0.0      0     0 ?        S<   May08   0:00 [ata/1]
root       338  0.0  0.0      0     0 ?        S<   May08   0:00 [ata_aux]
root       365  0.0  0.0      0     0 ?        S<   May08   0:00 [scsi_eh_0]
root       367  0.0  0.0      0     0 ?        S<   May08   0:00 [scsi_eh_1]
root       375  0.0  0.0      0     0 ?        S<   May08   0:00 [scsi_eh_2]
root       377  0.0  0.0      0     0 ?        S<   May08   0:00 [scsi_eh_3]
root       679  0.0  0.0      0     0 ?        S<   May08   0:00 [ksuspend_usbd]
root       680  0.0  0.0      0     0 ?        S<   May08   0:00 [khubd]
root       843  0.0  0.0      0     0 ?        S<   May08   0:00 [md0_raid1]
root       851  0.0  0.0      0     0 ?        S<   May08   4:17 [md1_raid1]
root       886  0.0  0.0   5592  1280 ?        S    May15   0:00 /bin/sh /usr/bin/mysqld_safe
root       887  0.0  0.0      0     0 ?        S<   May08   1:46 [kjournald]
mysql      924  3.2  2.2 149576 66872 ?        Sl   May15 563:28 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=330
root       925  0.0  0.0   4704   608 ?        S    May15   0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
root       968  0.0  0.0   2284   740 ?        S<s  May08   0:00 udevd --daemon
root      1958  0.0  0.0  29448  1680 ?        Sl   May08   1:02 /usr/sbin/rsyslogd -c3
107       1971  0.0  0.0   2616   748 ?        Ss   May08   0:00 /usr/bin/dbus-daemon --system
avahi     1983  0.0  0.0   3380  1468 ?        Ss   May08   0:10 avahi-daemon: running [XXX.local]
avahi     1984  0.0  0.0   2880   444 ?        Ss   May08   0:00 avahi-daemon: chroot helper
root      2023  0.0  0.0   5412   904 ?        Ss   May08   0:06 /usr/sbin/sshd
postgres  2178  0.0  0.1  40804  3760 ?        S    May08   0:13 /usr/lib/postgresql/8.3/bin/postgres -D /var/lib/postgresql/8.3/main -c config_file=/etc/postgresql/8.3/main/postgresql.conf
postgres  2233  0.0  0.0  40804  1384 ?        Ss   May08   1:01 postgres: writer process
postgres  2234  0.0  0.0  40804  1188 ?        Ss   May08   0:44 postgres: wal writer process
postgres  2235  0.0  0.0  40804  1384 ?        Ss   May08   0:16 postgres: autovacuum launcher process
postgres  2236  0.0  0.0  12124  1124 ?        Ss   May08   0:10 postgres: stats collector process
root      2635  0.0  0.0   2144   536 ?        Ss   May08   0:04 /sbin/mdadm --monitor --pid-file /var/run/mdadm/monitor.pid --daemonise --scan --syslog
root      2655  0.0  0.0   5152   988 ?        Ss   May08   0:10 /usr/sbin/cron
root      2706  0.0  0.0   1764   504 tty1     Ss+  May08   0:00 /sbin/getty 38400 tty1
root      2707  0.0  0.0   1764   508 tty2     Ss+  May08   0:00 /sbin/getty 38400 tty2
root      2708  0.0  0.0   1764   500 tty3     Ss+  May08   0:00 /sbin/getty 38400 tty3
root      2709  0.0  0.0   1764   508 tty4     Ss+  May08   0:00 /sbin/getty 38400 tty4
root      2710  0.0  0.0   1764   508 tty5     Ss+  May08   0:00 /sbin/getty 38400 tty5
root      2711  0.0  0.0   1764   508 tty6     Ss+  May08   0:00 /sbin/getty 38400 tty6
root      6451  0.0  0.0      0     0 ?        S    May12   0:43 [pdflush]
1000      8039  0.0  0.1   5456  2980 ?        S    20:42   0:00 /usr/sbin/sw-cp-serverd -f /etc/sw-cp-server/config
root     10506  0.0  0.0   4908   640 ?        S    May17   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierlogger -stderrloggername=imapd -maxprocs=40 -maxperip=4 -pid=/var/
root     10508  0.0  0.0   3364   772 ?        S    May17   0:00 /usr/sbin/courierlogger imapd
root     10517  0.0  0.0   4908   648 ?        S    May17   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierlogger -stderrloggername=imapd-ssl -maxprocs=40 -maxperip=4 -pid=/
root     10519  0.0  0.0   3496   944 ?        S    May17   0:00 /usr/sbin/courierlogger imapd-ssl
root     10526  0.0  0.0   4908   652 ?        S    May17   0:04 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierlogger -stderrloggername=pop3d -maxprocs=40 -maxperip=4 -pid=/var/
root     10528  0.0  0.0   3496   944 ?        S    May17   0:03 /usr/sbin/courierlogger pop3d
root     10536  0.0  0.0   4908   652 ?        S    May17   0:01 /usr/lib/courier-imap/couriertcpd -address=0 -stderrlogger=/usr/sbin/courierlogger -stderrloggername=pop3d-ssl -maxprocs=40 -maxperip=4 -pid=/
root     10538  0.0  0.0   3496   940 ?        S    May17   0:00 /usr/sbin/courierlogger pop3d-ssl
postfix  10560  0.0  0.0   5796  2004 ?        S    May17   0:04 qmgr -l -t fifo -u
postfix  10578  0.0  0.0   6120  2788 ?        S    May17   0:01 tlsmgr -l -t unix -u -c
root     13201  0.0  0.1  10472  3124 ?        Ss   22:28   0:00 sshd: root@pts/0
root     13217  0.0  0.0   5924  1708 pts/0    Ss   22:28   0:00 -bash
root     15065  0.0  0.4  34992 14432 ?        Ss   23:04   0:01 /usr/sbin/apache2 -k start
www-data 15071  0.0  0.1  26040  4012 ?        S    23:04   0:00 /usr/sbin/apache2 -k start
postfix  15804  0.0  0.0   5632  1792 ?        S    23:26   0:00 pickup -l -t fifo -u -c -o content_filter smtp:127.0.0.1:10027
www-data 16097  6.4  0.8  47648 24372 ?        S    23:32   0:13 /usr/sbin/apache2 -k start
www-data 16117  9.2  0.6  42316 18972 ?        S    23:33   0:11 /usr/sbin/apache2 -k start
www-data 16139  7.3  0.6  44052 20624 ?        S    23:34   0:06 /usr/sbin/apache2 -k start
www-data 16154  6.8  0.6  44736 20728 ?        S    23:34   0:05 /usr/sbin/apache2 -k start
www-data 16156  5.0  0.6  43396 19512 ?        S    23:34   0:03 /usr/sbin/apache2 -k start
www-data 16158  4.5  0.6  42228 17936 ?        S    23:35   0:02 /usr/sbin/apache2 -k start
www-data 16160  6.8  0.6  42240 18356 ?        S    23:35   0:03 /usr/sbin/apache2 -k start
www-data 16164  3.7  0.6  43828 19976 ?        S    23:35   0:01 /usr/sbin/apache2 -k start
www-data 16165  4.7  0.0      0     0 ?        Z    23:35   0:02 [apache2] <defunct>
postfix  16169  0.0  0.0   5868  2420 ?        S    23:35   0:00 cleanup -z -t unix -u -c
postfix  16171  0.0  0.0   5920  2528 ?        S    23:35   0:00 smtp -t unix -u -c
postfix  16172  0.0  0.0   5628  1712 ?        S    23:35   0:00 spawn -n 127.0.0.1:10027 -t inet user=mhandlers-user argv=/usr/lib/plesk-9.0/postfix-queue 127.0.0.1 10026 before-remote
postfix  16174  0.0  0.1   7464  3956 ?        S    23:35   0:00 smtpd -n 127.0.0.1:10026 -t inet -u -c -o smtpd_client_restrictions  -o smtpd_helo_restrictions  -o smtpd_sender_restrictions  -o smtpd_recipi
www-data 16177 14.3  0.6  42700 18596 ?        S    23:35   0:02 /usr/sbin/apache2 -k start
www-data 16183  0.0  0.3  35552  9508 ?        S    23:35   0:00 /usr/sbin/apache2 -k start
www-data 16184 10.6  0.4  38000 13068 ?        S    23:35   0:00 /usr/sbin/apache2 -k start
root     16185  0.0  0.0   5412  1024 pts/0    R+   23:35   0:00 ps aux
root     22404  0.0  0.0   2484   836 ?        Ss   May10   0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive
bind     23895  0.0  0.3  52224 10628 ?        Ssl  May10   0:00 /usr/sbin/named -t /var/named/run-root -c /etc/named.conf -u bind
root     24249  0.0  0.0   5620  1820 ?        Ss   May10   0:20 /usr/lib/postfix/master
root     25744  0.0  0.9  30284 27728 ?        Ss   May10   2:12 /usr/sbin/spamd --username=popuser --daemonize --nouser-config --helper-home-dir=/var/qmail --max-children 5 --create-prefs --virtual-config-d
popuser  25747  0.0  0.8  30284 26080 ?        S    May10   0:00 spamd child
popuser  25748  0.0  0.8  30284 25944 ?        S    May10   0:00 spamd child


Danke auf jeden Fall schonmal für eure Hilfe!

mfg Ludwig
 
Der Server hängt schon im Swap. Arbeitsspeicher am Limit.
Wir wollen mal festhalten, dass diese Aussage definitiv falsch war. 3MB im Swap ist kein wirklich voller Swap.

Back to Topic:
Sinnvoller Link zum lesen: Server-Optimierung.
Dort (und in den weiteren Links) steht auch wie Du den Speicher von Apache anpasst bzw. Apache an Deinen Speicher anpasst.
Aber auch wie Du Apache beobachtest. (per mod_status mit ExtendedStatus On)

Es sieht mir hier eher nach einem Ressourcen-fressenden-Script aus.

Wie viele Prozessorkerne hast Du? (Betätige im top die Taste [1].)

huschi.
 
MOD: Bitte keine Fullquotes! Danke

Ich habe diese Optimierung gerade eben durchgeführt!
http://www.huschi.net/10_54_de.html

Ich konnte alles machen, außer den AllowOverride None, weil ich diesen im Code nicht finden konnte!

Wie kann ich das machen?


Und wie aktiviere ich den ExtendedStatus On ?

Vielen, vielen Dank für die konstruktive Hilfe :)

mfg Ludwig

P.S.: Server ist ein Dual Core von S4Y!
 
Last edited by a moderator:
Ich konnte alles machen, außer den AllowOverride None, weil ich diesen im Code nicht finden konnte!
Da Du wohl Plesk drauf hast, gehört das für jede Domain in die vhost.conf.

Und wie aktiviere ich den ExtendedStatus On ?
Genau so:
Code:
ExtendedStatus On
(Hätte Dir Tante Google schneller beantwortet.)

huschi.
 
Back
Top