sentry-php icon indicating copy to clipboard operation
sentry-php copied to clipboard

Possibility to implement memory limit/hooks for cli / infinite commands

Open fliespl opened this issue 1 year ago • 2 comments

Problem Statement

In infinite commands, excimer will break with memory limit after some time. Haven't found a way to stop it (either after memory being close to limit or after some time).

https://ss.codeone.pl/ss-2024-03-02-21-25-50-1709411150-DN74H5Py.png

Solution Brainstorm

Maybe a timeout limit? Or possibility to use hooks (i.e. symfony) to create new session.

fliespl avatar Mar 02 '24 20:03 fliespl

I would not recommend profiling long-running processes, as Sentry only supports profiles with a duration of 30s (for now). So I suggest you disable Excimer in your cli's php.ini.

cleptric avatar Mar 02 '24 21:03 cleptric

@cleptric thats what I have already done, but long running tasks are only a minor part of all cli tasks hence feature request.

fliespl avatar Mar 02 '24 22:03 fliespl