Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2005

Tip: Looking for answers? Try searching our database.

"Memory leak" in javax.xml.xpath.XPath

Thread view: 
Marvin_123456 - 29 Jul 2005 13:11 GMT
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
jan V - 29 Jul 2005 15:29 GMT
> I am using javax.xml.xpath.XPath in a servlet to evaluate expressions
> on a DOM.

I so wish there was comp.lang.java.web.xml group when I read stuff like
this...

> increases the memory consumption of the VM for some MB. This memory is
> never deallocated. As this occurs with every page reload, sooner or
[quoted text clipped - 3 lines]
> Does anybody know these problems and can give a hint how to solve or
> workaround it?

File a bug report for starters... ?
Marvin_123456 - 29 Jul 2005 15:56 GMT
Hi Jan,

unfortunately, your answer didn't help me in solving this problem.
However, with regard to your "group-problem": I would recommend that
you initiate a new group named comp.lang.java.web.xml... Probably it is
explained somewhere how this works for starters...

Any constructive solutions are welcome!
jan V - 29 Jul 2005 16:49 GMT
> Any constructive solutions are welcome!

Filing a bug report was meant to be constructive... having the original
authors of the bug fix the bug sounds like a quality solution to me (*may*
be too slow for your schedule, but that's a different issue)
Thomas Hawtin - 29 Jul 2005 15:57 GMT
> File a bug report for starters... ?

But make sure you file it with the right people. You server may not be
using the default implementation supplied with the JRE. Sun's JRE uses
an Apache implementation, IIRC, so you might get a better response
through Apache than Sun.

Tom Hawtin
Signature

Unemployed English Java programmer
http://jroller.com/page/tackline/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.