You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
Prologue: I've been load testing our app with Apache Bench and noticed that sometimes same test would stop for a few seconds and then continue, other time the throughput was pretty much exactly what I expected from Spray. It felt random and annoying as I want to guarantee median response time within acceptable limits.
Spent ages investigating locks in all the libraries the project is using, but I seem to have tracked it down to random and long GC pauses. So I made a reproducible (I hope) example - it's very simple, really, so I guess I'm doing something exceptionally stupid.
Not sure my case is the same with you. I have a Spray-can reverse proxy service and observed it has memory leaks. In my case, it's the akka memory leaks: akka/akka#19216
And in my test case, there's heavy load of the akka system.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Prologue: I've been load testing our app with Apache Bench and noticed that sometimes same test would stop for a few seconds and then continue, other time the throughput was pretty much exactly what I expected from Spray. It felt random and annoying as I want to guarantee median response time within acceptable limits.
Spent ages investigating locks in all the libraries the project is using, but I seem to have tracked it down to random and long GC pauses. So I made a reproducible (I hope) example - it's very simple, really, so I guess I'm doing something exceptionally stupid.
Full example is here: https://github.com/keynmol/spray-test
The problem is that without sending any requests to the server the memory consumption keeps growing:
And the top heap histogram looks like this:
char[] and byte[] were visibly growing while I was taking the screenshot.
Any help would be appreciated, cheers.
The text was updated successfully, but these errors were encountered: