Server Timeout when debug log gets too large
-
Soon after installing this plugin, my server went down, reporting 523 timeouts for about 30 minutes.
I had been debugging a low-level caching function that is called frequently, and generated >20MB debug logs in a matter of minutes.
When I disabled the plugin by renaming the plugin folder via FTP, suddenly my site worked again. I re-enabled and disabled the plugin a few times in this manner. It reliably made my site timeout when it was enabled. I deleted the 20MB debug.log, and then everything was suddenly fine, even with the plugin enabled.
With a few more tests, the debug.log ballooned to over 20MB again, and the site started timing out again. Disabling the plugin or deleting the debug.log file fixed it.
My php-fpm slow log is full of entries like these from around that time:[05-Sep-2025 19:16:03] [pool 17002707405366737] pid 950258
script_filename = /path/to/WordPress/wp-admin/tools.php
[0x00007f45e8c149b0] str_replace() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1202
[0x00007f45e8c146c0] get_processed_entries() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1521
[0x00007f45e8c14580] get_entries_datatable() /path/to/WordPress/wp-content/plugins/debug-log-manager/bootstrap.php:266
[0x00007f45e8c144d0] create_main_page() /path/to/WordPress/wp-includes/class-wp-hook.php:324
[0x00007f45e8c143f0] apply_filters() /path/to/WordPress/wp-includes/class-wp-hook.php:348
[0x00007f45e8c14380] do_action() /path/to/WordPress/wp-includes/plugin.php:517
[0x00007f45e8c142a0] do_action() /path/to/WordPress/wp-admin/admin.php:260
[05-Sep-2025 19:18:17] [pool 17002707405366737] pid 950761
script_filename = /path/to/WordPress/wp-admin/tools.php
[0x00007f45e8c149b0] str_replace() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1202
[0x00007f45e8c146c0] get_processed_entries() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1521
[0x00007f45e8c14580] get_entries_datatable() /path/to/WordPress/wp-content/plugins/debug-log-manager/bootstrap.php:266
[0x00007f45e8c144d0] create_main_page() /path/to/WordPress/wp-includes/class-wp-hook.php:324
[0x00007f45e8c143f0] apply_filters() /path/to/WordPress/wp-includes/class-wp-hook.php:348
[0x00007f45e8c14380] do_action() /path/to/WordPress/wp-includes/plugin.php:517
[0x00007f45e8c142a0] do_action() /path/to/WordPress/wp-admin/admin.php:260
[05-Sep-2025 19:22:07] [pool 17002707405366737] pid 952179
script_filename = /path/to/WordPress/wp-admin/tools.php
[0x00007f45e8c149b0] str_replace() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1202
[0x00007f45e8c146c0] get_processed_entries() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1521
[0x00007f45e8c14580] get_entries_datatable() /path/to/WordPress/wp-content/plugins/debug-log-manager/bootstrap.php:266
[0x00007f45e8c144d0] create_main_page() /path/to/WordPress/wp-includes/class-wp-hook.php:324
[0x00007f45e8c143f0] apply_filters() /path/to/WordPress/wp-includes/class-wp-hook.php:348
[0x00007f45e8c14380] do_action() /path/to/WordPress/wp-includes/plugin.php:517
[0x00007f45e8c142a0] do_action() /path/to/WordPress/wp-admin/admin.php:260
[05-Sep-2025 19:22:31] [pool 17002707405366737] pid 951807
script_filename = /path/to/WordPress/wp-admin/index.php
[0x00007f45e8c148a0] str_replace() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1202
[0x00007f45e8c145b0] get_processed_entries() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1562
[0x00007f45e8c14470] get_dashboard_widget_entries() /path/to/WordPress/wp-content/plugins/debug-log-manager/bootstrap.php:352
[0x00007f45e8c143f0] get_dashboard_widget_entries() /path/to/WordPress/wp-admin/includes/template.php:1456
[0x00007f45e8c14220] do_meta_boxes() /path/to/WordPress/wp-admin/includes/dashboard.php:271
[0x00007f45e8c14190] wp_dashboard() /path/to/WordPress/wp-admin/index.php:204
[05-Sep-2025 19:24:45] [pool 17002707405366737] pid 952996
script_filename = /path/to/WordPress/wp-admin/admin-ajax.php
[0x00007f45e8c149b0] apply_filters() /path/to/WordPress/wp-includes/plugin.php:205
[0x00007f45e8c148b0] apply_filters() /path/to/WordPress/wp-includes/l10n.php:207
[0x00007f45e8c14810] translate() /path/to/WordPress/wp-includes/l10n.php:307
[0x00007f45e8c14790] __() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1393
[0x00007f45e8c144a0] get_processed_entries() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1443
[0x00007f45e8c14300] get_latest_entries() /path/to/WordPress/wp-includes/class-wp-hook.php:324
[0x00007f45e8c14220] apply_filters() /path/to/WordPress/wp-includes/class-wp-hook.php:348
[0x00007f45e8c141b0] do_action() /path/to/WordPress/wp-includes/plugin.php:517
[0x00007f45e8c140d0] do_action() /path/to/WordPress/wp-admin/admin-ajax.php:192
[05-Sep-2025 19:24:50] [pool 17002707405366737] pid 952648
script_filename = /path/to/WordPress/wp-admin/admin-ajax.php
[0x00007f45e8c14d30] {closure}() /path/to/WordPress/wp-includes/kses.php:1247
[0x00007f45e8c14cc0] array_filter() /path/to/WordPress/wp-includes/kses.php:1247
[0x00007f45e8c14b70] wp_kses_attr() /path/to/WordPress/wp-includes/kses.php:1194
[0x00007f45e8c14a50] wp_kses_split2() /path/to/WordPress/wp-includes/kses.php:1071
[0x00007f45e8c149c0] _wp_kses_split_callback() /path/to/WordPress/wp-includes/kses.php:1001
[0x00007f45e8c14940] preg_replace_callback() /path/to/WordPress/wp-includes/kses.php:1001
[0x00007f45e8c14890] wp_kses_split() /path/to/WordPress/wp-includes/kses.php:756
[0x00007f45e8c14800] wp_kses() /path/to/WordPress/wp-includes/kses.php:2234
[0x00007f45e8c14790] wp_kses_post() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1225
[0x00007f45e8c144a0] get_processed_entries() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1443
[0x00007f45e8c14300] get_latest_entries() /path/to/WordPress/wp-includes/class-wp-hook.php:324
[0x00007f45e8c14220] apply_filters() /path/to/WordPress/wp-includes/class-wp-hook.php:348
[0x00007f45e8c141b0] do_action() /path/to/WordPress/wp-includes/plugin.php:517
[0x00007f45e8c140d0] do_action() /path/to/WordPress/wp-admin/admin-ajax.php:192
[05-Sep-2025 19:24:56] [pool 17002707405366737] pid 952850
script_filename = /path/to/WordPress/wp-admin/admin-ajax.php
[0x00007f45e8c14790] str_replace() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1202
[0x00007f45e8c144a0] get_processed_entries() /path/to/WordPress/wp-content/plugins/debug-log-manager/classes/class-debug-log.php:1443
[0x00007f45e8c14300] get_latest_entries() /path/to/WordPress/wp-includes/class-wp-hook.php:324
[0x00007f45e8c14220] apply_filters() /path/to/WordPress/wp-includes/class-wp-hook.php:348
[0x00007f45e8c141b0] do_action() /path/to/WordPress/wp-includes/plugin.php:517
[0x00007f45e8c140d0] do_action() /path/to/WordPress/wp-admin/admin-ajax.php:192
The topic ‘Server Timeout when debug log gets too large’ is closed to new replies.