paint-brush
Reducing Rails Memory Use on Amazon Linux with Jemalloc by@jalexander
4,407 reads
4,407 reads

Reducing Rails Memory Use on Amazon Linux with Jemalloc

by James AlexanderAugust 24th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Ruby on Rails was facing a major memory issue with its production Ruby on rails. The system was a monolithic GraphQL API designed to handle routine business logic and consume various cloud services. Even during lulls in user traffic, our system's memory consumption continued rising, reaching levels equating to several GB. We tried a few "quick fixes" in our dev environment, including automatic reboots and automatic re-deployments, but this too was deemed impractical for use in production. No single block of code seemed to be responsible for driving memory up so high, but we decided to dig a little deeper.
featured image - Reducing Rails Memory Use on Amazon Linux with Jemalloc
James Alexander HackerNoon profile picture
James Alexander

James Alexander

@jalexander

L O A D I N G
. . . comments & more!

About Author

James Alexander HackerNoon profile picture
James Alexander@jalexander

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite