Too many open files error? - Apache File Handle-Limits und 930 Sprachdateien - eine Herausforderung an die Performanz
am 09.01.2012 - 01:22 Uhr in
Nachdem ich die drupal-commons 6.x 2.3 jetzt mal (ganz grundsätzlich) installieren kann bin ich schon etwas weiter. Der installationsprozess läuft durch - aber immer noch mit einigne Fehlern - too many files open. Ein Performanzproblem sicher! Die Installation läuft buggy und mit fehlermeldungen - ergenbis ist
eine Seite wie hier http://campus-24.com
Der neue leistungsfähigere SERVER ist im Grund auch nicht mehr weit.
Was mich aber bzg. der Performanzthematik dennoch interessiert (hat) ist die FRAGE wie starkt das Problem ist und was die Ursachen sind.... Eine Suche nach den Fehler "too many files open" ergab ein insges. interessantes Bild mit verschidenen Vermutngen. ( hier der Thread mit der Zusammenstellung http://drupal.org/node/1396990 )
Avoid too many file_exists() calls during bootstrap - with patch - not tested yet!
Posted by c960657 on March 25, 2010 at 1:02pm
http://drupal.org/node/752730#comment-5440100
Too many open files error?
Posted by nr152522 on April 16, 2007 at 2:57pm
http://drupal.org/node/136732
Too many open files error?
http://drupal.org/node/1231106
Posted by mistaparker on July 27, 2011 at 2:07pm
Server Performance Warning: Drupal & modules (ab)uses too many files !
Posted by ClearXS on June 13, 2010 at 1:09am
http://drupal.org/node/825990#comment-5440056
Too many open files in includes/file.inc on line 888
Posted by muckermarc on May 27, 2009 at 12:05pm in the thread http://drupal.org/node/474152#comment-5440114
Die Lösung hier - ein Heraufsetzen der Limits der File Handles auf dem Apache.
wird insges. von vielen als erfolgreich angesehen. Das hab ich gleich auch mal gemacht.
Muss die Installation noch testen.
Dann noch besonders interessant:
Server Performance Warning: Drupal & modules (ab)uses too many files !
Posted by ClearXS on June 13, 2010 at 1:09am
http://drupal.org/node/825990#comment-5440056
Hinweis auf die vielen Files - insbes. die Übesetzungen
ca 925 Übersetzungs-Dateien in der drupal commons 6 x 2.3 - Übersetzungen in fast alle Sprachen...
Eine Suche ergab das - habe mal versucht die Installation zu verschlanken
Nach dem Motto "get rid of all those silly translation files or whatever for tiny miny parts of info and unnecesary subdivisions;"
http://drupal.org/node/825990
find -type f -name "*.po"
linux-vi17:/home/martin/web_technik/drupal/commons_3_jan_12/commons-6.x-2.3/commons-6.x-2.3 # find -type f -name "*.po"
./profiles/drupal_commons/modules/acquia/mollom/translations/._it.po
./profiles/drupal_commons/modules/acquia/mollom/translations/fr.po
./profiles/drupal_commons/modules/acquia/mollom/translations/._sv.po
./profiles/drupal_commons/modules/acquia/mollom/translations/sv.po
./profiles/drupal_commons/modules/acquia/mollom/translations/._fr.po
./profiles/drupal_commons/modules/acquia/mollom/translations/._nb.po
./profiles/drupal_commons/modules/acquia/mollom/translations/._pl.po
./profiles/drupal_commons/modules/acquia/mollom/translations/da.po
./profiles/drupal_commons/modules/acquia/mollom/translations/._cs.po
./profiles/drupal_commons/modules/acquia/mollom/translations/._hu.po
./profiles/drupal_commons/modules/acquia/mollom/translations/it.po
./profiles/drupal_commons/modules/acquia/mollom/translations/._nn.po
./profiles/drupal_commons/modules/acquia/mollom/translations/._th.po
./profiles/drupal_commons/modules/acquia/mollom/translations/nn.po
./profiles/drupal_commons/modules/acquia/mollom/translations/._nl.po
./profiles/drupal_commons/modules/acquia/mollom/translations/pt-pt.po
./profiles/drupal_commons/modules/acquia/mollom/translations/th.po
./profiles/drupal_commons/modules/acquia/mollom/translations/._da.powie gesagt mehr als 930 Dateien nur Sprache ... / Übersetzung...
Wenn man sich dann klar macht dass die file_exists() viel Zeit in Anspruch nehmen dann ist man sicher dabei nicht so happy mit 940 Sprachdateien spazieren zu laufen - wenn es auch viel viel wenigr sein koennten...vgl auch hier die http://drupal.org/node/1396990
Christian Schmid bemerkt: "I noticed that file_exists() is the most expensive built-in PHP function measured as total time spent calling the function for all invocations in a single request. This is more time than is spent in e.g. DOStatement->execute(). During the bootstrap process, Drupal does a lot of file_exists() checks to verify that files are still where they are supposed to be according to {system}.filename.
Er hat auch eine patch zur verfügung gestellt. - hab ich naber noch nicht in der 7er Drupal getestet, geschweige denn in der Commons 6.x 2.3
Was ich jetzt aber mache ist
a.- mit den bessere n Filehandles-(erweitertes Limit) auf dem Apache die Installatin nochmals zu testen.
b.- eine Installation mal zu testen - die die Ganzen Übesetzungen nicht hat - ich haue einfach mal die 930 Dateien raus.
Das müsste dann ja doch noch installierbar sein - die engl. Sprache ist ja per default dabei ...
meld ich wieder - und berichte.
lg unleash
- Anmelden oder Registrieren um Kommentare zu schreiben

Mir sind Fehler unbekannt
am 09.01.2012 - 10:00 Uhr
Mir sind solche Fehler unbekannt. Ich weiss leider nicht wie du es schaffst dir immer solche Probleme zu ergattern.