[jdom-interest] RE: JDom parser or stick to a Sax parser???
Per Norrman
per.norrman at austers.se
Thu May 5 02:42:20 PDT 2005
Hi,
From my experience, a JDOM document memory footprint is 5-10 times the XML
file size. So you're looking at roughly 100MB or less, which should be fine.
/pmn
Mark Gargan skrev:
> Hi folks,
>
> I've just joined this mailing list and am using JDom for the first
> time.
>
> We're looking at scalability and database growth at the hands of our product
> at the moment.
>
> I successfully wrote an interceptor for requests at our server so that I
> could mimic
> a WebConversation between a client and our product.
> Using JDom I've created a conversation xml file which represents all the
> client information required
> in order to have HttpUnit replicate a run through our online system.
>
> My question is regarding the feasibility of using JDom as the parser for the
> scalability test.
> The test's nothing grand. It's simply a number of client's are passed the
> conversation xml file
> and they use HttpUnit to perform the various requests that would otherwise
> be made online.
>
> I'll be looking at running 100 or more clients at the same time and they'll
> all be parsing the same file.
> The file should be no more than 100KB.
>
> When JDom parses a file does it instantiate the whole file in memory?
> I've seen with some of the sample applications that the builder is a
> SAXBuilder?
> Would I be better off sticking to a plain old SAX parser and parsing the
> file linearly for a smaller memory hit?
>
> Thanks,
> Mark.
>
>
> Mark Gargan
> Software Developer
> Allfinanz Distribution Software
> <<http://www.allfinanz.com/>>
> Direct Line: 213 5115
> Fax: +353 1 295 2554
> <<mailto:mark.gargan at allfinanz.com>>
>
>
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com
>
More information about the jdom-interest
mailing list