Skip to main content

Performance degredation when running offline

1 reply [Last post]
pauldb
Offline
Joined: 2003-08-30

Hi,
I'm noticing that when I run Java Web start applications, that there is a significant difference in performance of aspects of the program when I run offline compared to when the host to the application is accessible. So, if I click on a Swing button to launch a dialog, for example, the first time I do this, it is really, really slow. On subsequent calls it speeds up. However, when the application host is accessible, the performance is acceptable - even on the first button press. None of the application functionality actually accesses the host other than to download the application itself.

I'm running 1.6 update 4.

So, why the delay when offline? Is it to do with the Java Cache? A look up on jar signing? What?

Thanks,
-Paul

Updated with more precise description

Message was edited by: pauldb

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pauldb
Offline
Joined: 2003-08-30

I find that if I put an entry in my hosts file corresponding to the IP address of the Web Start hosts, then everything works as I would expect.

So the issue is that the host has to be resolvable - there has to be access to either a DNS server or an entry in the hosts file that identifies the host so that performance is not affected when the application is run offline. However, if the user really is offline, then it should be expected that they do not have access to the DNS servers either. In my view, this is a bug.

Thanks,
-Paul