Investigate notable increase in Rails memory use seen in performance tests
Our regular performance tests picked up a notable increase in memory use for Rails of several GB. In paticular this increase looks to have occurred in 16.2 onwards.
Memory increases were detected anecdotally at that time from other sources such as user reports but the increase is still happening today on the latest Nightly code even after some fixes were made as shown below:
16.4.0-pre 17b5ec6e2fb
(2023-08-31):
16.2.0
:
16.1.0
:
Of note:
- The
mean
is particularly relevant here. This notable memory increase lingers and "raises all ships". - The blue line here is the test end. This was relevant as I noticed that the memory continues to stay high well after the tests had finished.
- Anecdotally the endpoints that seem to cause the increase are related to File Blob downloads
Further background for this can be found here.
Marking as a severity2 as the memory increase here is substantial.
Edited by Grant Young