Details
-
Bug
-
Resolution: Fixed
-
Major
-
11.10.8
-
Unknown
-
N/A
-
N/A
-
Description
The Velocity context contains a cache of introspection related information (like the methods).
It's not really clear to me what is the point of this cache since the following script will create 2 entries in this cache:
$var.foo() $var.foo()
Anyway the problem is that this cache can quite big and more importantly is never cleaned so if you execute a lot of scripts containing a lot of method calls you can end up crushing the memory quickly.
Clearing that cache after each script should already help a lot (at the potential expense of some performance but, as I indicated above, right now I don't even see how this cache be useful in any way if the exact same method call cannot be reused...).
Attachments
Issue Links
- is duplicated by
-
XWIKI-15355 Notification Jobs throw OOMemory Exception
- Closed