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:
Michael Offner
September 9, 2019, 1:19 PM

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

Michael Offner
September 9, 2019, 1:20 PM

we should may consider not to chache

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

Zac Spitzer
September 9, 2019, 1:38 PM

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

Assignee

Unassigned

Reporter

Zac Spitzer

Priority

Critical

Labels

Fix versions

None

Affects versions

Configure