Skip to content
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

apache + mod_php IO usage not working #207

Open
fchastanet opened this issue Nov 24, 2022 · 2 comments
Open

apache + mod_php IO usage not working #207

fchastanet opened this issue Nov 24, 2022 · 2 comments

Comments

@fchastanet
Copy link

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
Copy link
Owner

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
Copy link
Contributor

Athorcis commented Nov 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants