Out of memory exception on OSATE 2.6.0 (testing) #1997
When running unit tests, we are getting out of memory exceptions on OSATE testing (2.6.0) but not on OSATE stable (2.5.2).
I have encountered a similar error before (#1726) but was unable to replace it using the minimal example used in that issue.
The text was updated successfully, but these errors were encountered:
I think the problem is that CacheAdapter.INSTANCE is a static field (and thus not garbage collected)
The cache in CacheAdapter is a persistent cache (i.e. not a weak cache)
THREAD_LOCAL is also static:
The change in ae4d2e1 (such as that shown below) switches from using the getCacheAdapter() method to the getInstance() method:
The former method avoids the static INSTANCE field.
@reteprelief, why did you switch to CacheAdapter.getInstance()?