{"action":"created","issue":{"url":"https://api.github.com/repos/soulseekah/wptop/issues/2","labels_url":"https://api.github.com/repos/soulseekah/wptop/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/soulseekah/wptop/issues/2/comments","events_url":"https://api.github.com/repos/soulseekah/wptop/issues/2/events","html_url":"https://github.com/soulseekah/wptop/issues/2","id":59793250,"number":2,"title":"Honour disabling yourself when disabled in the Wordpress dashboard","user":{"login":"leehambley","id":18952,"avatar_url":"https://avatars.githubusercontent.com/u/18952?v=3","gravatar_id":"","url":"https://api.github.com/users/leehambley","html_url":"https://github.com/leehambley","followers_url":"https://api.github.com/users/leehambley/followers","following_url":"https://api.github.com/users/leehambley/following{/other_user}","gists_url":"https://api.github.com/users/leehambley/gists{/gist_id}","starred_url":"https://api.github.com/users/leehambley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leehambley/subscriptions","organizations_url":"https://api.github.com/users/leehambley/orgs","repos_url":"https://api.github.com/users/leehambley/repos","events_url":"https://api.github.com/users/leehambley/events{/privacy}","received_events_url":"https://api.github.com/users/leehambley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/soulseekah/wptop/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"soulseekah","id":685880,"avatar_url":"https://avatars.githubusercontent.com/u/685880?v=3","gravatar_id":"","url":"https://api.github.com/users/soulseekah","html_url":"https://github.com/soulseekah","followers_url":"https://api.github.com/users/soulseekah/followers","following_url":"https://api.github.com/users/soulseekah/following{/other_user}","gists_url":"https://api.github.com/users/soulseekah/gists{/gist_id}","starred_url":"https://api.github.com/users/soulseekah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soulseekah/subscriptions","organizations_url":"https://api.github.com/users/soulseekah/orgs","repos_url":"https://api.github.com/users/soulseekah/repos","events_url":"https://api.github.com/users/soulseekah/events{/privacy}","received_events_url":"https://api.github.com/users/soulseekah/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-03-04T12:50:04Z","updated_at":"2015-03-04T13:05:58Z","closed_at":null,"body":"I recently had to fix a customer machine where they'd been running all their web requests with full profiling enabled (`wptop_enable()`) . That's really more their problem from oversight in development/ops than it is a problem of the plugins. \r\n\r\nPerhaps you could raise a fatal error if profiling is started, but the plugin is disabled, I'm not sure. \r\n\r\nI'm actually not a Wordpress or PHP developer, just a guy who got lucky solving someone's server hosting hell for them."},"comment":{"url":"https://api.github.com/repos/soulseekah/wptop/issues/comments/77153988","html_url":"https://github.com/soulseekah/wptop/issues/2#issuecomment-77153988","issue_url":"https://api.github.com/repos/soulseekah/wptop/issues/2","id":77153988,"user":{"login":"leehambley","id":18952,"avatar_url":"https://avatars.githubusercontent.com/u/18952?v=3","gravatar_id":"","url":"https://api.github.com/users/leehambley","html_url":"https://github.com/leehambley","followers_url":"https://api.github.com/users/leehambley/followers","following_url":"https://api.github.com/users/leehambley/following{/other_user}","gists_url":"https://api.github.com/users/leehambley/gists{/gist_id}","starred_url":"https://api.github.com/users/leehambley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leehambley/subscriptions","organizations_url":"https://api.github.com/users/leehambley/orgs","repos_url":"https://api.github.com/users/leehambley/repos","events_url":"https://api.github.com/users/leehambley/events{/privacy}","received_events_url":"https://api.github.com/users/leehambley/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T13:05:58Z","updated_at":"2015-03-04T13:05:58Z","body":"That's exactly what they'd done, so it was causing pretty hellish problems. They were surprised that it was still running \"but we disabled that weeks ago!?\", and told me categorically that they had no profiling plugins running.\r\n\r\nThe smoking gun was that I couldn't actually `strace` the processes, at first because of the dynamic pooling … then with a fixed php-fpm pool it was easy to see they were spending the majority of their time in `getrusage`, I couldn't see the sample frequency in the code but more than 99% of the samples of the process according to `strace` were in `getrusage`. I spent some time looking around for why, and not being a PHP guy, concluded that it must be something about PHP-FPM master/slave resource management… since… as they'd said, they weren't profiling anything (also google searches for `php getrusage` lead to nothing but something about tuning a PHP system that talked to an Oracale database, which was spitting out too much getrusage).\r\n\r\nLong story short, no data was being logged, and we found `wptop_enable()` in `wp-config.php`. I'm mostly writing the issue so that the next poor soul who has to debug it might stumble upon this."}}