Project

Profile

Help

Bug #4216

closed

XPathEvaluator cross thread usage causes memory increase/leak

Added by Stefan Fritz about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Performance
Sprint/Milestone:
-
Start date:
2019-05-09
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
9.8, 9.9
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

We use Saxon EE 9.8.0.15 but I can reproduce the same with 9.9.1.2.

We share an XPathEvaluator across multiple threads but each thread creates its own XPathExpression for local usage. One of our customers ran into an OutOfMemory error. The heap dump analysis shows that the majority of heap is allocated inside net.sf.saxon.trans.KeyManager. (screenshot attached)

I am able to reproduce this using the attached sample.

Can you please check if there is a memory leak or if we misuse the APIs?


Files

2019-05-09 18_49_43-Eclipse Memory Analyzer.png (23.3 KB) 2019-05-09 18_49_43-Eclipse Memory Analyzer.png Heap OQL Stefan Fritz, 2019-05-09 18:50
XPathTest.java (4.95 KB) XPathTest.java Stefan Fritz, 2019-05-09 18:54
XPathTest.java (5.18 KB) XPathTest.java really starts multiple threads now Stefan Fritz, 2019-05-10 08:53

Please register to edit this issue

Also available in: Atom PDF