# Thumbnail-Generator: Allowed memory size exhausted

**URL:** <https://forum.shopware.com/t/thumbnail-generator-allowed-memory-size-exhausted/56234>\
**Category:** Allgemein\
**Created:** [6. November 2018 um 07:47 UTC](https://forum.shopware.com/t/thumbnail-generator-allowed-memory-size-exhausted/56234 "2018-11-06T07:47:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FloC3](https://avatars.discourse-cdn.com/v4/letter/f/838e76/32.png) [@FloC3](https://forum.shopware.com/u/FloC3)\
**Post date:** [6. November 2018 um 07:47 UTC](https://forum.shopware.com/t/thumbnail-generator-allowed-memory-size-exhausted/56234/1 "2018-11-06T07:47:51Z")

</div>

ich habe einen Cronjob den ich per Console CLI ausführe. ich bekomme diesen Fehler von Zeit zu Zeit

```
 Allowed memory size of 104857600 bytes exhausted (tried to allocate 10997761 bytes) in /xx/shopware/engine/Shopware/Components/Thumbnail/Generator/Basic.php on line 222

```

was genau läuft da schief? ist das Bild zu groß um ein Thumbnail zu generieren?

Shopware zeigt mir mein&nbsp;memory\_limit mit 512M an

---

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [6. November 2018 um 08:04 UTC](https://forum.shopware.com/t/thumbnail-generator-allowed-memory-size-exhausted/56234/2 "2018-11-06T08:04:10Z")

</div>

Naja komm halt auch auf deine Bilder an, Thumbnails usw.

Wenn du riesen große Bilder hast, mehrere Thumbnails usw. kann der Prozess natürlich schon Speicher verschlingen.

Setz doch testweise einfach mal das memory\_limit noch höher auf 1024M oder sowas.

---

<div class="post-metadata">

**Author:** ![TimmeHosting](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timmehosting/32/15580_2.png) [@TimmeHosting](https://forum.shopware.com/u/TimmeHosting)\
**Post date:** [6. November 2018 um 09:12 UTC](https://forum.shopware.com/t/thumbnail-generator-allowed-memory-size-exhausted/56234/3 "2018-11-06T09:12:04Z")

</div>

Du kannst das Memory-Limit auf der Kommandozeile auch durch den Switch -d erhöhen: [https://cristian-radulescu.ro/php-cli-increase-memory-limit/](https://cristian-radulescu.ro/php-cli-increase-memory-limit/)

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/385eaa628505df573ebf33722f780335f53ac1b2.png)

Timme Hosting - schnelles nginx-Hosting

[www.timmehosting.de](https://timmehosting.de/)
