M
Marvin_123456
Hello,
I am using javax.xml.xpath.XPath in a servlet to evaluate expressions
on a DOM. The servlet then creates a html page from the results. Just
reloading the page, i.e. executing all xpath expressions on DOM again,
increases the memory consumption of the VM for some MB. This memory is
never deallocated. As this occurs with every page reload, sooner or
later, Java runs out of memory, only depending on the heap size
settings.
The same problem occurs using DocumentBuilder.parse().
Does anybody know these problems and can give a hint how to solve or
workaround it?
Thanks,
Marvin_123456
I am using javax.xml.xpath.XPath in a servlet to evaluate expressions
on a DOM. The servlet then creates a html page from the results. Just
reloading the page, i.e. executing all xpath expressions on DOM again,
increases the memory consumption of the VM for some MB. This memory is
never deallocated. As this occurs with every page reload, sooner or
later, Java runs out of memory, only depending on the heap size
settings.
The same problem occurs using DocumentBuilder.parse().
Does anybody know these problems and can give a hint how to solve or
workaround it?
Thanks,
Marvin_123456