arnaud-lb / php-memory-profiler

Memory profiler for PHP. Helps finding memory leaks in PHP scripts.
MIT License
858 stars 51 forks source link

No dump file #90

Closed duzenko closed 1 year ago

duzenko commented 1 year ago

Description

The following code:

TBD

Resulted in this output:

2023.06.22 13:04:43 /admin?MEMPROF_PROFILE=dump_on_limit <- null Error
  Allowed memory size of 134217728 bytes exhausted (tried to allocate 5558768 bytes) (memprof dumped to /tmp/memprof.callgrind.1769400575290790)
  E4/C/Error.php:93 C_Error.eH()
  <null>:<null> C_Error.eHF()
  50949 vr8thi7ndg7vmnaia6apqumoig

^C
root@36376:/var/www/vhosts/36376.hostserv.eu# date; ls /tmp/ -l
Thu 22 Jun 2023 01:04:52 PM CEST
total 40
drwx------ 2 root      root   4096 Jun 13 13:53 mc-root
drwx------ 2 sysuser_e psacln 4096 Jun 13 14:13 mc-sysuser_e
drwxr-xr-x 3 root      root   4096 Jun 22 12:56 pear
-rw------- 1 root      root      0 Jun 14 06:25 psa-installer.lock
drwx------ 3 root      root   4096 Jun 13 11:29 systemd-private-ad26aa8306ff41eab54734af78b09ea2-apache2.service-p6aSog
drwx------ 3 root      root   4096 Jun 13 11:29 systemd-private-ad26aa8306ff41eab54734af78b09ea2-dovecot.service-hlXYSf
drwx------ 3 root      root   4096 Jun 13 11:29 systemd-private-ad26aa8306ff41eab54734af78b09ea2-grafana-server.service-V5gnlg
drwx------ 3 root      root   4096 Jun 13 11:29 systemd-private-ad26aa8306ff41eab54734af78b09ea2-ntp.service-sJyWVe
drwx------ 3 root      root   4096 Jun 13 11:29 systemd-private-ad26aa8306ff41eab54734af78b09ea2-plesk-php82-fpm.service-lup5vj
drwx------ 3 root      root   4096 Jun 13 11:29 systemd-private-ad26aa8306ff41eab54734af78b09ea2-systemd-logind.service-WefL2e
drwx------ 3 root      root   4096 Jun 16 06:26 systemd-private-ad26aa8306ff41eab54734af78b09ea2-systemd-resolved.service-9bVUog
root@36376:/var/www/vhosts/36376.hostserv.eu#

But I expected this output instead:

dump file shows in the temp directory

php-memprof Version

memprof-3.0.2

PHP Version

8.2.7

Operating System

Ubuntu 20

duzenko commented 1 year ago

False alarm

root@36376:/# find . -name "memprof*"
./tmp/systemd-private-ad26aa8306ff41eab54734af78b09ea2-plesk-php82-fpm.service-lup5vj/tmp/memprof.callgrind.1769400779322728
./tmp/systemd-private-ad26aa8306ff41eab54734af78b09ea2-plesk-php82-fpm.service-lup5vj/tmp/memprof.callgrind.1769400443734916
./tmp/systemd-private-ad26aa8306ff41eab54734af78b09ea2-plesk-php82-fpm.service-lup5vj/tmp/memprof.callgrind.1769400575290790