Over the weekend we found a bug where a particular type of tree can cause Gerrit to go into an infinite loop while executing a merge, allocating more and more memory during each iteration, until it just runs out of heap space. Its possible this is the same issue. I submitted a patch upstream to JGit, but Robin hasn't picked it up yet.
Check your submit queue:
SELECT change_id FROM changes WHERE status = 's';
If there are changes pending in the submit queue, unsubmit them:
UPDATE changes SET status = 'n' WHERE status = 's';
rebase those changes onto current tip of tree, upload replace, and submit. But, if the project is using cherry pick submits, you'll need to temporarily disable that and use fast forward only, and edit the commit message yourself, because its the 3-way merge inside Gerrit that blows up the memory usage.
I'm sort of holding 2.0.14 until JGit is patched for this.