limit debugging memory usage by total size, not just the total number of requests logged

Description

Currently you can only specify the maximum number of requests for debugging logging, but the so far unaddressed issues with debugging in 5.3 (all scopes being saved in the debugging logs) means enabling debugging can quickly lead to Lucee running out of memory.

To avoid this, it would be sensible to be able to set a total memory limit for debugging requests, i.e. only allow up to 100mb to be used for logging debugging logs

Environment

None

Activity

Show:

Zac Spitzer 9 September 2019 at 13:38

ah, so the BIF sizeOf() function really isn’t reliable? i know it’s marked as experimental

since the scope logging got backed out, I haven’t seen this being a problem, but I do like the idea of storing it on disk or as a blob in datasource instead of memory.

being able to set a threshold so that only slow requests get log out would be useful, esp in production, often the interesting (problematic) stuff gets purged from the debug cache due to boring little requests

Michael Offner 9 September 2019 at 13:20

we should may consider not to chache

to reduce the data cached or/and store it on the file system.

Michael Offner 9 September 2019 at 13:19

sadly it is not that easy, you cannot messure the memory used by a variable, but we have to find a solution for this

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 6 December 2018 at 11:15
Updated 23 October 2019 at 11:31

Flag notifications