Community
Participate
Working Groups
From comment 12 bug 175300: > We have a report of "Connect" for a Linux systemType taking 5 - 10 minutes (!) > and completely blocking Eclipse during that time. > > Attached thread dump shows that the problem is calling into > LinuxProcessHelper.populateUsernames(LinuxProcessHelper.java:117) > from > LinuxShellProcessService.initService(LinuxShellProcessService.java:194) > which is called on the main Thread. > > The Javadocs of IService#initService() say: > "This method may be long-running, but is not yet expected to open a > connection to a particular remote system. > " > > So I see two problems here: > (1) if initService() may be long-running, why is it called on the main > Thread? This looks like an inconsistency in RSE Core. Not sure if we > can change it though, we might have to update the Javadocs instead > ("Specification update"). > (2) if initService() is not yet expected to open a connection, why does it > initialize user names already? > I think that the populateUsernames() must be deferred to when it is really > needed. >
Fixed.