# Excessive memory usage for PHP-FPM

**URL:** <https://community.dynatrace.com/t/excessive-memory-usage-for-php-fpm/22566>\
**Category:** Container platforms\
**Tags:** php, kubernetes\
**Created:** [November 18, 2019, 3:05am UTC](https://community.dynatrace.com/t/excessive-memory-usage-for-php-fpm/22566 "2019-11-18T03:05:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![enricostahn](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/enricostahn/32/4095_2.png) [@enricostahn](https://community.dynatrace.com/u/enricostahn)\
**Post date:** [November 18, 2019, 3:05am UTC](https://community.dynatrace.com/t/excessive-memory-usage-for-php-fpm/22566/1 "2019-11-18T03:05:33Z")

</div>

What is the memory overhead added by Dynatrace? Just looking at Nginx and now PHP-FPM it seems fairly excessive.

I have just enabled for PHP-FPM and memory consumption went from 160ish to 400ish.

 ![22472-1574046288147.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/38fe5433866965724188a7a8ed7e38ced0f516cd.png)

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [November 18, 2019, 7:34am UTC](https://community.dynatrace.com/t/excessive-memory-usage-for-php-fpm/22566/2 "2019-11-18T07:34:07Z")

</div>

It should not be like that. I suggest opening support ticket for this case.

Sebastian

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [November 18, 2019, 7:54am UTC](https://community.dynatrace.com/t/excessive-memory-usage-for-php-fpm/22566/3 "2019-11-18T07:54:39Z")

</div>

Around 200MB increase should be OK according to the [docs](https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-oneagent/requirements/memory-requirements/#about-memory-demand-variance). Do you have any request attributes defined or SQL bind variables capture turned on? Have you increased the limit of new purepaths to be caputred from the default (1000/minute)? (Dynatrace Managed only)

There are several cases when the footprint becomes slightly larger.

---

<div class="post-metadata">

**Author:** ![enricostahn](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/enricostahn/32/4095_2.png) [@enricostahn](https://community.dynatrace.com/u/enricostahn)\
**Post date:** [November 18, 2019, 9:08pm UTC](https://community.dynatrace.com/t/excessive-memory-usage-for-php-fpm/22566/4 "2019-11-18T21:08:51Z")

</div>

[@Julius L.](https://answers.dynatrace.com/users/16467/view.html) I have not adjusted any thresholds. It’s a fairly new installation with none of the adjustments you mentioned.

We had the same issues with Nginx. The root-cause was that Nginx has too many workers. After reducing the workers to 1 the memory overhead became a lot less.

Unfortunately we don’t have the same luxury with PHP-FPM.

I will keep monitoring it over the next week and report back.
