Excessive memory usage due to Accumulator updates inside single transaction

Bug #1028134 reported by Nathan Williams on 2012-07-23
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Akiban Persistit
Nathan Williams

Bug Description

Persistit r337

An OutOfMemoryError was encountered and analysis of the (partial) heap dump showed that there were 40M Deltas taking up around 1.3G of memory. Code review showed that each delta inside of a transaction is allocated a unique object, no matter how many there are. In the scenario of a long running transaction that does many Accumulator updates, growth from Deltas is essentially unbounded.

A simple solution would be to combine Deltas that are from the same transaction, accumulator, and step into a single value.

Related branches

visibility: private → public
Changed in akiban-persistit:
importance: Undecided → Critical
Changed in akiban-persistit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers