Ticket #58 (closed Bug: Won't Fix)
Memory leak in connection.
| Reported by: | chameleon | Owned by: | steven |
|---|---|---|---|
| Priority: | Major | Component: | App Server |
| Version: | Keywords: | ||
| Cc: |
Description
I've had this problem for a long time now since first using Red5. After a random duration (usually within 2 hours with server at full load) the heap will grow rapidly and the garbage collection routines are unable to reduce the memory even after a full collection. This continues for about a minute until the server throws out of memory exceptions and quits working. I believe the issue to be related to one or more connections that continues to somehow consume resources. One thing that leads to me to think this is the random nature and having it suddenly occur rather than building up over time as it would if it was a server wide issue. Also if I try to issue a disconnect to every connection on the server one or more will block on the disconnect() call indefinitely.
The problem use to be more sporatic under lighter loads but now with a full load of maybe 5 connections per second sustaining an average of 200 connection constantly it happens much more often. That too kind of indicates it's likely one or more single connections causing it. I'll report anything else I can find but I've been trying to track this down for a long time now without much luck. So you know as well the server is used almost solely for VOD content and a couple live streams.
