igorkasyanchuk / rails_performance

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

When there is a lot of requests, "Recent Requests" page stuck while loading on browser #49

Closed AliOsm closed 1 year ago

AliOsm commented 1 year ago

I was performing some load test on my website, and I submitted 2K requests on it. The Recent Requests tab stuck when I open it because of the huge list of requests it loads. How to configure the default number of requests it loads on the beginning?

igorkasyanchuk commented 1 year ago

Right now now way to do it. Good feature to implement in the future

AliOsm commented 1 year ago

Could you provide some code pointers so I can implement it and submit the PR?

igorkasyanchuk commented 1 year ago

Clone repo, start dummy app inside and run few requests, after that change code. I think you would need to add some "max_requests" value and just limit arrays to this size

igorkasyanchuk commented 1 year ago

try this version, has 2 new options. Implemented here https://github.com/igorkasyanchuk/rails_performance/pull/50

  # config.recent_requests_time_window = 60.minutes
  # config.recent_requests_limit = nil # or 1000

rails_performance-1.0.5.3.gem