Skip to main content



      Home
Home » Eclipse Projects » Virgo » javax.xml jar processing takes more time in VIRGO(javax.xml jar processing takes more time in VIRGO)
javax.xml jar processing takes more time in VIRGO [message #1182582] Tue, 12 November 2013 04:28 Go to next message
Eclipse UserFriend
I have a bundle which has following code
Javax.xml.XPath.evaluate()
The above line takes 1.5 seconds to process in Virgo server.
But this takes in milliseconds when it runs in eclipse. Could somebody tell me how to debug this or any optimization flags exists to speed this up.
Re: javax.xml jar processing takes more time in VIRGO [message #1182634 is a reply to message #1182582] Tue, 12 November 2013 05:04 Go to previous messageGo to next message
Eclipse UserFriend
In the past some resource lookups in Virgo have been slow because of the existence of a bundle with a large number of imports. See http://www.eclipse.org/virgo/profiling/ for profiling tools to help debug this.
Re: javax.xml jar processing takes more time in VIRGO [message #1184300 is a reply to message #1182634] Wed, 13 November 2013 06:04 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the reply.I have used 'YOURKIT" tool to profile this application. I found that Javax.xml.XPath.evaluate() statement takes 1.5 seconds everytime. Also this bundle has around 15 imports which i dont think cause bundle to slow down. Is there any optimization required for Javax.xml bundle..?
Re: javax.xml jar processing takes more time in VIRGO [message #1184347 is a reply to message #1184300] Wed, 13 November 2013 06:40 Go to previous messageGo to next message
Eclipse UserFriend
Let's put this forum thread on hold until the related one comes to a conclusion as I suspect this is the same problem in two difference guises.
Re: javax.xml jar processing takes more time in VIRGO [message #1262187 is a reply to message #1184347] Mon, 03 March 2014 05:59 Go to previous message
Eclipse UserFriend
Hello Chandre,

Did you try to set the Parserfactories explicitly as system property in your virgo/bin/dmk.bat/sh file ?

I had a similar problem and I was able to resolve it by overriding the default SaxparserFactory and DocumentBuilderFactory.

set JMX_OPTS=%JMX_OPTS% -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
set JMX_OPTS=%JMX_OPTS% -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
set JMX_OPTS=%JMX_OPTS% -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl


You can refer to my question at the below link:
http://www.eclipse.org/forums/index.php/m/1251439/#msg_1251439

Hope it helps.

Cheers,
Murthy
Previous Topic:javax.mail issues with multipart messages
Next Topic: A Require-Bundle could not be resolved
Goto Forum:
  


Current Time: Fri Jul 04 20:33:16 EDT 2025

Powered by FUDForum. Page generated in 0.03302 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top