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

Reducing Rails Memory Use on Amazon Linux with Jemalloc

by James Alexander6mAugust 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.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Reducing Rails Memory Use on Amazon Linux with Jemalloc
James Alexander HackerNoon profile picture
James Alexander

James Alexander

@jalexander

Full Stack Developer

About @jalexander
LEARN MORE ABOUT @JALEXANDER'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

James Alexander HackerNoon profile picture
James Alexander@jalexander
Full Stack Developer

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