MaxClients Problem

Apache, Lighttpd, nginx, Cherokee
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: MaxClients Problem

Post by Joe User »

Zu den dummy Requests siehe http://wiki.apache.org/httpd/InternalDummyConnection

Lege eine leere blank.html im DocRoot an und füge Folgendes in die VHost-Config oder .htaccess ein:

Code: Select all

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} .*internal\ dummy\ connection.* [NC]
RewriteRule ^/$ /blank.html [L]
Kann helfen, muss es aber nicht...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
neon
Posts: 16
Joined: 2010-06-12 20:29
 

Re: MaxClients Problem

Post by neon »

Ich musste gerade den Server neu starten und seit dem habe ich komischerweise das Problem das ich in MySQL direkt immer Too Many Connections bekomme. Auch ein umstellen auf die alte konfiguration bringt gerade keine Abhilfe -_-. Leider kann ich gerade nicht mals ein "top" oder "ps" absetzen um zu sehen was passiert. Die Ausgabe friert dann einfach ein.

Da mir gerade auch auffällt das ich kein regelmäßiges Backup mache wollte ich noch nachfragen was du mir empfehlen würdest? Oder einfach nur mit rsync?

In dmesg bekomme ich auch einige Fehlermeldungen:

Code: Select all

[ 1345.152261] ata2.00: error: { UNC }
[ 1345.165244] ata2.00: configured for UDMA/133
[ 1345.165254] ata2: EH complete
[ 1347.084369] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[ 1347.084404] ata2.00: irq_stat 0x40000001
[ 1347.084436] ata2.00: cmd 25/00:08:49:06:28/00:00:30:00:00/e0 tag 0 dma 4096 in
[ 1347.084437]          res 51/40:00:49:06:28/ff:00:30:00:00/e0 Emask 0x9 (media error)
[ 1347.084532] ata2.00: status: { DRDY ERR }
[ 1347.084559] ata2.00: error: { UNC }
[ 1347.097651] ata2.00: configured for UDMA/133
[ 1347.097661] ata2: EH complete
[ 1349.049845] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[ 1349.049880] ata2.00: irq_stat 0x40000001
[ 1349.049911] ata2.00: cmd 25/00:08:49:06:28/00:00:30:00:00/e0 tag 0 dma 4096 in
[ 1349.049913]          res 51/40:00:49:06:28/ff:00:30:00:00/e0 Emask 0x9 (media error)
[ 1349.050008] ata2.00: status: { DRDY ERR }
[ 1349.050035] ata2.00: error: { UNC }
[ 1349.062998] ata2.00: configured for UDMA/133
[ 1349.063007] ata2: EH complete
[ 1350.982141] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[ 1350.982176] ata2.00: irq_stat 0x40000001
[ 1350.982208] ata2.00: cmd 25/00:08:49:06:28/00:00:30:00:00/e0 tag 0 dma 4096 in
[ 1350.982209]          res 51/40:00:49:06:28/ff:00:30:00:00/e0 Emask 0x9 (media error)
[ 1350.982305] ata2.00: status: { DRDY ERR }
[ 1350.982331] ata2.00: error: { UNC }
[ 1350.995291] ata2.00: configured for UDMA/133
[ 1350.995301] ata2: EH complete
[ 1352.914444] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[ 1352.914480] ata2.00: irq_stat 0x40000001
[ 1352.914512] ata2.00: cmd 25/00:08:49:06:28/00:00:30:00:00/e0 tag 0 dma 4096 in
[ 1352.914513]          res 51/40:00:49:06:28/ff:00:30:00:00/e0 Emask 0x9 (media error)
[ 1352.914609] ata2.00: status: { DRDY ERR }
[ 1352.914635] ata2.00: error: { UNC }
[ 1352.927598] ata2.00: configured for UDMA/133
[ 1352.927610] sd 1:0:0:0: [sdb] Unhandled sense code
[ 1352.927612] sd 1:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1352.927616] sd 1:0:0:0: [sdb] Sense Key : Medium Error [current] [descriptor]
[ 1352.927620] Descriptor sense data with sense descriptors (in hex):
[ 1352.927623]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00 
[ 1352.927631]         30 28 06 49 
[ 1352.927635] sd 1:0:0:0: [sdb] Add. Sense: Unrecovered read error - auto reallocate failed
[ 1352.927640] end_request: I/O error, dev sdb, sector 807929417
[ 1352.927680] ata2: EH complete
[ 1352.928065] raid1:md2: read error corrected (8 sectors at 795318392 on sdb3)
[ 1357.214132] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[ 1357.214167] ata2.00: irq_stat 0x40000001
[ 1357.214199] ata2.00: cmd 25/00:08:51:06:28/00:00:30:00:00/e0 tag 0 dma 4096 in
[ 1357.214200]          res 51/40:00:54:06:28/ff:00:30:00:00/e0 Emask 0x9 (media error)
[ 1357.214296] ata2.00: status: { DRDY ERR }
[ 1357.214322] ata2.00: error: { UNC }
[ 1357.227527] ata2.00: configured for UDMA/133
[ 1357.227536] ata2: EH complete
[ 1365.498065] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[ 1365.498100] ata2.00: irq_stat 0x40000001
[ 1365.498133] ata2.00: cmd 25/00:08:51:06:28/00:00:30:00:00/e0 tag 0 dma 4096 in
[ 1365.498134]          res 51/40:00:51:06:28/ff:00:30:00:00/e0 Emask 0x9 (media error)
[ 1365.498230] ata2.00: status: { DRDY ERR }
[ 1365.498256] ata2.00: error: { UNC }
[ 1365.511429] ata2.00: configured for UDMA/133
[ 1365.511439] ata2: EH complete
So auf einmal lief wieder alles recht schnell und normal. In dmesg folgende meldung:

