-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with php-fpm #108
Comments
Hello, thanks for the report. From the error it sounds like phpspy is having trouble locating the php-fpm binary. It is looking for |
Hello, here is the output:
And path I think it is connected with php-fpm configuration. But for php-fpm
|
Not sure if you made a typo, but phpspy will look for the binary at I see the following note in procfs man page which might be relevant? Wild guess.
Can you provide more details about your setup so I can try to reproduce? Thanks. |
Sorry for long answer. I've made docker-compose.yml for reproducing this issue: https://github.com/akademic/phpspy-php-fpm-test There are two processes: |
The process is chrooted, so @adsr |
Hi! I ve got similar issue: Output > ./bin/phpspy --max-depth=60 --time-limit-ms=59000 --threads=8 -P '-x "php-fpm8.0"'
popen_read_line: No stdout; cmd=objdump -p /proc/2007773/root//usr/sbin/php-fpm8.0 | awk '/LOAD/{print $5; exit}'
get_php_base_addr: Failed to get virt_addr
sh: 1: objdump: not found
popen_read_line: No stdout; cmd=objdump -p /proc/742/root//usr/sbin/php-fpm8.0 | awk '/LOAD/{print $5; exit}'
get_php_base_addr: Failed to get virt_addr PHP Version PHP 8.0.13 (cli) (built: Nov 19 2021 06:34:49) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.13, Copyright (c) Zend Technologies
with Zend OPcache v8.0.13, Copyright (c), by Zend Technologies OS version: Ubuntu 20.04 in Docker root@88f9a31df65d /zoon/zprof$ uname -a
Linux 88f9a31df65d 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Is there any solution? How to trace php-fpm? |
Hi @xtrime-ru, I think if you install |
Thanks! |
Hi. I've built binary from git master 7e0b062.
Trying to inspect my php-fpm process, but it fails.
Output:
PHP version:
OS version:
Any suggestions?
The text was updated successfully, but these errors were encountered: