Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Slow startup of Swing Client
Slow startup of Swing Client [message #1131154] Thu, 10 October 2013 08:41 Go to next message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 309
Registered: August 2011
Senior Member
Hi,

when the Swing Client starts it normally takes 2-6 seconds. Sometimes, for some users this takes much longer 1-5 minutes.

In the configuration.ini of the client there is a setting.
osgi.user.area=@user.home/programname/user.

The cause of this delay is that in our network, @user.home points to some directory on a server that is sometimes very busy. So at startup this directory is hard to reach and this causes the delay.

So is there an alternative for this in a way that I still have different directories for the different users. For example, if this directory would always be on the local PC it would work fast.


Regards Bertin



Re: Slow startup of Swing Client [message #1184684 is a reply to message #1131154] Wed, 13 November 2013 16:19 Go to previous message
Lukas Huser is currently offline Lukas HuserFriend
Messages: 42
Registered: March 2010
Member
Hi Bertin

"Bertin Kiekebosch"
The cause of this delay is that in our network, @user.home points to some directory on a server that is sometimes very busy. So at startup this directory is hard to reach and this causes the delay.


Note that the special syntax @user.home will simply be replaced by the Java System property user.home. (See [1] for more information on the OSGi locations and the special syntax you can use in the config.ini file.) I assume you are on a Windows system? Here, the JVM has a rather strange way to initialize the user.home property: It is defined as the parent folder of the Desktop Shell Folder (See [2] for more details. This is actually a long standing JVM Bug -- and it seems to be finally resolved with Java 8!)

Are you sure that the Desktop Shell Folder correctly points to a network location? Doesn't this slow down your setup in general?

"Bertin Kiekebosch"
So is there an alternative for this in a way that I still have different directories for the different users. For example, if this directory would always be on the local PC it would work fast.


There is a special syntax to refer to environment variables in the config.ini file. (See section "Variable substitution in config.ini" in [1].)
So you could use something like the following (assuming that the environment variable USERPROFILE points to a reasonable location in your setup Smile):
osgi.user.area=$USERPROFILE$/programname/user



[1] http://help.eclipse.org/kepler/topic/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html?cp=2_1_3_0
[2] http://bugs.sun.com/view_bug.do?bug_id=4787931

Lukas
Previous Topic:RAP Form Timer Refresh
Next Topic:What is a Scout project?
Goto Forum:
  


Current Time: Thu Dec 18 02:40:55 GMT 2014

Powered by FUDForum. Page generated in 0.01578 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software