WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Java Core due to excessive SSLSocketImpl instances

    Posted 04/25/13 02:37 PM
    We are facing a scenario where in rare instances Websphere cores due to OutOfMemory error.  When we analyze the heap we see thousands of instances of SSLSocketImpl taking up the vast majority of available memory. 

    Who is creating these SSLSocketImpl instances?
    Why are they not getting cleaned up?

    System:
    Websphere 7
    We run with two clones. 
    We use EHCache for cahing across the clones. 
    DB2 database

    Any tips on why this might be happening or debugging strategies to determine the source of the SSLSocketImpl instances is appreciated.


  • 2.  Java Core due to excessive SSLSocketImpl instances

    Posted 04/25/13 08:10 PM
    My guess is you are having a backend system such as Web Service Host, Database or other EIS systems and you are taking to it over SSL. It is possible that the connections to those backend systems are NOT getting freed up for whatever reason. When you see the heap dump, do a 'netstat -an' on your server and see if you can find excessive connections to a particluar host.


  • 3.  Java Core due to excessive SSLSocketImpl instances

    Posted 04/26/13 11:36 AM
    Thanks Karun,

    I suspect that the socket  objects are dead (closed but not cleaned up).  We have found at least two APARs related to such occurrences.  Both are closed and our libraries are up to date, but our suspiscion is that we have found another scenario.

    If the connections are dead then we will not see anything with netstat.  However, your suggestion is still helpful, as it would either confirm or rule out excessive live connections.  If the connection close process is being bypassed by an exception the we might just see them.

    Appreciate the response.  Thanks.


  • 4.  Java Core due to excessive SSLSocketImpl instances

    Posted 05/14/13 12:28 PM
    Patrick, sorry to piggyback on your question but we have a very similar problem: WebSphere 7.0 server fails with OutOfMemoryError. Post-mortem analysis using IBM HeapAnalyzer reports java/net/SocksSocketImpl as main leak suspect.
    Have there been any new insights since you raised this?