Bernd Resch ha scritto:
> Hello,
> 
> I implemented a GeoServer datastore, which fetches an XML structure from 
> a URL. When executing a WFS GetFeature request I get a surprisingly 
> constant delay of 6 seconds.
> 
> I'm parsing the XML with JDOM (the XML doc is small and flat). Is JDOM 
> the only reason for making the query process slow or could you imagine 
> e.g. a GeoServer timer or something similar, which blocks the transaction?

Hum no, afaik we don't have any delay in GeoServer (we'd like it to go
fast, not slow ;) ). Yet, parsing with jdom is expensive and it's
probably reaching for schemas or dtd that are referenced by the
document, if they are on the internet that may justify the wait you're
seeing.

GeoServer internal parser, based on a completely different technology
stack, caches the schemas so we have a wait for schema gathering
and parsing only on the first access.

I'd suggest you try to use your own datastore stand alone and see
if you can reproduce the slowdown, otherwise grab a profiler
(for example a  YourKit demo) and see where those 6 seconds are spent.

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to