It seems like glibc's malloc (which is Ruby's default) doesn't play too nice wit...

@hexaitos@social.jnpw.net

It seems like glibc's malloc (which is Ruby's default) doesn't play too nice with several Puma workers and YJIT (though I suspect the workers especially are the issue) :alice_nervous: My hosted instance of Theriodex went up to around 1.6 GB of total memory usage in like… twelve hours which… isn't great.

I switched over to jemalloc which so far seems to have helped at least so far. Going to have to run it for a bit longer to make sure. I hope at least it was just that and I don't have a memory leak elsewhere. The only things I changed since it started happening are adding the YJIT and the Puma workers! I did some local stress tests and never went above ~550 MB even with my 500 user Locust stress test. So I hope it's okay now!