Closed paslandau closed 5 years ago
Hi @paslandau. The --memory-usage
option needs to know where the alloc_globals
symbol is. This symbol is not exposed via ZEND_API
in php-src so it will only be there if your PHP binary was built with debug symbols. Maybe the ppa you are using has a version with debug symbols? If not you can compile PHP from source. I'll add this to the docs.
Any other alternative than rebuilding php?
Hi!
We using phpspy with pyroscope and all works amazing. But now we want to trace memory consumption for further optimisation hints. And same issue appeared.
I installed additional debug symbols packages but it does not solved the issue.
https://github.com/oerdnj/deb.sury.org/wiki/Debugging-Symbols:
apt install php8.2-fpm-dbgsym php8.2-cli-dbgsym php8.2-common-dbgsym
Also there is no official docker images with debug symbols: https://github.com/docker-library/php/issues/879
Maybe its worth implement another less complicated way of collecting memory stats, like cat /proc/%PID%/statm
?
Hey,
I'm trying to use the
-m
flag on the following test script:running as a background process but I get the following error:
Full steps (running as
root
):Using https://github.com/phusion/baseimage-docker to test