This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 89868 - Detection of canonical host name slows down startup
Summary: Detection of canonical host name slows down startup
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2006-11-22 15:05 UTC by _ rkubacki
Modified: 2008-12-22 21:23 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
relevant stack trace (4.30 KB, text/plain)
2006-11-22 15:08 UTC, _ rkubacki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2006-11-22 15:05:08 UTC
as a part of issue #57542 fix we are calling
InetAddress.getLocalHost().getCanonicalHostName() during startup to get a list
of hostnames for which proxies are not used. This can be very slow (10-15
seconds in environment with VPN turned on) and currently is done during
ModuleInstall and thus everything is blocked until this call is completed.

I am not sure if we really need canonical name. Petr J.: is it really important?

It should also be possible to make this code asynchronous so that main startup
sequence will not be affected.
Comment 1 _ rkubacki 2006-11-22 15:08:33 UTC
Created attachment 36221 [details]
relevant stack trace
Comment 2 Petr Jiricka 2006-11-22 15:27:52 UTC
I must say I don't remember the exact circumstances of issue #57542, so I can
not really comment. Perhaps one option is to try to remove the canonical name
method call, and retest issue 57542 with this change. Cc'ing Milan, who can
comment on the conditions related to that issue.
Comment 3 Jiri Rechtacek 2006-11-23 10:14:07 UTC
After discussion with Milan we agree that code seems as useless for current IDE.
Fix removed it.

Checking in ProxySettings.java;
/shared/data/ccvs/repository/core/src/org/netbeans/core/ProxySettings.java,v 
<--  ProxySettings.java
new revision: 1.3; previous revision: 1.2
done