Tue. May 12th, 2026

Solving the Mystery: Why Java RSS Grows in Docker on M1 Macs


The Problem

You’re running a Java application in a Docker container on your M1 Mac. Everything works fine, but you notice something strange: The resident set size (RSS) keeps growing, even though your heap usage is stable. After hours of investigation, you find mysterious rwxp memory regions, each exactly 128 MB, accumulating in your process memory map.

What’s causing this? Is it a memory leak? A JVM bug? Something else entirely?

By uttu

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *