tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Muishout" <>
Subject WebappClassLoader getURL vs. Performance Problems
Date Wed, 10 Dec 2003 23:18:59 GMT

We are using a web application running in Tomcat 4.1.24 (JDK 1.3.1), on
HP-UX. This web application uses an rmi server to connect to oracle. We
experience serious performance problems when we are using this application
in this mode. It seems that tomcat is very busy. We used profiling to
analyze what Tomcat is doing.

It seems that Tomcat spends about 50% of its time in the following method:


The profiler shows us that this method is called only 4 times!

Does anyone have an explanation why this method consumes so much time? We
had a look in the source code and we saw this:

    protected URL getURL(File file)
        throws MalformedURLException
        File realFile = file;
            realFile = realFile.getCanonicalFile();
        catch(IOException e) { }
        return realFile.toURL();

Could it be that we have an IOException? Why is this exception ignored?

Feedback is highly appreciated..!


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message