igorkasyanchuk / rails_performance

Monitor performance of you Rails applications (self-hosted and free)
https://www.railsjazz.com/
MIT License
950 stars 53 forks source link

handle case when redis is out of memory - Redis::OutOfMemoryError #46

Closed emish89 closed 1 year ago

emish89 commented 1 year ago

Hi all, When redis is out of memory the rails performance gem seems giving an unhandled exception that break the api calls. The exception is the Redis::OutOfMemoryError but I don't have any other info. I can reproduce it filling the whole cache and trying to make a call. thanks a lot for the help

igorkasyanchuk commented 1 year ago

I suggest reducing config.duration = 4.hours which is captured (or upgrade to more RAM). Nothing else can't be done