Carl
Carl

Reputation: 41

Memory leak in Ruby on Rails app as garbage collector activity spikes

We're seeing an increase in memory once an hour, coinciding with the Ruby garbage collector as can be seen in the screenshot linked to below. The number of requests per time unit was almost constant throughout the memory increase (~1300rpm).

Memory seems stable except for the garbage collector runs, usually fluctuating by a few megabytes in either direction around a fairly stable average. Debugging the app locally using profiling tools such as memory profiler or dumping the heap space using Objectspace allocation tracing didn't conclusively identify any memory leaks.

Question:

How to find out if it has something to do with the garbage collector not working properly?

enter image description here

Upvotes: 4

Views: 591

Answers (0)

Related Questions