Mike Beckerle created DAFFODIL-2520:
---------------------------------------
Summary: TDML Runner SchemaCache leaks memory
Key: DAFFODIL-2520
URL: https://issues.apache.org/jira/browse/DAFFODIL-2520
Project: Daffodil
Issue Type: Bug
Components: TDML Runner
Affects Versions: 3.1.0
Reporter: Mike Beckerle
The Daffodil TDML Processor uses a global scala object as a cache of compiled
schemas.
If you run a large sbt test which tests many many DFDL schemas, you run out of
memory because this cache grows by holding onto the compiled parser/unparser
representations of all compiled schemas.
This SchemaCache is important to avoid compiling the same schema over and over
for each individual test case, but there is no need for a global cache. This
cache could be part of the TDML TestSuite object.
This SchemaCache is currently called and used by the Daffodil TDML Processor
object, so does not have visibility to the whole TestSuite. If hoisted out to
become state of the TestSuite object, then this may have implications for other
TDML Processors like the one we use to cross-test against IBM DFDL.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)