You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Jeremias Maerki <de...@greenmail.ch> on 2004/09/07 23:07:26 UTC

Multi-threading testbed (was: Re: cvs commit: xml-fop/src/java/org/apache/fop/fo/pagination Root.java)

I've done that already. It wasn't so much work but I had to get rid of
the Avalon Fortress container first. It still uses the Avalon
Framework, though.

That's how it works: There's a sample configuration file in
test/java/org/apache/fop/threading that shows how to configure the MT
testbed. The filename to the configuration file is given to the Main
class as a command line parameter. The rest should be pretty easy to
manage. You can specify how many threads you want to run, which FO or
XML/XSLT combinations and how many times the tasks should be run until
the thread dies.

There's still a lot of room for improvements. I haven't bothered with
adjusting to the different configuration in HEAD, yet. It's just a small
tool for reproducing multi-threading problems.

And to cater for the curious: FOP really fails as soon as you run two
threads ATM.

Have fun.

On 07.09.2004 20:47:07 Jeremias Maerki wrote:
> I will try to dig up my multi-threading
> testbed I wrote for FOP maintenance branch a couple of years ago when we
> were tracking down multi-threading problems. It will need a bit of
> adjustment for HEAD but I think it makes sense to put it somewhere in
> the test directory so we can easily stress-test FOP.


Jeremias Maerki