1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00
phorge-phorge/src/applications/config
epriestley cae59d8345 Add an option to make it easier to debug page hangs
Summary:
Fixes T6044. We've had two cases (both the same install, coincidentally) where pages got hung doing too much data fetching.

When pages hang, we don't get a useful stack trace out of them, since nginx, php-fpm, or PHP eventually terminates things in a non-useful way without any diagnostic information.

The second time (the recent Macros issue) I was able to walk the install through removing limits on nginx, php-fpm, php, and eventually getting a profile by letting the page run for several minutes until the request completed. However, this install is exceptionally technically proficient and this was still a big pain for everyone, and this approach would not have worked if the page actually looped rather than just taking a long time.

Provide `debug.time-limit`, which should give us a better tool for reacting to this situation: by setting it to a small value (like 10), we'll kill the page after 10 seconds with a trace, before nginx/php-fpm/php/etc can kill it uselessly. Hopefully that will be enough information to find the issue (generally, getting a trace has been 95% of the problem in the two cases we've encountered).

Test Plan: Set this option to `3` and added a sleep loop, saw a termination after 3 seconds with a useful trace.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: csilvers, joshuaspence, epriestley

Maniphest Tasks: T6044

Differential Revision: https://secure.phabricator.com/D10465
2014-09-11 06:28:21 -07:00
..
application Implement the getName method in PhabricatorApplication subclasses 2014-07-23 23:52:50 +10:00
check Reword daemon configuration issue in response to user issues 2014-09-05 12:27:20 -07:00
controller Make it easier to ignore setup issues 2014-09-05 12:26:58 -07:00
custom Update callsites of phutil_json_decode. 2014-06-21 00:39:37 +10:00
editor Modularize mail tags 2014-08-12 12:28:41 -07:00
exception Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
issue Add a configuration warning when memory_limit will limit file uploads 2014-09-04 12:48:34 -07:00
json Mask remaining config values, and implement set type 2013-01-16 15:06:07 -08:00
management Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
option Add an option to make it easier to debug page hangs 2014-09-11 06:28:21 -07:00
phid Rename PHIDType classes 2014-07-24 08:05:46 +10:00
query Rename PhabricatorApplication subclasses 2014-07-23 10:03:09 +10:00
response Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
storage Rename PHIDType classes 2014-07-24 08:05:46 +10:00
view Make it easier to ignore setup issues 2014-09-05 12:26:58 -07:00