Reducing Rails Memory Use on Amazon Linux with Jemalloc by@jalexander
846 reads

Reducing Rails Memory Use on Amazon Linux with Jemalloc

tldt arrow
Read on Terminal Reader🖨️

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

@jalexander

James Alexander

About @jalexander
LEARN MORE ABOUT @JALEXANDER'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa