Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty 7 memory leak

I am running Jetty 7.1.4.v20100610 on a Linux server with this JVM: Java HotSpot(TM) 64-Bit Server VM; 1.6.0; 1.6.0-b105; mixed mode

The server will run for a period of time and then run out of memory and crash. I have bumped the number of file handles so the server can run longer and I could get some heap dumps to compare. What I have found is literally millions of byte arrays hanging around in memory. As you can see below, it appears to be related to SSL. I know I am on an older JVM so it could be a JVM issue but, I found this which could indicate that maybe Jetty is not shutting things
down properly:

http://stackoverflow.com/questions/1623676/suns-java-ssl-implementation-is-leaking-memory

Not quite my exact situation but similar.  Can anyone provide some insight?

Hoping the server can last until a reboot tonight....
Tony




Paths from "GC Roots" to "Object byte[] #00002AAAB9C201E0"

+-----------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+----------------+
| Name | Retained Size | Shallow Size |
+-----------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+----------------+
| +---byte[16665] | 16,688 | 16,688 | | | | | | | +---buf of com.sun.net.ssl.internal.ssl.EngineInputRecord | 17,792 | 96 | | | | | | | +---inputRecord of com.sun.net.ssl.internal.ssl.SSLEngineImpl | 29,496 | 192 | | | | | | | +---_engine of org.eclipse.jetty.io.nio.SslSelectChannelEndPoint | 53,568 | 184 | | | | | | | +---attachment of sun.nio.ch.SelectionKeyImpl | 64 | 64 | | | | | | | +---value of java.util.HashMap$Entry | 72 | 48 | | | | | | | +---[506] of java.util.HashMap$Entry[1024] | 50,696 | 8,216 | | | | | | | +---table of java.util.HashMap | 50,760 | 64 | | | | | | | +---fdToKey of sun.nio.ch.EPollSelectorImpl [Stack Local] | 51,184 | 120 | | | | | | | +---<local variable> of java.lang.Thread [Stack Local, Thread] "qtp1891328597-44 - Acceptor0 c@xxxxxxxxxxxxxxxxxxxxxxxxxx:443" | 1,216 | 168 |
+-----------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+----------------+

This message (and any associated files) is intended only for the use of the individual or entity to which it is addressed and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not the intended recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.


Back to the top