Code: Select all

[ 1906.951720] Descriptor sense data with sense descriptors (in hex):
[ 1906.951722]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00 
[ 1906.951731]         30 28 a9 cd 
[ 1906.951735] sd 1:0:0:0: [sdb] Add. Sense: Unrecovered read error - auto reallocate failed
[ 1906.951739] end_request: I/O error, dev sdb, sector 807971277
[ 1906.951777] ata2: EH complete
[ 1906.952157] raid1:md2: read error corrected (8 sectors at 795360248 on sdb3)
[ 1907.013791] raid1: sdb3: redirecting sector 795360232 to another mirror
[ 1908.557107] raid1: sdb3: redirecting sector 795360392 to another mirror
Sehe ich das richtig das im Raid wohl nichtmehr alles synchron war und dies ausgeglichen wurde und deshalb das ganze wahrscheinlich ein I/O ist / war? Wenn ja sollte das ganze ja keine problem von MySQL / Apache gewesen sein und ich kann deine Konfigurationseinstellungen wieder übernehmen?
Last edited by neon on 2011-02-06 18:18, edited 4 times in total.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: MaxClients Problem

Post by Joe User »

Ohne den Error jetzt explizit recherchiert zu haben, kann ich Dir dringend dazu raten, (mindestens) die zweite Festplatte (sdb) austauschen zu lassen. Die ist relativ sicher langsam am Ende ihrer Lebenszeit. Wenn sda in etwa gleich alt ist, sollte sie am Besten gleich mitgetauscht werden.

Vorher selbstverständlich ein Backup der Configs und Nutzdaten anlegen.

Die Meldungen zum RAID sind nur ein Folgeeffekt, die Ursache liegt bei sdb.

Meine Configvorschläge kannst Du nach dem Plattentausch erstmal wieder übernehmen und nach ein paar Tagen nochmal Rückmeldung geben, danke.
Last edited by Joe User on 2011-02-06 19:54, edited 1 time in total.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Post Reply