Tuesday, 10 September 2013

SVNKit Checkout Slow on linux

SVNKit Checkout Slow on linux

From a webapplication (ran in Tomcat/Jetty) I do a svn checkout to the
localhost with SVNKit as follows:
final SvnOperationFactory svnOperationFactory = new
SvnOperationFactory();
try {
svnOperationFactory.setAuthenticationManager(authManager);
final SvnCheckout checkout = svnOperationFactory.createCheckout();
//options
checkout.setSingleTarget(SvnTarget.fromFile(outputDir));
checkout.setSource(SvnTarget.fromURL(sourceURL));
checkout.setRevision(SVNRevision.HEAD);
//run
checkout.run();
} finally {
svnOperationFactory.dispose();
}
When I run this code on my Windows 7 laptop the directory (about 100 kb)
is checked out in a few seconds. When I run this on a Red Hat Linux server
(same Tomcat, same Java version) this takes more than 5 minutes (gets
longer every checkout). During the checkout the java process consumes 100%
cpu.
My question is why is this working so slow on the Linux server and how can
I debug this?

No comments:

Post a Comment