Apache startet neu

Hilfe zu Znuny Problemen aller Art
Locked
JGotthardt
Znuny newbie
Posts: 17
Joined: 18 Mar 2013, 13:44
Znuny Version: 3.1.13

Apache startet neu

Post by JGotthardt »

Hallo zusammen,

wir haben auf unserem Windows 2008 Server das Problem das der Apache in sporadischen Abständen (zwischen 5min und 30min) neu startet.
Folgende Pakete sind installiert:
ActivePerl 5.16.3 Build 1603
Apache HTTP Server 2.2.25

Folgende Fehlermeldung wird im Apache-Error-Log angezeigt:
"
[Mon Jan 19 10:05:27 2015] [notice] Parent: child process exited with status 255 -- Restarting.
[Mon Jan 19 10:05:31 2015] [notice] Apache/2.2.25 (Win32) mod_apreq2-20090110/2.8.0 mod_perl/2.0.8 Perl/v5.16.3 configured -- resuming normal operations
[Mon Jan 19 10:05:31 2015] [notice] Server built: Jul 10 2013 01:52:12
[Mon Jan 19 10:05:31 2015] [notice] Parent: Created child process 2720
[Mon Jan 19 10:05:31 2015] [debug] mpm_winnt.c(477): Parent: Sent the scoreboard to the child
[Mon Jan 19 10:05:38 2015] [notice] Child 2720: Child process is running
[Mon Jan 19 10:05:38 2015] [info] Parent: Duplicating socket 296 and sending it to child process 2720
[Mon Jan 19 10:05:38 2015] [debug] mpm_winnt.c(595): Parent: Sent 1 listeners to child 2720
[Mon Jan 19 10:05:38 2015] [debug] mpm_winnt.c(398): Child 2720: Retrieved our scoreboard from the parent.
[Mon Jan 19 10:05:38 2015] [debug] mpm_winnt.c(554): Child 2720: retrieved 1 listeners from parent
[Mon Jan 19 10:05:38 2015] [notice] Child 2720: Acquired the start mutex.
[Mon Jan 19 10:05:38 2015] [notice] Child 2720: Starting 64 worker threads.
[Mon Jan 19 10:05:38 2015] [notice] Child 2720: Starting thread to listen on port 80.
"

Folgendes steht dazu im Windows-Event-Log:
"
Faulting application name: httpd.exe, version: 2.2.25.0, time stamp: 0x51dd049c
Faulting module name: perl516.dll, version: 5.16.3.1603, time stamp: 0x5140cc97
Exception code: 0xc0000005
Fault offset: 0x00081267
Faulting process id: 0x8d4
Faulting application start time: 0x01d033c6ddb851d9
Faulting application path: C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\httpd.exe
Faulting module path: C:\Perl\bin\perl516.dll
Report Id: 4e1e1e99-9fba-11e4-a99d-0050569c1028
"


Habe zwar zu diesem Fehler schon das ein oder andere im Internet gefunden, aber leider nicht in der Konstellation zu Apache und Perl.

Hat jemand von euch eine Idee/Lösungsansatz?
Vielen Dank.
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: Apache startet neu

Post by Rooobaaat »

sehe ich richtig das du 64 worker threads starten lässt?

vllt geht deinem System der RAM aus?
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
ground2er0
Znuny newbie
Posts: 7
Joined: 09 Dec 2014, 12:04
Znuny Version: ORTS 4

Re: Apache startet neu

Post by ground2er0 »

Was hast du bei dir in der Apache2.conf?

Code: Select all

    ThreadsPerChild      150
    MaxRequestsPerChild    0 
JGotthardt
Znuny newbie
Posts: 17
Joined: 18 Mar 2013, 13:44
Znuny Version: 3.1.13

Re: Apache startet neu

Post by JGotthardt »

Hi,

danke für eure schnellen Antworten.

Der Server hat 2,3GHz (2Prozessoren) und 4GByte RAM.
Windows 2008 R2 Enterprise inkl. SP1

aktuelle sind nur 8 User angemeldet, eigentlich sollte das kein Problem darstellen (aktuell sind nur 2,5GByte) belegt/in Verwendung.

@ground2er0: Du meinst sicher die "apache2-httpd.include.conf" oder "httpd.conf."
In dieser habe ich beide EInträge nicht gefunden.

Kann ich diese einfach hinzufügen?
ground2er0
Znuny newbie
Posts: 7
Joined: 09 Dec 2014, 12:04
Znuny Version: ORTS 4

Re: Apache startet neu

Post by ground2er0 »

Ja genau die httpd.conf

Bei einer Linux Installation wird das durch die vorgegebene config schon eingetragen.

Meine Config bei Ubuntu:

Code: Select all

# Limit the number of requests per child to avoid excessive memory usage
MaxRequestsPerChild 4000
Wie das bei einem Windows Server ist kann ich dir leider nicht sagen..
Ob der Apache danach noch läuft merkst du ja sofort XD
JGotthardt
Znuny newbie
Posts: 17
Joined: 18 Mar 2013, 13:44
Znuny Version: 3.1.13

Re: Apache startet neu

Post by JGotthardt »

Ich habe die Einstellungen noch angepasst:
"MaxRequestsPerChild 4000
ThreadsPerChild 150
"
diese beiden Zeilen habe ich eingefügt.

Nun startet der Server leider weiterhin noch neu (die Fehlermeldung ist aber eine andere):

[Mon Jan 19 15:16:09 2015] [notice] Parent: child process exited with status 255 -- Restarting.
[Mon Jan 19 15:16:13 2015] [notice] Apache/2.2.25 (Win32) mod_apreq2-20090110/2.8.0 mod_perl/2.0.8 Perl/v5.16.3 configured -- resuming normal operations
[Mon Jan 19 15:16:13 2015] [notice] Server built: Jul 10 2013 01:52:12
[Mon Jan 19 15:16:13 2015] [notice] Parent: Created child process 2684
[Mon Jan 19 15:16:13 2015] [debug] mpm_winnt.c(477): Parent: Sent the scoreboard to the child
[Mon Jan 19 15:16:20 2015] [notice] Child 2684: Child process is running
[Mon Jan 19 15:16:20 2015] [debug] mpm_winnt.c(398): Child 2684: Retrieved our scoreboard from the parent.
[Mon Jan 19 15:16:20 2015] [info] Parent: Duplicating socket 296 and sending it to child process 2684
[Mon Jan 19 15:16:20 2015] [debug] mpm_winnt.c(595): Parent: Sent 1 listeners to child 2684
[Mon Jan 19 15:16:20 2015] [debug] mpm_winnt.c(554): Child 2684: retrieved 1 listeners from parent
[Mon Jan 19 15:16:20 2015] [notice] Child 2684: Acquired the start mutex.
[Mon Jan 19 15:16:20 2015] [notice] Child 2684: Starting 150 worker threads.
[Mon Jan 19 15:16:20 2015] [notice] Child 2684: Starting thread to listen on port 80.
ground2er0
Znuny newbie
Posts: 7
Joined: 09 Dec 2014, 12:04
Znuny Version: ORTS 4

Re: Apache startet neu

Post by ground2er0 »

Hast du schon das LogLevel auf debug gesetzt?
Startet der Apache auch neu wenn kein User Aktiv ist? z.b. in der Nacht?
Locked