Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a memory limit #901

Open
rgasch opened this issue Mar 31, 2024 · 0 comments
Open

Implement a memory limit #901

rgasch opened this issue Mar 31, 2024 · 0 comments

Comments

@rgasch
Copy link

rgasch commented Mar 31, 2024

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:

  • spatie/ray package version: 1.41.1
  • spatie/laravel-ray package version (if applicable): 1.35.1

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):

  • OS: Ubuntu (KUbuntu)
  • Version 23.04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant