IBM Support

What is causing an OutOfMemoryError in com.ibm.ws.session?

Troubleshooting


Problem

An OutOfMemoryError may occur in WebSphere Application Server with stack frames in com.ibm.ws.session.*.

Symptom

Here is the top of an example OutOfMemoryError stack for this type of problem (note that some stack frames may differ based on session replication versus persistence and other factors):

java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:3580)
    at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:129)
    at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:104)
    at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:164)
    at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1962)
    at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1907)
    at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:739)
    at java.io.ObjectOutputStream.close(ObjectOutputStream.java:760)
    at com.ibm.ws.session.store.db.DatabaseHashMapMR$1.run(DatabaseHashMapMR.java:264)
    at com.ibm.ws.session.store.db.DatabaseHashMapMR$1.run(DatabaseHashMapMR.java:252)
    at java.security.AccessController.doPrivileged(AccessController.java:650)
    at com.ibm.ws.session.store.db.DatabaseHashMapMR.handlePropertyHits(DatabaseHashMapMR.java:252)
    at com.ibm.ws.session.store.db.DatabaseHashMap.persistSession(DatabaseHashMap.java:2146)
    at com.ibm.ws.session.store.common.BackedHashMap.updateSession(BackedHashMap.java:552)
    at com.ibm.ws.session.store.common.BackedHashMap.put(BackedHashMap.java:626)
    at com.ibm.ws.session.store.common.BackedSession.flush(BackedSession.java:239) [...]
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"sessions","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
WebSphere Application Server

Software version:
All Versions

Operating system(s):
AIX, HP-UX, IBM i, Linux, Solaris, Windows, z/OS

Document number:
730535

Modified date:
03 March 2025

UID

ibm10730535

Manage My Notification Subscriptions