Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Page 1 of 3
Fatal error: Out of memory
 
nixdorf
Member
 
Total Posts:  31
Joined:  2008-06-18
 

Wenn ich versuche ein Produkt anzulegen im Backend, bekomme ich immer folgende Meldung:

Fatal error: Out of memory (allocated 14680064) (tried to allocate 1245184 bytes) in /home/edvoncbe/www.edv-onlineshop.com/magento/lib/Zend/Date.php on line 2554

Auch andere Seiten kommen manchmal mit so einer Meldung.

Woran kann das liegen?

Gruß Nixdorf

 
Magento Community Magento Community
Magento Community
Magento Community
 
Hofpils
Jr. Member
 
Total Posts:  8
Joined:  2007-09-28
Bayreuth, Germany
 

Zu wenig Speicher?

 
Magento Community Magento Community
Magento Community
Magento Community
 
nixdorf
Member
 
Total Posts:  31
Joined:  2008-06-18
 

Hallo,

auf dem Webserver? Da habe ich 500 MB installiert, das hat bis jetzt bei allen andern Webanwendungen ausgereicht. Mit top kann ich auch nicht erkennen, das dort beim Aufruf der Seite eine Anwendung besonders viel Speicher belegt. Im apache - error.log erscheint keine Meldung

Gruß Nixdorf

 
Magento Community Magento Community
Magento Community
Magento Community
 
Rico Neitzel
Moderator
 
Avatar
Total Posts:  354
Joined:  2007-09-05
Bayreuth, Germany
 

geil wie geht das denn??? “Posted: 11 months ago” o_O

anyway: unabhängig vom INSTALLIERTEN Speicher kann man PHP natürlich nur einen begrenzten Speicher zuweisen. Sprich: PHP erlaubt aktuell die Verwendung von maximal 14 MB des verfügbaren Speichers. Erfordert eine Anwendung MEHR speicher muss man die ausdrücklich in der Konfiguration einstellen (php_memory_limit = 64M) oder - falls das erlaubt ist - während der Laufzeit erhöhen (ini_set();)

LG rico

 Signature 

Corporate: n-punkt web in progress
Private: rizi-online.de

Hinweis: Kein Support per PM, ICQ oder E-Mail, bitte nutzt das Forum!

Notice: No support via PM, ICQ or email. Please take a look at the forums

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  332
Joined:  2008-01-03
 

Hmm, ist aber schon komisch wenn man umrechnet…
Hast du mal ‘nen Link zu deiner phpinfo, insbesondere die verwendete PHP Version und das memory_limit währen interessant?

Fatal errorOut of memory (allocated 14680064) (tried to allocate 1245184 bytesin /home/edvoncbe/www.edv-onlineshop.com/magento/lib/Zend/Date.php on line 2554

14680064 = 14mb
1245184 = 1,2mb

Ansonsten erstmal wie der Rico bereits gesagt hat memory_limit erhöhen und Apache restarten…

 Signature 

---
Wichtiger Hinweis: Wer Visionen hat, sollte zum Arzt gehen.
Nuff respect to Stefan B.- he’s the ultimate magento pope.
---
Kein Support per PM
---
Gruß/ Greetings/ Groetjes
Jan F.
---
commercial: null212 | Büro für Kommunikation und Design
privat: Nörd1

 
Magento Community Magento Community
Magento Community
Magento Community
 
nixdorf
Member
 
Total Posts:  31
Joined:  2008-06-18
 

Hallo,

in der php.ini war memory_limit = 8m gesetzt, das habe ich jetzt mal auf 100 erhöht und den Apachen neu gestartetLeider bekomme ich damit immer noch die gleiche Fehlermeldung:

Fatal error: Out of memory (allocated 14680064) (tried to allocate 1245184 bytes) in /home/edvoncbe/www.edv-onlineshop.com/magento/lib/Zend/Date.php on line 2554

kann ich das nur über die php.ini lösen?
Wie kann ich testen ob das memory_limit auch wirklich auf 100m ist? In der phpinfo habe ich nichts gefunden.

habe ich da noch etwas übersehen?

Gruß NIxdorf

 
Magento Community Magento Community
Magento Community
Magento Community
 
nixdorf
Member
 
Total Posts:  31
Joined:  2008-06-18
 

Hallo,

hat da keiner eine Idee? Das Problem habe ich leider immer noch.

Gruß Nixdorf

 
Magento Community Magento Community
Magento Community
Magento Community
 
novalis
Moderator
 
Avatar
Total Posts:  238
Joined:  2007-10-13
Berlin, Germany
 

Hallo,

es liegt definitiv an deiner Servereinstellung, sprich dem memory_limit von PHP. Wenn die Einstellung nicht greift, dann hast du evtl. die falsche php.ini am Wickel? Meine phpinfo zeigt auch das memory_limit mit in der Liste an, Configuration -> PHP Core -> memory_limit. Dort sollten deine 100MB stehen. Was ist es denn für ein Server? OS?

 Signature 

http://www.exanto.de | Magento-DE auf Freenode | Kein Support per PM, ICQ oder E-Mail, bitte nutzt das Forum!

 
Magento Community Magento Community
Magento Community
Magento Community
 
nixdorf
Member
 
Total Posts:  31
Joined:  2008-06-18
 

Hallo,

das ist ein debian/etch - root-server. Hier ist die Ausgabe der von phpinfo:

http://www.edv-onlineshop.com/

Das sind die Zeilen die ich in der php.ini verwende:

; 2005-01-06 stvo: disabled (cgiwrap takes care)
; max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_execution_time = -1 ; no limit
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 64MB ; Maximum amount of memory a script may consume (8MB)

Es ist die richtige php.ini, ich habe es getestet. Wenn ich den safe-mode auf on stelle, kann ich das dann in der phpinfo sehen.

Es kommt immer noch diese Fehlermeldung:

Fatal error: Out of memory (allocated 14680064) (tried to allocate 1245184 bytes) in /home/edvoncbe/www.edv-onlineshop.com/magento/lib/Zend/Date.php on line 2554

Wenn ich versuche ein Produkt anzulegen.

Woran kann das denn noch liegen?

Gruß NIxdorf

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andrej
Sr. Member
 
Avatar
Total Posts:  173
Joined:  2008-05-29
Stuttgart, Germany
 

Welche PHP-Version hast du denn drauf?

 Signature 

Andrej Sinicyn

Phoenix Medien GmbH & Co. KG
Magento Silver-Partner in Stuttgart
& Wien

 
Magento Community Magento Community
Magento Community
Magento Community
 
nixdorf
Member
 
Total Posts:  31
Joined:  2008-06-18
 

Hallo,

die Version ist 5.3.4

Noch eine Idee? Komme an diesem Punkt leider immer noch nicht weiter.

Gruß Nixdorf

 
Magento Community Magento Community
Magento Community
Magento Community
 
massi
Sr. Member
 
Avatar
Total Posts:  90
Joined:  2008-04-13
Munich, Germany
 

Wieso hast Du getestet, ob der SafeMode funktioniert?
Ich würde eher kontrollieren, ob die Ausgabe von phpinfo() das eingestellte MemoryLimit anzeigt..

 Signature 

vianetz.com
Check out Live Authentication For Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  332
Joined:  2008-01-03
 

Wenn du root Zugriff hast mach mal bitte folgendes:

cd #
mkdir php_dbg
cd php_dbg
joe
(vitest.php

Inhalt der test.php einfügen

<?php
$i 
0;
$a = array();
while( 
$i++ < 200000 )
{
        $a[] 
'a';
}
echo memory_get_usage();
?>

STRG+K+(speichern joe)
php -f test.php

Als Ausgabe kommt der Speicherverbrauch für ein Array mit 200.000 Einträgen in bytes.

In meinem Falle z.B. 26704292 bytes = 25.4672mb.

 Signature 

---
Wichtiger Hinweis: Wer Visionen hat, sollte zum Arzt gehen.
Nuff respect to Stefan B.- he’s the ultimate magento pope.
---
Kein Support per PM
---
Gruß/ Greetings/ Groetjes
Jan F.
---
commercial: null212 | Büro für Kommunikation und Design
privat: Nörd1

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  332
Joined:  2008-01-03
 

Und bitte erhöhe das memory_limit mal auf 256mb oder 512mb mit anschließender Überprüfung in der phpinfo!

 Signature 

---
Wichtiger Hinweis: Wer Visionen hat, sollte zum Arzt gehen.
Nuff respect to Stefan B.- he’s the ultimate magento pope.
---
Kein Support per PM
---
Gruß/ Greetings/ Groetjes
Jan F.
---
commercial: null212 | Büro für Kommunikation und Design
privat: Nörd1

 
Magento Community Magento Community
Magento Community
Magento Community
 
nixdorf
Member
 
Total Posts:  31
Joined:  2008-06-18
 

Hallo Jan,

ich habe Dein Script eben ausprobiert. Beim ersten mal bekam ich:

13860808

habe dann den memory_limit von 64mb auf 512mb erhöht, den Apachen neu gestartet. Das zeigt die php.info auch an, siehe hier:  http://www.edv-onlineshop.com/

dann habe ich das Script noch mal ausgefürt, bekam aber wieder:

13860808

als Ergebnis.

Hast Du eine Ahnung was immer noch falsch sein könnte?

Gruß Nixdorf

 
Magento Community Magento Community
Magento Community
Magento Community
 
nixdorf
Member
 
Total Posts:  31
Joined:  2008-06-18
 

Hat da noch wer eine Idee? Habe das Problem leider immer noch.

Gruß NIxdorf

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 3
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52320 users|444 users currently online|105661 forum posts