NoiseByNorthwest / php-spx

A simple & straight-to-the-point PHP profiling extension with its built-in web UI
GNU General Public License v3.0
2.14k stars 83 forks source link

apache + mod_php IO usage not working #207

Open fchastanet opened 2 years ago

fchastanet commented 2 years ago

Hello,

I see this issue where you provided a solution for php-fpm. But here I'm use php-spx to track IO usage of web page and I'm using apache + mod_php.

Is there a particular configuration you recommend for this case ?

Kind regards, PS: Thanks for your wonderful, it helps me to find a lot of performance issues

NoiseByNorthwest commented 2 years ago

Hi,

Are you sure that you are experiencing the same issue as the one described in #89 ?

If it is the case I however don't know how to fix it with mod_php. You should try to ask on stackoverflow how to configure mod_php in order to allow a php script to read a file within /proc/self/.

Athorcis commented 1 year ago

I found a way to enable IO profiling: https://dom.as/2009/09/26/getting-apache-core-dumps-in-linux/ You only need to compile the apache module in the link above and then enable it. It uses the same kernel setting that is used by php-fpm process.dumpable: PR_SET_DUMPABLE On Debian, the apxs command is available through the apache2-dev package