Speicherplatzbedarf von Drupal
TITLE: memory_limit in Drupal
Zusammenfassung vorab: 44 MB PHP-Speicherlimit (engl. "PHP memory limit") scheinen zumeist ausreichend, 64 MB sind ausreichend. Die aktuelle Einstellung von memory_limit kann man sich auf http://fff2.at/drupal/admin/reports/status ansehen.
- Drupal memory usage
- split mode
- Measuring memory consumption by Drupal bootstrap and modules (Memoryverbrauch je Modul)
- Views + CCK (fields) use a lot of memory
- Appeal to all developers and contributors for low memory modules
- Making your Drupal modules use less memory
- Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)...
- http://www.drupalcenter.de/handbuch/320
Speicherplatzbedarf ansehen
- http://fff2.at/drupal/admin/reports/performance_logging_details
- http://fff2.at/drupal/admin/reports/performance_logging_summary
Erfahrungen mit verschiedenen Werten für memory_limit
- 44 MB ... zumeist ausreichend, manchmal gibt es aber doch Fehlermeldungen (z. B. mit taxonomy_manager)
- 64 MB ... bis jetzt keine Probleme
Beispiele für den Speicherplatzbedarf diverser Operationen
- admin/build/menu-customize/navigation (> 36 MB => ERROR)
- admin/build/modules (32.84 MB)
- devel/phpinfo (13.25 MB)
(Die angegebenen Werte habe ich mit dem Devel-Modul bei "meiner" Installation gemessen.)
Drupal-Module mit hohem Speicherplatzbedarf
Meine Messungen
(Drupal 6.3):
820088 node
637824 comment
606688 system
414792 filter
406064 taxonomy
366816 book
359912 forum
350048 search
290296 advanced_help
278568 views
233024 upload
224136 profile
222664 directory
198960 xmlsitemap_node
194864 locale
172600 block
152912 menu
137232 update
124400 trigger
114544 translation
98288 xmlsitemap_term
74368 views_ui
67792 path
67432 languageicons
64880 views_export
44136 dblog
28008 extlink
23592 tracker
15488 help
0 develModules = 6.790416
Bootstrap = 20.541616 ... Kann das stimmen?Werte für "Bootstrap" (bei 36 MB):
- 20.545.216
- 23.675.520 (Verwalten)
- 23.906.840 (Statusbericht)
- 23.910.600 (Module)
- 23.914.648 (Statusbericht)
- 23.924.432 (Cronjob manuell ausführen)
- 23.928.464
- 23.929.992 (Cronjob manuell ausführen) !!!
- 28.654.760 (Devel deaktivieren)
Nach Erhöhung auf 44 MB:
- 22.473.704 (Cronjob manuell ausführen)
- 29.723.312 (Module)
Hinweise:
- Falls "nichts mehr geht", scheint Folgendes zu helfen: ein Löschen des Cache bzw. den Cron-Job händisch zu starten.
Siehe auch:
Klassifikation
• Drupal • memory_limit • Speicherplatz