spatie / ray

Debug with Ray to fix problems faster
https://myray.app
MIT License
572 stars 101 forks source link

Implement a memory limit #901

Closed rgasch closed 2 months ago

rgasch commented 6 months ago

Describe the bug I recently accidentally had an infinite for loop that pumped gigabytes of debug data to ray (yes, it's my fault). The problem with this is, that it consumed all my system's memory and froze my machine so that I had to hard-reset it. I understand that this is not a normal usage pattern, but it would be nice if ray would free up memory after a certain point to gracefully deal with such scenarios.

BTW, realize that there is a history limit setting, but in this case this didn't seem to prevent the issue (again, my fault due to the amount of data I was sending to ray).

Versions 2.7.5

You can use composer show to get the version numbers of:

PHP version: 10.39.0

To Reproduce Steps to reproduce the behavior: 1) Write an infinite loop that pumps lots of data to ray

Expected behavior Ray should not eat all the system memory

Desktop (please complete the following information):

spatie-bot commented 2 months ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.