Upon launching our new Scala service, we faced memory-related issues: excessive memory usage and intermittent Out of Memory errors, indicating substantial underlying inefficiencies.
Using Jxray for analysis revealed that underutilized Netty buffers significantly contributed to memory bloat. Transitioning to the correct buffer size helped reduce memory consumption significantly.
Datadog's memory leak detection highlighted an ongoing issue where old generation objects were not being cleared. This indicated a persistent heap problem needing further investigation.
We discovered that the default settings of the Jsoniter library led to inefficient buffer management, creating large amounts of temporary garbage and humongous objects.
Collection
[
|
...
]