# Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 221184 bytes)

**URL:** <https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945>\
**Category:** Installation / Einstieg\
**Tags:** installation--gettin\
**Created:** [18. Oktober 2021 um 15:43 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945 "2021-10-18T15:43:19Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![NickJ](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@NickJ](https://forum.shopware.com/u/NickJ)\
**Post date:** [18. Oktober 2021 um 15:43 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/1 "2021-10-18T15:43:19Z")

</div>

**Hallo zusammen,**  
ich wollte mir letztens mal shopware 6 developer herunterladen um mich mit Plugins vertraut zu machen. Doch ich bekomme im Verlauf der Installation, nach dem Command: `./psh.phar install`, einen Error:

```auto
[php] Fatal Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 221184 bytes) ["exception" => Symfony\Component\ErrorHandler\Error\OutOfMemoryError { …}]
	
	In PDOStatement.php line 262:
	                                                                               
	  Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate   
	  221184 bytes)                                                                
	                                                                               
	
	dal:refresh:index [--use-queue] [--skip SKIP]
	
	
Execution aborted, a subcommand failed!

```

**Ich arbeite mit MAMP (PHP 7.4.21) auf macOS Big Sur 11.6.**

**Folgendes habe ich bereits probiert:**  
in MAMP php.ini =\> `memory_limit = 256M`  
im Terminal `php -i | grep memory_limit` =\> memory\_limit =\> 256M =\> 256M  
im Terminal `php -r "echo ini_get('memory_limit').PHP_EOL;" ` =\> 256M

Neustart und Wechsel auf php 8.0.8, mit der gleichen Vorgehensweise wie oben.

Auch `which php` im terminal gibt mir die richtige Version und die richtige Datei.

In der .bash\_profile steht der richtige Pfad. (Habe ich nach dem Versionswechsel auch angepasst.)

Und im Terminal `php --ini` =\>

```auto
Configuration File (php.ini) Path: /Applications/MAMP/bin/php/php8.0.8/conf
Loaded Configuration File: /Library/Application Support/appsolute/MAMP PRO/conf/php8.0.8.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)

```

In beiden Dateien ist memory\_limit auf 256M.

Habe auch schon probiert neu installieren. Der Error hält sich hartnäckig.  
Ich finde auch im Forum keine Lösung.  
Hat jemand eine Idee?

---

<div class="post-metadata">

**Author:** ![NickJ](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@NickJ](https://forum.shopware.com/u/NickJ)\
**Post date:** [18. Oktober 2021 um 15:47 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/2 "2021-10-18T15:47:35Z")

</div>

Vergessen zu erwähnen: Ich bin bei der installation nach der Shopware Dokumentation gegangen. [MAMP installation](https://developer.shopware.com/docs/guides/installation/mamp#checkout-shopware)

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [18. Oktober 2021 um 19:41 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/3 "2021-10-18T19:41:19Z")

</div>

Häng mal eine 0 an das memory\_limit und versuche es nochmal  
memory\_limit = 2560M

---

<div class="post-metadata">

**Author:** ![NickJ](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@NickJ](https://forum.shopware.com/u/NickJ)\
**Post date:** [18. Oktober 2021 um 19:56 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/4 "2021-10-18T19:56:29Z")

</div>

Vielen Dank für die Antwort, ich bekomme leider immer noch den selben Error.  
Ich habe auch schon probiert das memory\_limit zu deaktivieren (ich weiss, sollte man nicht machen 😅 ).  
Die Errormeldung zeigt auch keinen höheren Wert an sondern immer noch die `134217728 bytes`

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [19. Oktober 2021 um 06:12 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/5 "2021-10-19T06:12:48Z")

</div>

Ist das jetzt ein großes Problem mal auf 512M oder gar 1024M zu gehen?

---

<div class="post-metadata">

**Author:** ![FlorianHoltgrefe](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/florianholtgrefe/32/22532_2.png) [@FlorianHoltgrefe](https://forum.shopware.com/u/FlorianHoltgrefe)\
**Post date:** [19. Oktober 2021 um 06:24 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/6 "2021-10-19T06:24:48Z")

</div>



---

<div class="post-metadata">

**Author:** ![FlorianHoltgrefe](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/florianholtgrefe/32/22532_2.png) [@FlorianHoltgrefe](https://forum.shopware.com/u/FlorianHoltgrefe)\
**Post date:** [19. Oktober 2021 um 06:24 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/7 "2021-10-19T06:24:52Z")

</div>



---

<div class="post-metadata">

**Author:** ![NickJ](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@NickJ](https://forum.shopware.com/u/NickJ)\
**Post date:** [19. Oktober 2021 um 06:49 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/8 "2021-10-19T06:49:36Z")

</div>

Wie meinst du? Ich habe bereits das Limit auf 2560M gestellt, aber es scheint nichts zu ändern, die Errormeldung wird trotzdem ausgegeben und die Installation abgebrochen.

---

<div class="post-metadata">

**Author:** ![moschadr](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@moschadr](https://forum.shopware.com/u/moschadr)\
**Post date:** [19. Oktober 2021 um 07:22 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/9 "2021-10-19T07:22:43Z")

</div>

Die Dev-Version beinhaltet vieles, was Du Anfang nicht unbedingst benötigst. Wenn Du Dir die Prod-Version ziehst, installierst und im Anschluss in der .env von APP\_ENV=prod auf APP\_ENV=dev umstellst, bekommst Du, wen auch reduzierte Tools für die Entwicklung. Vielleicht klappt es ja mit dieser Vorgehensweise. Gruß

---

<div class="post-metadata">

**Author:** ![NickJ](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@NickJ](https://forum.shopware.com/u/NickJ)\
**Post date:** [19. Oktober 2021 um 07:31 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/10 "2021-10-19T07:31:17Z")

</div>

Was wären denn die Einbussen?

---

<div class="post-metadata">

**Author:** ![moschadr](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@moschadr](https://forum.shopware.com/u/moschadr)\
**Post date:** [19. Oktober 2021 um 07:41 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/11 "2021-10-19T07:41:16Z")

</div>

In Storefront und Backend keine. Wenn ich mich recht erinnere, steht z.B. psphar nicht zur Verfügung. Für das neu kompilieren von Storefront und Backend gibt es aber shells im bin-Verzeichnis. Auch das inline Debugging ist, soweit ich noch weiß, etwas eigeschränkt. Aber, wie schon geschrieben, für den Anfang nicht wirklich entscheidend. Später, mit etwas Erfahrunf kannst Du ja dann auf die DEV umsteigen.

---

<div class="post-metadata">

**Author:** ![NickJ](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@NickJ](https://forum.shopware.com/u/NickJ)\
**Post date:** [19. Oktober 2021 um 08:22 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/12 "2021-10-19T08:22:47Z")

</div>

Vielen Dank, ich habe es gerade ausprobiert und es funktioniert. Habe keinen memory\_limit error gehabt. Ist zwar nicht die optimalste Lösung aber zu einem späteren Zeitpunkt werde ich auf DEV umsteigen.

---

<div class="post-metadata">

**Author:** ![NickJ](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@NickJ](https://forum.shopware.com/u/NickJ)\
**Post date:** [19. Oktober 2021 um 08:31 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/13 "2021-10-19T08:31:08Z")

</div>

Ich habe noch eine letzte Frage und zwar habe ich nun keinen Platform Ordner. Soll ich den von Git holen oder gibt es da einen anderen Dateizweig?

---

<div class="post-metadata">

**Author:** ![moschadr](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@moschadr](https://forum.shopware.com/u/moschadr)\
**Post date:** [19. Oktober 2021 um 08:38 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/14 "2021-10-19T08:38:14Z")

</div>

Platform ist nicht erforderlich. Die Verzeichnisse und Files befinden sich im vendor-Dir

---

<div class="post-metadata">

**Author:** ![NickJ](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@NickJ](https://forum.shopware.com/u/NickJ)\
**Post date:** [13. Oktober 2022 um 21:29 UTC](https://forum.shopware.com/t/error-allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-221184-bytes/90945/15 "2022-10-13T21:29:02Z")

</div>

Ich habe nach einer längeren Pause und meiner Rückkehr zu Shopware dieses Problem gelöst. Vielleicht ist die Lösung nicht optimal. Nach Errortracing und langem Herumpröbeln war es anscheinend ein Problem mit CompiledUrlMatcherDumper.php in dieser Datei habe ich temporär das Memorylimit erhöht. (shopware/development/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherDumper.php)  
Auf Zeile 28 habe ich knallhart ini\_set(‚memory\_limit‘, ‚1024M‘); reingeschrieben und damit hat die Installation funktioniert. Nach der Installation habe ich die Zeile entfernt und keine Probleme mehr gehabt.
