dariok / wdbplus

WDB-eXist
MIT License
8 stars 7 forks source link

OOM due to storing functions in $model #512

Closed dariok closed 2 years ago

dariok commented 2 years ago

360, #508 , #510 – Storing a map of functions within $model will eventualky cause a Java OOM error. This is likely due to a memory leak in eXist or Jetty.

To remedy this and improve processing times, we should store the function information for instance.xqm and each project.xqm in separate files that can be read quickly. Calling load-xquery-module will then only be necessary when a function is actually needed.

This should avoid excessive memory usage and unnecessary module loads and improve response time, too.