Hallo zusammen,
Ich habe eine Website, die bei Mittwald mit Ladezeiten (TTFB) von bis zu einer Minute total langsam gelaufen ist (sofern man das ‚laufen‘ nennen kann), auf den eigenen Server transferiert. Dort läuft sie (so weit, nach dem zweiten Versuch) normal schnell.
Allerdings habe ich noch ein Problem: sowohl im Contao Manager als auch in der Konsole (Shell?) gibt es Fatal Errors in Verbindung mit exhausted memory beim Cache Warmup.
Es handelt sich um Contao 4.4.24, es ist das Eclipse Theme von Premium Contao Themes installiert. Diese Errors treten bei einer frischen Installation derselben Version auch in Verbindung mit dem Theme nicht auf.
Bis zum ‚Cache for the „prod“ environment (debug =false) was successfully cleared.‘
Dann folgen folgende Meldungen:
Code:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 28672 bytes) in /var/www/vhosts/client-xzy/domain.tld/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 107
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /var/www/vhosts/client-xzy/domain.tld/vendor/symfony/symfony/src/Symfony/Component/Debug/Exception/OutOfMemoryException.php on line 1
Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception
[RuntimeException]
An error occurred while executing the "cache:warmup" command: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 28672 bytes) in /
var/www/vhosts/client-xzy/domain.tld/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 107
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /var/www/vhosts/client-xzy/domain.tld/vendor/symfony/sy
mfony/src/Symfony/Component/Debug/Exception/OutOfMemoryException.php on line 1
Die Bytes-Anzahl 134.217.728 entspricht ziemlich genau 128MB. Es ist aber an keiner Stelle ein entsprechendes Limit konfiguriert.
Das Problem ist nicht bei der Contao-Installation aufgetreten, sondern erst, nachdem ich die composer.json und composer.lock vom vorherigen Server übertragen habe, auch nicht bei der kompletten Neuinstallation und bei keiner anderen Installation auf demselben Server.
Kann es sein, dass ein entsprechendes Limit irgendwo aus der alten Serverkonfiguration mitgeschleppt wurde?
Ich hoffe, es hat jemand eine Idee!
Vielen Dank und viele Grüße, Timo
Hier noch die composer.json, falls zur Aufklärung hilfreich.
Code:
{
"name": "contao/managed-edition",
"type": "project",
"description": "Contao Open Source CMS",
"license": "LGPL-3.0-or-later",
"authors": [
{
"name": "Leo Feyer",
"homepage": "https://github.com/leofeyer"
}
],
"require": {
"php": "^5.6 || ^7.0",
"codefog/contao-news_categories": "^3.0",
"contao/calendar-bundle": "^4.4",
"contao/comments-bundle": "^4.4",
"contao/faq-bundle": "^4.4",
"contao/listing-bundle": "^4.4",
"contao/manager-bundle": "4.4.*",
"contao/news-bundle": "^4.4",
"contao/newsletter-bundle": "^4.4",
"pliigo/pagecacheenabler-bundle": "^1.1",
"terminal42/contao-changelanguage": "^3.1",
"terminal42/notification_center": "^1.4"
},
"conflict": {
"contao/core-bundle": "<4.4.8"
},
"config": {
"component-dir": "assets"
},
"extra": {
"branch-alias": {
"dev-4.4": "4.4.x-dev"
}
},
"scripts": {
"post-install-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
],
"post-update-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
]
}
}
Lesezeichen