Configuring certain clients to "KeepAlive"

MarcusRB
Member Posts: 40
I've been trying to figure out how to make clients that are idle disconnect from the server, but also allow certain clients to stay connected.
I have modified the "Idle Client Timeout" so that it now holds the value "00:10:00", meaning that a client should timeout if it's been inactive for 10 minutes. I have tested that this works.

I then added the "KeepAlive key" to the ClientUserSettings.config and set it to "00:09:00", meaning that a client should send some form of signal to the server every 9 minutes so that it is not disconnected. This however does not work.

I'm not sure wether the "keep alive functionality" is present in NAV 2013 (I should like to think so), but I've not been able to find any information about it in regards to NAV 2013. I'm using NAV 2013 V. 7.0.35355.0.
I have modified the "Idle Client Timeout" so that it now holds the value "00:10:00", meaning that a client should timeout if it's been inactive for 10 minutes. I have tested that this works.

I then added the "KeepAlive key" to the ClientUserSettings.config and set it to "00:09:00", meaning that a client should send some form of signal to the server every 9 minutes so that it is not disconnected. This however does not work.

I'm not sure wether the "keep alive functionality" is present in NAV 2013 (I should like to think so), but I've not been able to find any information about it in regards to NAV 2013. I'm using NAV 2013 V. 7.0.35355.0.
0
Best Answer
-
Hi MarcusRB,
This topic rang a bell. I've checked our ticket system and found an old ticket. Following this ticket NAV 2013 only has the option "Idle Client Timeout", KeepAlive did not exist yet. The parameter "ClientServicesKeepAliveInterval" is introduced with the NAV 2013 R2 platform. The value is in seconds.
But your problem can be resolved though.I've been trying to figure out how to make clients that are idle disconnect from the server, but also allow certain clients to stay connected.- Create two identical NST's. Change the "Idle Client Timeout" for one of the service tiers.
- Create two different ClientUserSettings.config files.
- Configure one with NST A and the other with NST B.
- Put the files on a share and make them read only (you can rename the files to whatever)
- Create two NAV client shortcuts with the -settings paremeter. One shortcut points to ClientUserSettings.config A and the other to ClientUserSettings.config B.
- Distribute different NAV client icons to the users.
Example shortcuts"C:\Program Files (x86)\Microsoft Dynamics NAV\70\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe" -settings:"\\server\share\NAV70prod_timeout_true.config" "C:\Program Files (x86)\Microsoft Dynamics NAV\70\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe" -settings:"\\server\share\NAV70prod_timeout_false.config"
Good to know:
In Dynamics NAV 2016 Cumulative Update 8 the ClientKeepAlive setting has been moved from the user level to the service level, and is no longer defined in number of seconds but as a time interval, just like the Idle Client Timeout setting. So you can configure this value on the NST.
Hope this helps1
Answers
-
Anyone know?0
-
as far as i know the clientservicesKeepAliveInterval just means that a client will not lose its connection during those 9 minutes. As soon as they go over the 9 minutes threshold it will lose connection.
The server session will be available for reconnect then for 1 more minute before closing (due to the 10 min setting in de idle client timeout)
0 -
as far as i know the clientservicesKeepAliveInterval just means that a client will not lose its connection during those 9 minutes. As soon as they go over the 9 minutes threshold it will lose connection.
The server session will be available for reconnect then for 1 more minute before closing (due to the 10 min setting in de idle client timeout)
Thanks for the suggestion, it still didn't stay alive though. I modified the value from an interval to a "length" value (i.e. from 9 minutes to MaxValue/999 minutes).
0 -
I think the value that needs to put in “ClientServicesKeepAliveInterval” in is seconds rather than in minutes (as you did in your case).
Also if you want to kill session which is idle for 10 mins or more than in that case you have to perform below:-
1) Set “ClientServicesKeepAliveInterval” property to 600 in ClientUserSettings.Config file
2) Update the Idle Client Timeout on NAV administration as you did.
Thanks0 -
I think the value that needs to put in “ClientServicesKeepAliveInterval” in is seconds rather than in minutes (as you did in your case).
Also if you want to kill session which is idle for 10 mins or more than in that case you have to perform below:-
1) Set “ClientServicesKeepAliveInterval” property to 600 in ClientUserSettings.Config file
2) Update the Idle Client Timeout on NAV administration as you did.
Thanks
I should have mentioned that I've tried different value formats in the "ClientServicesKeepAlive" value:- 00:10:00
- 600
0 -
Which version you are using?0
-
In NAV 2013, I don't think there is any need to update the "ClientUser Settings" file.
It will only work by doing the change in Idle client Timeout in NAV admin shell.
Changes in "ClientUser Settings" file came from 2015 onwards. (if I recall my self correctly)
0 -
In NAV 2013, I don't think there is any need to update the "ClientUser Settings" file.
It will only work by doing the change in Idle client Timeout in NAV admin shell.
Changes in "ClientUser Settings" file came from 2015 onwards. (if I recall my self correctly)
The issue is not regarding "Idle Client Timeout". Clients are getting disconnected after the specified amount of time has passed.
The objective is that I want certain clients to stay connected past the timeout via "ClientServicesKeepAliveInterval". The issue is that even though I assign the "ClientServicesKeepAliveInterval" different values, clients are still disconnected.0 -
I don't think that you will achieve this by doing the same.0
-
Hi MarcusRB,
This topic rang a bell. I've checked our ticket system and found an old ticket. Following this ticket NAV 2013 only has the option "Idle Client Timeout", KeepAlive did not exist yet. The parameter "ClientServicesKeepAliveInterval" is introduced with the NAV 2013 R2 platform. The value is in seconds.
But your problem can be resolved though.I've been trying to figure out how to make clients that are idle disconnect from the server, but also allow certain clients to stay connected.- Create two identical NST's. Change the "Idle Client Timeout" for one of the service tiers.
- Create two different ClientUserSettings.config files.
- Configure one with NST A and the other with NST B.
- Put the files on a share and make them read only (you can rename the files to whatever)
- Create two NAV client shortcuts with the -settings paremeter. One shortcut points to ClientUserSettings.config A and the other to ClientUserSettings.config B.
- Distribute different NAV client icons to the users.
Example shortcuts"C:\Program Files (x86)\Microsoft Dynamics NAV\70\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe" -settings:"\\server\share\NAV70prod_timeout_true.config" "C:\Program Files (x86)\Microsoft Dynamics NAV\70\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe" -settings:"\\server\share\NAV70prod_timeout_false.config"
Good to know:
In Dynamics NAV 2016 Cumulative Update 8 the ClientKeepAlive setting has been moved from the user level to the service level, and is no longer defined in number of seconds but as a time interval, just like the Idle Client Timeout setting. So you can configure this value on the NST.
Hope this helps1 -
Hi MarcusRB,
This topic rang a bell. I've checked our ticket system and found an old ticket. Following this ticket NAV 2013 only has the option "Idle Client Timeout", KeepAlive did not exist yet. The parameter "ClientServicesKeepAliveInterval" is introduced with the NAV 2013 R2 platform. The value is in seconds.
Wonderful answer RemkoD, very insightful and well written, thank you!0 -
No problem and txs for the positive feedback.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions