Connections idle timeout in Database Server Tab

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

Connections idle timeout in Database Server Tab

Postby udiluca » Mon Dec 16, 2013 12:17 pm

Hi,

What exactly is the purpose of the "connections idle timeout in the Database Server Tab ?

Does this option have any effect on the connexions to the solutions ? If not, how can I set the maximum idle time for webclients ?

Thanks

Ugo
udiluca
 
Posts: 24
Joined: Wed Apr 10, 2013 7:25 pm

Re: Connections idle timeout in Database Server Tab

Postby rgansevles » Mon Dec 16, 2013 2:08 pm

Ugo,

The setting is described as "Connections will be closed automatically after being idle for specified time (minutes)".
Database connections are shared between all solutions, with this setting you can configure closing a db connection after not being used for some time.

Hope this helps,

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: Connections idle timeout in Database Server Tab

Postby udiluca1387196386 » Mon Dec 16, 2013 2:22 pm

Thank you Rob,

So this is uniquely related to database connexions.

Is there any other way to close idle users on the server apart frorm using the user manager plugin ?
udiluca1387196386
 
Posts: 1
Joined: Mon Dec 16, 2013 2:19 pm

Re: Connections idle timeout in Database Server Tab

Postby rgansevles » Tue Dec 17, 2013 9:28 am

Ugo,

Idle webclients are removed when their http session times out.
This can be configured in the tomcat config: /path/to/servoy/application_server/server/conf/web.xml, it defaults to 30 minutes

Code: Select all
<session-timeout>30</session-timeout>


Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: Connections idle timeout in Database Server Tab

Postby Harjo » Tue Dec 17, 2013 12:58 pm

Idle webclients are removed when their http session times out.

To be more specific, the session only times out, when you close the browser, or the tab in the browser, with your session.
It does not time-out just by an idle time of 30 minutes!

The only way todo that, (afaik) is using the UserManagerPro plugin.
With Servoy going more & more to the web, this should be default implemented in Servoy IMHO
(setting it in servoy-admin page, and by scripting!)
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Connections idle timeout in Database Server Tab

Postby stefanoni » Thu Jan 16, 2014 5:04 pm

If the user leaves the page, or closes the browser, it is gone.
Does it make sense to set the timeout > then 1 Second ?
What for ?

Thanks for any suggestions
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 12 guests