Server bleibt ständig hängen...

M1ster-T

Registered User
Hallo,

also wir haben einen Server bei s4y (ich weiß werde ich auch nie wieder machen), wir hatten seid Sonntag das Problem das ständig die Domains nicht erreichbar waren.
Was daher kam das der Apache ständig überlastet war. Nun haben wir eine Neuinstall gemacht und das Problem promt wieder.

Jetzt ist mir was aufgefallen als ich die Logs durch ging (unter anderen auch die mails)

Code:
Feb 11 10:37:16 gera039 sendmail-client[6143]: persistent queue runner control process: lost all children: wait returned ECHILD
Feb 11 10:42:24 gera039 sendmail-client[3978]: persistent queue runner control process: lost all children: wait returned ECHILD
Feb 11 10:42:28 gera039 sendmail-client[7292]: persistent queue runner control process: lost all children: wait returned ECHILD
Feb 11 10:42:55 gera039 sendmail-client[7755]: persistent queue runner control process: lost all children: wait returned ECHILD
Feb 11 14:08:54 gera039 sendmail[5880]: k1BD8n1d005878: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 15:10:53 gera039 sendmail[6604]: k1BEAnGB006602: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 15:41:39 gera039 sendmail[7576]: k1BEfZV2007574: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 16:21:46 gera039 sendmail[7967]: k1BFLfU2007965: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 16:56:53 gera039 sendmail[8862]: k1BFunOC008860: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 17:42:06 gera039 sendmail[9642]: k1BGg2X3009640: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 18:49:30 gera039 sendmail[11001]: k1BHnMRe010997: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:32 gera039 sendmail[15980]: k1BIXQDA015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:32 gera039 sendmail[15982]: k1BIXQDC015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:32 gera039 sendmail[15984]: k1BIXQDE015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:32 gera039 sendmail[15988]: k1BIXQDI015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:32 gera039 sendmail[15990]: k1BIXQDK015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:32 gera039 sendmail[15986]: k1BIXQDG015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:32 gera039 sendmail[15992]: k1BIXQDM015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:32 gera039 sendmail[15994]: k1BIXQDO015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:32 gera039 sendmail[15997]: k1BIXQDQ015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:32 gera039 sendmail[16000]: k1BIXQDS015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:32 gera039 sendmail[16004]: k1BIXQDU015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:32 gera039 sendmail[16008]: k1BIXQDW015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:33 gera039 sendmail[16010]: k1BIXQDY015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)
Feb 11 19:33:33 gera039 sendmail[16014]: k1BIXQDa015977: SYSERR(root): testboard.back2root.de. config error: mail loops back to me (MX problem?)

Das Problem ist die Domain existiert garnicht und ne que kann doch nach der Neusinstall garnicht mehr da sein, woher kann das also kommen, is der Server gehackt worden aber so schnell nach einer Neuinstallation...

Gruß Chris
 
Last edited by a moderator:
Habe nochmal die mail.info angehängt sieht totall wirr aus, ie gesagt vor 4 h Neuinstall und da werden Mails weggeballert bzw versucht von Domains die es nicht gibt....

Gruß Chris
 

Attachments

Hier nochmal was was sehr komisch meiner minung nach aussieht:

27706 wwwrun 16 0 34584 17m 25m R 1.3 1.7 0:00.45 httpd2-prefork
27621 wwwrun 16 0 35604 17m 25m R 1.1 1.8 0:00.92 httpd2-prefork
27628 wwwrun 15 0 35604 17m 25m S 0.9 1.8 0:00.89 httpd2-prefork
27643 wwwrun 15 0 35604 17m 25m S 0.9 1.8 0:00.90 httpd2-prefork
27654 wwwrun 16 0 35492 17m 25m R 0.9 1.8 0:00.79 httpd2-prefork
27597 wwwrun 15 0 35732 18m 25m S 0.8 1.8 0:00.96 httpd2-prefork
27600 wwwrun 15 0 35604 17m 25m S 0.8 1.8 0:00.93 httpd2-prefork
27602 wwwrun 15 0 35604 17m 25m S 0.8 1.8 0:00.90 httpd2-prefork
27615 wwwrun 15 0 35732 17m 25m S 0.8 1.8 0:00.96 httpd2-prefork
27620 wwwrun 15 0 35732 17m 25m S 0.8 1.8 0:00.94 httpd2-prefork
27622 wwwrun 16 0 35732 17m 25m R 0.8 1.8 0:00.92 httpd2-prefork
27624 wwwrun 15 0 35604 17m 25m S 0.8 1.8 0:00.82 httpd2-prefork
27638 wwwrun 15 0 35604 17m 25m S 0.8 1.8 0:00.84 httpd2-prefork
27639 wwwrun 16 0 35604 17m 25m S 0.8 1.8 0:00.79 httpd2-prefork
27640 wwwrun 15 0 35732 17m 25m S 0.8 1.8 0:00.93 httpd2-prefork
27644 wwwrun 16 0 35604 17m 25m R 0.8 1.8 0:00.83 httpd2-prefork
27651 wwwrun 16 0 35492 17m 25m R 0.8 1.8 0:00.72 httpd2-prefork
27661 wwwrun 15 0 35492 17m 25m S 0.8 1.8 0:00.74 httpd2-prefork
10000 root 16 0 8488 1496 5128 S 0.7 0.1 0:01.27 sshd
27565 wwwrun 16 0 35972 18m 25m R 0.7 1.8 0:01.33 httpd2-prefork
27568 wwwrun 15 0 36092 18m 25m S 0.7 1.8 0:01.44 httpd2-prefork
27593 wwwrun 15 0 35732 17m 25m S 0.7 1.8 0:00.94 httpd2-prefork
27594 wwwrun 15 0 35604 17m 25m S 0.7 1.8 0:00.83 httpd2-prefork
27596 wwwrun 15 0 35732 17m 25m S 0.7 1.8 0:00.93 httpd2-prefork
27598 wwwrun 15 0 35732 17m 25m S 0.7 1.8 0:00.95 httpd2-prefork
27599 wwwrun 15 0 35604 17m 25m S 0.7 1.8 0:00.88 httpd2-prefork
27603 wwwrun 15 0 35604 17m 25m S 0.7 1.8 0:00.90 httpd2-prefork
27607 wwwrun 15 0 35604 17m 25m S 0.7 1.8 0:00.89 httpd2-prefork
27609 wwwrun 15 0 35604 17m 25m S 0.7 1.8 0:00.80 httpd2-prefork
27614 wwwrun 15 0 35604 17m 25m S 0.7 1.8 0:00.90 httpd2-prefork
27645 wwwrun 16 0 35604 17m 25m R 0.7 1.8 0:00.83 httpd2-prefork
27646 wwwrun 16 0 35492 17m 25m R 0.7 1.8 0:00.78 httpd2-prefork
27697 wwwrun 15 0 35368 17m 25m S 0.7 1.8 0:00.61 httpd2-prefork
27566 wwwrun 15 0 36092 18m 25m S 0.6 1.8 0:01.40 httpd2-prefork
27569 wwwrun 16 0 36092 18m 25m R 0.6 1.8 0:01.46 httpd2-prefork
27586 wwwrun 15 0 35972 18m 25m S 0.6 1.8 0:01.17 httpd2-prefork
27601 wwwrun 16 0 35604 17m 25m R 0.6 1.8 0:00.89 httpd2-prefork

Gruß Chris

//dann starte ich apache neu und alles wieder gut für 15 min dann is die mail.log wieder voll und die ganzen Prozesse und die auslastung 100%
 
Last edited by a moderator:
M1ster-T said:
Jetzt ist mir was aufgefallen als ich die Logs durch ging (unter anderen auch die mails)
Ich würde sagen, Du hast dort einen Config-Error, der eine Email ständig im Kreis schickt. Diese Email kann verschiedene Ursachen habe: z.B. ein PHP-Script, Cronjob oder sonst eine Email auf postmaster oder root.

Finde den Kreis und Dein System sollte wieder zur Ruhe kommen.
Nutze die Macht:
mailq

huschi.
 
Hallo,

ich habe das jetzt soweit ausschlissen können das es direkt der Mail versand ist. Es verstopft sich einfach durch zig DB Fehler mails darum das Mail aufkommen.

Das Problem scheint aber anderer Natur zu sein, ich habe das gefühl das der Server nur abschmiert wenn User mit manchen Proxy´s drauf gehen haut er durch.
Was kann ich da machen irgendwas Updaten oder was könnte das Problem lösen.

Das 129.255.210.53 wäre einer der Proxy´s der das auslöst bei mir und Plötzlich geht alles den Bach runter.

Gruß T
 
So habe es gefunden für jemand der es mal sucht und den Thread liest, ihr findet die einstellung in der appache.conf

Jetzt nochmal eine frage von mir habe das jetzt gemacht, und ich habe jetzt nach free -m folgende Werte:
Code:
[FONT="Fixedsys"]
                         total       used       free     shared    buffers     cached
Mem:                      1002        919         82          0         15        716
-/+ buffers/cache:                    188        814
Swap:                      996          0        996[/FONT]
is das normal oder stimmt noch was nicht.

Gruß T
 
Last edited by a moderator:
M1ster-T said:
ihr findet die einstellung in der appache.conf
Vorsicht mit so allgemeingültigen Aussagen!
Die Apache-Konfiguration unterscheidet sich je nach Linux-Distribution und Apache-Version. Daher hab ich auch nicht geantwortet, denn das muß man einfach selber finden.

is das normal oder stimmt noch was nicht.
Was soll daran nicht normal sein?
Oder was stört Dich?

huschi.
 
Ne ich fand es nur komisch bei Suse war der Mem. noch nicht so ausgelagert. Jetzt wo debain drauf ist scheint der das schon zu reservieren zu mindest habe ich das gelesen.
Hoffe das es so stimmt.

Gruß T


PS dnke trotzdem für die hilfe besonders an djrick und huschi haben mir echt super geholfen :)
 
Hallo Gemeinde,

und wieder das selbe Problem, was kann das denn nur zum Teufel sein wir haben neu installiert nur das nötigste drauf und was passiert wieder der selbe ******.

Code:
top - 14:31:57 up 18:35,  1 user,  load average: 19.89, 10.06, 4.06
Tasks:  88 total,  18 running,  70 sleeping,   0 stopped,   0 zombie
Cpu(s): 93.0% us,  7.0% sy,  0.0% ni,  0.0% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:   1026580k total,   995036k used,    31544k free,    85284k buffers
Swap:  1020116k total,        4k used,  1020112k free,   545960k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
18096 www-data  16   0 25696  13m 3592 S 26.7  1.3   0:19.76 apache2
16516 www-data  16   0 28840  16m 3788 R 21.2  1.7   0:47.75 apache2
17949 www-data  16   0 26464  14m 3668 R 20.5  1.4   0:18.78 apache2
17544 www-data  16   0 27632  15m 3816 R 16.3  1.5   0:26.76 apache2
18100 www-data  15   0 26076  13m 3592 R 14.7  1.4   0:21.58 apache2
18099 www-data  16   0 26912  14m 3592 R 14.0  1.5   0:17.56 apache2
18080 www-data  16   0 25700  13m 3660 R 10.8  1.3   0:14.37 apache2
 3336 mysql     15   0  120m  49m 3672 S  9.5  5.0   9:06.95 mysqld
16547 www-data  16   0 27728  15m 3772 R  8.8  1.6   0:32.29 apache2
17805 www-data  16   0 27508  15m 3720 R  8.2  1.5   0:24.74 apache2
18055 www-data  16   0 26464  14m 3648 R  8.2  1.4   0:21.79 apache2
18075 www-data  15   0 25708  13m 3568 S  7.8  1.3   0:20.64 apache2
17196 www-data  16   0 27092  14m 3764 R  5.9  1.5   0:29.58 apache2
17100 www-data  15   0 26960  14m 3828 R  5.5  1.5   0:33.02 apache2
17997 www-data  16   0 27304  15m 3680 R  5.5  1.5   0:18.93 apache2
18102 www-data  16   0 25700  13m 3596 R  4.9  1.3   0:20.77 apache2
18095 www-data  15   0 25712  13m 3580 R  4.6  1.3   0:14.73 apache2


Was soll ich den noch machen.

Gruß Chris
 
ich finde das einfach nicht :(

Code:
# Based upon the NCSA server configuration files originally by Rob McCool.
# Changed extensively for the Debian package by Daniel Stone <daniel@sfarc.net>
# and also by Thom May <thom@debian.org>.

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
# you will save yourself a lot of trouble.

ServerRoot "/etc/apache2"

# The LockFile directive sets the path to the lockfile used when Apache
# is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
# USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
# its default value. The main reason for changing it is if the logs
# directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
# DISK. The PID of the main server process is automatically appended to
# the filename. 

LockFile /var/lock/apache2/accept.lock

# PidFile: The file in which the server should record its process
# identification number when it starts.

PidFile /var/run/apache2.pid

# 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 Off

# 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 prefork.c>
StartServers         5
MinSpareServers      5
MaxSpareServers     10
MaxClients          20
MaxRequestsPerChild  0
</IfModule>

# pthread MPM
# StartServers ......... initial  number of server processes to start
# MaxClients ........... maximum  number of server processes allowed to start
# 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 worker.c>
StartServers         2
MaxClients         150 
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

# perchild MPM
# NumServers ........... constant number of server processes
# StartThreads ......... initial  number of worker threads in each server process
# MinSpareThreads ...... minimum  number of worker threads which are kept spare
# MaxSpareThreads ...... maximum  number of worker threads which are kept spare
# MaxThreadsPerChild ... maximum  number of worker threads in each server process
# MaxRequestsPerChild .. maximum  number of connections per server process (then it dies)
<IfModule perchild.c>
NumServers           5
StartThreads         5
MinSpareThreads      5
MaxSpareThreads     10
MaxThreadsPerChild  20
MaxRequestsPerChild  0
AcceptMutex fcntl
</IfModule>

User www-data
Group www-data

# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
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


# Global error log.
ErrorLog /var/log/apache2/error.log

# 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

# Include generic snippets of statements
Include /etc/apache2/conf.d/[^.#]*

#Let's have some Icons, shall we?
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

# Set up the default error docs.
#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can Internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line;
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /usr/local/apache2/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    Alias /error/ "/usr/share/apache2/error/"

    <Directory "/usr/share/apache2/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>

    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
    ErrorDocument 410 /error/HTTP_GONE.html.var
    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
    ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var
    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml

# UserDir is now a module
#UserDir public_html
#UserDir disabled root

#<Directory /home/*/public_html>
#	AllowOverride FileInfo AuthConfig Limit
#	Options Indexes SymLinksIfOwnerMatch IncludesNoExec
#</Directory>

AccessFileName .htaccess

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

UseCanonicalName Off

TypesConfig /etc/mime.types
DefaultType text/plain

HostnameLookups Off

IndexOptions FancyIndexing VersionSort

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/*

# This really should be .jpg.

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^^


# This is from Matty J's patch. Anyone want to make the icons?
#AddIcon /icons/dirsymlink.jpg ^^SYMDIR^^
#AddIcon /icons/symlink.jpg ^^SYMLINK^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

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

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz

AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .et
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddLanguage pl .po
AddLanguage ko .ko
AddLanguage pt .pt
AddLanguage no .no
AddLanguage pt-br .pt-br
AddLanguage ltz .ltz
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage tw .tw
AddLanguage zh-tw .tw

LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw


#AddDefaultCharset	ISO-8859-1

AddCharset ISO-8859-1  .iso8859-1  .latin1
AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
AddCharset ISO-8859-3  .iso8859-3  .latin3
AddCharset ISO-8859-4  .iso8859-4  .latin4
AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb	
AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5        .Big5       .big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251   .win-1251
AddCharset CP866       .cp866
AddCharset KOI8-r      .koi8-r .koi8-ru
AddCharset KOI8-ru     .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8       .utf8

AddCharset GB2312      .gb2312 .gb 
AddCharset utf-7       .utf7
AddCharset utf-8       .utf8
AddCharset big5	       .big5 .b5
AddCharset EUC-TW      .euc-tw	
AddCharset EUC-JP      .euc-jp
AddCharset EUC-KR      .euc-kr
AddCharset shift_jis   .sjis

#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

AddType application/x-tar .tgz

# To use CGI scripts outside /cgi-bin/:
#
AddHandler cgi-script .cgi

# To use server-parsed HTML files
#
<FilesMatch "\.shtml(\..+)?$">
    SetOutputFilter INCLUDES
</FilesMatch>

# If you wish to use server-parsed imagemap files, use
#
#AddHandler imap-file map

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

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
#

BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully 
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully

# Allow server status reports, with the URL of http://servername/server-status
# Change the ".your_domain.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .your_domain.com
#</Location>

# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".your_domain.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .your_domain.com
#</Location>

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/[^.#]*

## CONFIXX
<Directory "/var/www/confixx/html">
 AllowOverride all
</Directory>
NameVirtualHost 62.75.214.193:80
<VirtualHost 62.75.214.193:80>
ServerName gera039.server4you.de
#User confixx
#Group users
DocumentRoot /var/www/confixx/html
Alias /phpmyadmin /var/www/phpmyadmin
php_admin_value safe_mode Off
php_admin_value safe_mode_exec_dir /var/www/confixx/bin
php_admin_value upload_tmp_dir /var/www/confixx/tmp
php_admin_value open_basedir none
ScriptAlias /cgi-bin/ /var/www/confixx/html/cgi-bin/
CustomLog /var/log/apache2/gera039.server4you.de_access.log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
ErrorLog /var/log/apache2/gera039.server4you.de_error.log
</VirtualHost>
Include /etc/apache2/confixx_vhost.conf
# ^- Dieser Eintrag sollte unbedingt am Ende der Datei bleiben
## /CONFIXX
php_value short_open_tag 1
php_value register_globals 1

Wo soll das denn sein?

Gruß T

//edit

habe es jetzt einfach mit rein geschrieben gestartet ist der Apache mit dem einschreiben des befehls am ende der Datei.
Nun wieder beobachten...

Gruß T

//edit2

Leider wieder, oder habe ich das falsch gemacht oben.

Code:
top - 16:36:14 up 20:39,  2 users,  load average: 15.79, 6.11, 6.57
Tasks: 100 total,  19 running,  81 sleeping,   0 stopped,   0 zombie
Cpu(s): 94.4% us,  5.6% sy,  0.0% ni,  0.0% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:   1026580k total,   878220k used,   148360k free,    82744k buffers
Swap:  1020116k total,        4k used,  1020112k free,   445752k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 5761 www-data  16   0 26760  14m 3784 S 23.8  1.5   0:16.13 apache2
 6224 www-data  15   0 26896  14m 3588 S 21.5  1.5   0:09.42 apache2
 5781 www-data  16   0 27540  15m 3732 R 20.5  1.5   0:13.44 apache2
 5771 www-data  16   0 26540  14m 3724 S 18.2  1.4   0:15.39 apache2
 6251 www-data  15   0 26080  13m 3592 R 17.5  1.4   0:08.41 apache2
 5757 www-data  16   0 27572  15m 3740 S 15.9  1.5   0:13.96 apache2
 5842 www-data  15   0 27540  15m 3732 R 12.9  1.5   0:11.70 apache2
 3336 mysql     15   0  128m  51m 3672 S 10.6  5.2  16:36.72 mysqld
 5953 www-data  16   0 27004  14m 3728 R  8.3  1.5   0:14.61 apache2
 6236 www-data  16   0 25708  13m 3568 R  7.9  1.3   0:05.88 apache2
 6244 www-data  16   0 26892  14m 3564 R  6.6  1.4   0:03.71 apache2
 6256 www-data  16   0 25708  13m 3580 R  6.6  1.3   0:06.03 apache2
 5760 www-data  16   0 27532  15m 3740 R  6.3  1.5   0:14.85 apache2
 6237 www-data  16   0 25704  13m 3564 R  6.3  1.3   0:07.04 apache2
 5759 www-data  16   0 27576  15m 3792 R  6.0  1.5   0:15.85 apache2
 6255 www-data  16   0 26080  13m 3588 R  6.0  1.4   0:06.53 apache2
 6219 www-data  16   0 26976  14m 3584 R  5.0  1.5   0:08.92 apache2
13624 root      16   0  2588 1556  740 R  0.3  0.2   0:22.54 top
    1 root      16   0  1588  516  452 S  0.0  0.1   0:00.90 init
    2 root      RT   0     0    0    0 S  0.0  0.0   0:00.02 migration/0
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
    4 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    5 root      RT   0     0    0    0 S  0.0  0.0   0:00.04 migration/1
    6 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/1
    7 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 watchdog/1
    8 root      10  -5     0    0    0 S  0.0  0.0   0:01.89 events/0
    9 root      10  -5     0    0    0 S  0.0  0.0   0:01.11 events/1
   10 root      12  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
   11 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
   43 root      10  -5     0    0    0 S  0.0  0.0   0:00.25 kblockd/0
   44 root      10  -5     0    0    0 S  0.0  0.0   0:00.02 kblockd/1
   94 root      15   0     0    0    0 S  0.0  0.0   0:00.90 pdflush
   95 root      15   0     0    0    0 S  0.0  0.0   0:00.18 pdflush
   97 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0
   96 root      15   0     0    0    0 S  0.0  0.0   0:01.75 kswapd0
   98 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 aio/1
  694 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod

Gruß T
 
Last edited by a moderator:
Also das Problem scheint ganz anderer Natur, im moment in anbetracht der Sachlage liegt es wohl an einer Datenbank von mir.
Was habe ich da für möglichkeiten es einzugrenzen.

Wie ich darauf komme:

Wenn der Server abspackt habe ich immer den Idianer neu getartet was jedoch nur abhilfe für ein paar minuten geliefert hat.
Dann habe ich es mal mit dem Neustart von MySql versucht und dann habe ich wieder ca 14-15 h ruhe bis es wieder passiert.

Gruß T
 
Wenn Du meinen Tip oben entlich mal befolgen würdest, könntes Du zumindest sehen, welche Request/Scripte so viel CPU-Last ziehen.

M1ster-T said:
liegt es wohl an einer Datenbank von mir.
Auch hier sollte Du den Status ansehen.
Entweder phpMyAdmin (Startseite -> Prozesse anzeigen) oder per mysqladmin oder im mysql-Client "show processlist".

Nur leider siehst Du hier evtl. lediglich die Locks oder Slow-Queries.
Du siehst immer noch nicht welches Script diese verursachen.
Also bleibt es wieder bei o.g. Server-Status von Apache.

huschi.
 
Das habe ich ja versucht deinen Tipp zu beachten, aber er startet das mod_status einfach nicht.

Ich habe in der httpd.conf folgendes eingetragen:

Code:
<Location /server-status>
SetHandler server-status

Order Deny,Allow
Deny from all
Allow from .back2root.de
</Location>

nachdem es da nicht geklappt hat, habe ich es nochmal in der apache.conf eingebunden. Aber er startet es einfach nicht mit (ja ich habe apache neugestartet)

Über phpmyadmin ist keine Kontrolle mehr möglich nachdem der Server abgespeckt hat.
Ich habe dazu eine mysql.info-log mach lassen.

Code:
MySQL server information:
  Server version: 4.0.24_Debian-10sarge1-log
  Uptime: 16 hours 49 mins 23 secs
  Bytes I/O: 792.095 / 2564.305 MB
  Keycache hit rate: 99.9874%
  Threads connected: 3, running: 1 ( 33.3%)

Command profile:
  admin_commands                  4 ( 0.0%)
  alter_table                   295 ( 0.0%)
  change_db                   34208 ( 1.3%)
  check                         843 ( 0.0%)
  create_db                       3 ( 0.0%)
  create_table                  127 ( 0.0%)
  delete                       5013 ( 0.2%)
  drop_table                    116 ( 0.0%)
  flush                           5 ( 0.0%)
  grant                           6 ( 0.0%)
  insert                    1976605 (76.3%)
  insert_select                 129 ( 0.0%)
  optimize                        2 ( 0.0%)
  purge                           1 ( 0.0%)
  repair                          1 ( 0.0%)
  replace                      2454 ( 0.1%)
  replace_select                  2 ( 0.0%)
  select                     522634 (20.2%)
  set_option                    101 ( 0.0%)
  show_binlogs                   18 ( 0.0%)
  show_create                   222 ( 0.0%)
  show_databases                 75 ( 0.0%)
  show_fields                    20 ( 0.0%)
  show_grants                    17 ( 0.0%)
  show_keys                     126 ( 0.0%)
  show_processlist                1 ( 0.0%)
  show_status                   102 ( 0.0%)
  show_tables                  1062 ( 0.0%)
  show_variables                126 ( 0.0%)
  truncate                        2 ( 0.0%)
  update                      46958 ( 1.8%)

Total commands processed: 2591278



Gruß T
 
Hallo!
M1ster-T said:
Code:
<Location /server-status>
SetHandler server-status

Order Deny,Allow
Deny from all
Allow from .back2root.de
</Location>
Hier machst du eine Denkfehler. Allow from bedeutet von wo aus der Zugriff erlaubt sein soll. Trag entweder den IP Block deines Internetproviders ein oder stelle es kurzfristig auf Allow from All ein. Dann aber nicht vergessen, die Option Deny from All zu entfernen :).

Nach einem weiteren Apache restart sollest du es aufrufen können.

mfG
Thorsten
 
Huschi said:
Ließ Dir das mal durch: Linux: Speicher voll!


Schalte mod_status mit dem Parameter "ExtendedStatus On" ein.
(bevor Du fragst: irgendwo in der Apache-Config)

huschi.

So dank Thorsten habe ich es jetzt geschafft ( sorry das es immer etwas dauert :) aber bin nicht der Profi)

So was genau habe ich jetzt davon?

Das wirft er mir aus:

Code:
Apache Server Status for gera039.server4you.de
Server Version: Apache/2.0.54 (Debian GNU/Linux) DAV/2 SVN/1.1.4 mod_jk2/2.0.4 PHP/4.3.10-16 proxy_html/2.4 mod_perl/1.999.21 Perl/v5.8.4 
Server Built: Sep 5 2005 11:15:09 

--------------------------------------------------------------------------------

Current Time: Thursday, 16-Feb-2006 15:45:20 CET 
Restart Time: Thursday, 16-Feb-2006 15:41:47 CET 
Parent Server Generation: 0 
Server uptime: 3 minutes 33 seconds 
35 requests currently being processed, 6 idle workers 
KKKKKKKKKKKKWWKKKKKKKKKKKKKKKKKKKKK______.......................
................................................................
................................................................
................................................................

Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process

PID Key: 


   20381 in state: K ,   20425 in state: K ,   20253 in state: K 
   20037 in state: K ,   20383 in state: K ,   20257 in state: K 
   20044 in state: K ,   20401 in state: K ,   20260 in state: K 
   20427 in state: K ,   20049 in state: K ,   20262 in state: K 
   20428 in state: W ,   20438 in state: W ,   20455 in state: K 
   20498 in state: K ,   20059 in state: K ,   20499 in state: K 
   20061 in state: K ,   20263 in state: K ,   20076 in state: K 
   20500 in state: K ,   20502 in state: K ,   20112 in state: K 
   20124 in state: K ,   20129 in state: K ,   20503 in state: K 
   20504 in state: K ,   20264 in state: K ,   20505 in state: K 
   20266 in state: K ,   20267 in state: K ,   20268 in state: K 
   20269 in state: K ,   20509 in state: K ,   20513 in state: _ 
   20514 in state: _ ,   20517 in state: _ ,   20518 in state: _ 
   20519 in state: _ ,   20520 in state: _ ,


--------------------------------------------------------------------------------
To obtain a full report with current status information you need to use the ExtendedStatus On directive.

Gruß T
 
Hallo!
Wen du jetzt noch ExtendedStatus On in der httpd.conf setzt sind wir glücklich :).

mfG
Thorsten
 
Back
Top