Your environment
ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]
rdbg -v: rdbg 1.7.1
Describe the bug
After shipping a Rails app with the debug gem bundled and required via debug/open_nonstop, memory usage grew with each request.

Expected behavior
Memory is not retained during the request cycle
Our goal is to have the Rails process ready for a debugger process to attach in staging environments.
Do you have an idea of what memory might be allocated and retained across requests? Can this be worked around?