NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Launch Time of OI (and SeqEdit)

Hi,

 

some weeks ago, we have experienced a dramatic slowdown of the launching of our OI (without having changed anything 😉)

We found this to happen also with the SeqEdit.

Digging deeper, we have reset our configuration to default (including search paths), still we see no improvement.

 

Eventually we found out, that disabling the company network brings launching times back to normal fast!

We're talking about 30s compared to >2min

 

We're running TS2016SP1 (16.1.0.52) 32Bit on a disconnected license, so in my thinking, there should be no neccessity for the license manager to check for a license server.

Two of our testracks are showing this behaviour. A third one (License Manger 4.5) is faster, still about 1min launch time

 

Does the License Manager "call home" during startup if a LAN connection is found? Is there a way to avoid this?

 

Best Regards

Oli

 

 

 

 

 

 

0 Kudos
Message 1 of 7
(2,653 Views)

Are the machines pointed to the license server even though they have disconnected licenses.  License manager looks at the server first for a license and then looks at the local licenses if it doesn't find it on the server.  If you just remove NILM from looking at the server it should fix the issue.

 

BTW- that seems like your network has some issues.  Generally it should be really fast (less than a couple ms) to ping the server for a license. 

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 7
(2,582 Views)

Hi jigg,

 

thanks for the reply. We have just re-checked: NILM doesn't have a License Server entry.

 

Will try upgrading to 4.5 on that machine to see, If there are any differences,

 

I agree on the strange network 😉

0 Kudos
Message 3 of 7
(2,565 Views)

Things in TestStand that could be impacted by the network:

  • Licensing as we've discussed
  • Users.ini if you've pointed to a shared drive.  However, you'd get an error if this were the case
  • Search Directories.  Especially if they are at the top of the list.  TestStand iterates through the search directories looking for everything as it botos up.
  • Environment.  If you have any environments using shared drives and are starting TestStand with one of those
  • Configuration Files Directory.  If this were on the shared drives and you were pointed to it somehow (most likely environments)
  • Front End Callback using code from a shared drive

 

A couple questions:

  • Do you see the login dialog before or after the long period of waiting?
  • Do you use a source code control that is on a shared drive or that looks to the network for anything?

 

Hope we get this solved.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 4 of 7
(2,555 Views)

So.... last night my colleague has updated one of the NILM 4.1 installation to 4.5. Problem has vanished on that one.

Next step is trying on the other one.

 

The recently updated machine reacts much faster than the one I have described in my first post. So there is still some room left for research. I shall write up our findings in this thread for future reference.

 

@ jigg: thanks so much for compiling all this information. I would indeed invite you for a BBQ, but I won't be able to join NI Week on the new date 😞 Maybe next year 🙂

 

Cheers

Oli

Message 5 of 7
(2,536 Views)

Hi Oli, we've seen a similar issue with our manufacturing test application, where we have integrated TestStand 2017, also using NI offline-licenses. However, it looks like TestStand is trying to "call home" sometimes when we are starting up the TestStand Engine caling

AxApplicationMgr.Start() When this happens, it causes a 40-50 second UI freeze before the application becomes usable.

 

No licensing volume server have been configured in NI License Manager (we do have one, but it is not reachable from the manufacturing network). The computer is running Windows 10.

 

I did some Timeline profiling (using Resharper DotTrace) during startup, and found that LicenseManagment engine seem to fail to connect to some url, it makes two attempts, each failing after 21 seconds and throwing a SockedException as in the stacktrace below:

 

Start 00:24,806
Thread Main Thread (#3188)
Type System.Net.Sockets.SocketException
Message A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

[clr.dll] [ntdll.dll] [clr.dll]
System.Net.Sockets.Socket.DoConnect(EndPoint, SocketAddress)
System.Net.ServicePoint.ConnectSocketInternal(Boolean, Socket, Socket, ref Socket, ref IPAddress, ConnectSocketState, IAsyncResult, out Exception)
System.Net.ServicePoint.GetConnection(PooledStream, Object, Boolean, out IPAddress, ref Socket, ref Socket)
System.Net.PooledStream.Activate(Object, Boolean, GeneralAsyncDelegate)
System.Net.Connection.CompleteStartConnection(Boolean, HttpWebRequest)
System.Net.Connection.CompleteStartRequest(Boolean, HttpWebRequest, TriState)
System.Net.Connection.SubmitRequest(HttpWebRequest, Boolean)
System.Net.ServicePoint.SubmitRequest(HttpWebRequest, String)
System.Net.HttpWebRequest.SubmitRequest(ServicePoint)
System.Net.HttpWebRequest.GetResponse()
System.Net.WebClient.GetWebResponse(WebRequest)
System.Net.WebClient.OpenRead(Uri)
NationalInstruments.LicenseManagement.Engine.LicensingEngine.f()
NationalInstruments.LicenseManagement.Engine.LicensingEngine.IsConnectedToInternet()
NationalInstruments.LicenseManagement.EngineInterface.LicensingEngine.IsConnectedToInternet()
NationalInstruments.LicenseManagement.UI.Model.WizardModel..ctor(IReadOnlyList, CustomWizardInfo, Client, SourceOfActivation)
NationalInstruments.LicenseManagement.UI.WizardActivationHandler.Activate(CultureInfo, SourceOfActivation, IReadOnlyList, CustomWizardInfo, Client)
NationalInstruments.LicenseManagement.ClientInteraction.CoreClient.StartLicensingWizard(IReadOnlyList, CustomWizardInfo, CultureInfo, SourceOfActivation, Client, out WizardResponse)
NationalInstruments.LicenseManagement.ClientInteraction.CoreClient.StartLicensingWizard(IReadOnlyList, CustomWizardInfo, CultureInfo, SourceOfActivation, CultureInfo, out WizardResponse)
.<Module>.StartLicensingWizard(Client*, CheckoutRequest*, Int32, CustomWizardInfo*, SByte*, SourceOfActivation, WizardResponse**)
.<Module>.CNiLmClient_StartLicensingWizardWithSourceOfActivation_Managed(Int32, CheckoutRequest*, Int32, CustomWizardInfo*, SByte*, SourceOfActivation, Int32*)
.<Module>.CNiLmClient_StartLicensingWizard_Managed(Int32, CheckoutRequest*, Int32, CustomWizardInfo*, SByte*, Int32*)
[tefwk.dll] [TSEngine.dll] [teapi.dll] [tsui.dll]
NationalInstruments.TestStand.Interop.UI.Ax.AxApplicationMgr.Start()
Spider.Client.MainForm.MainForm_Load(Object, EventArgs)

 

Message 6 of 7
(1,390 Views)

I think NI should have a look a this. Create a service request.

Michał Bieńkowski
CLA, CTA

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.
0 Kudos
Message 7 of 7
(1,366 Views)