Change Default Session Timeout Value?

Hi All,

We’re running a SMS based intervention here in Nicaragua and we’re worried
that our server’s RAM may reach it’s capacity if we have too many open
forms at once. Is the there any way to change the default value so that a
user would be auto-logged out of their current form after XX minutes of
inactivity? (Or just log them out XX minutes after having started the
form?) Ideally we would like to write a little script that will monitor
RAM and change the timeout accordingly. Thanks for your help!

Hi Phil,

I’m dropping our users group and including our developer group (which will
be a bit better at fielding these types of questions). They’ll reach out
to you shortly.

Thanks,
Sheel

··· On Wed, Oct 7, 2015 at 4:36 PM, Phil Gonzalez wrote:

Hi All,

We’re running a SMS based intervention here in Nicaragua and we’re worried
that our server’s RAM may reach it’s capacity if we have too many open
forms at once. Is the there any way to change the default value so that a
user would be auto-logged out of their current form after XX minutes of
inactivity? (Or just log them out XX minutes after having started the
form?) Ideally we would like to write a little script that will monitor
RAM and change the timeout accordingly. Thanks for your help!


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah

Hey Phil,

I don’t think this should be a problem as most of the interactive ways of
entering data on HQ use a database-level store.

How are your users filling in forms?

Cory

··· On Thu, Oct 8, 2015 at 2:44 AM, Sheel Shah wrote:

Hi Phil,

I’m dropping our users group and including our developer group (which will
be a bit better at fielding these types of questions). They’ll reach out
to you shortly.

Thanks,
Sheel

On Wed, Oct 7, 2015 at 4:36 PM, Phil Gonzalez pgonzalez115@gmail.com wrote:

Hi All,

We’re running a SMS based intervention here in Nicaragua and we’re
worried that our server’s RAM may reach it’s capacity if we have too many
open forms at once. Is the there any way to change the default value so
that a user would be auto-logged out of their current form after XX minutes
of inactivity? (Or just log them out XX minutes after having started the
form?) Ideally we would like to write a little script that will monitor
RAM and change the timeout accordingly. Thanks for your help!


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Hi Cory,

Thanks for your response! Our users are accessing forms by sending an SMS
keyword to the server, which then triggers the form. My understanding is
that while the form is open, some RAM is used to determine where the user
is located within the form. Our worry is that with enough users who don’t
fully complete any given form, RAM could become an issue. Therefore, we’re
looking for a simple way of implementing a system-wide timeout for all
forms. Thanks for your help!

Best,

Phil

··· On Wednesday, October 7, 2015 at 3:15:14 PM UTC-6, Sheel Shah wrote: > > Hi Phil, > > I'm dropping our users group and including our developer group (which will > be a bit better at fielding these types of questions). They'll reach out > to you shortly. > > Thanks, > Sheel > > On Wed, Oct 7, 2015 at 4:36 PM, Phil Gonzalez <pgonza...@gmail.com > wrote: > >> Hi All, >> >> We're running a SMS based intervention here in Nicaragua and we're >> worried that our server's RAM may reach it's capacity if we have too many >> open forms at once. Is the there any way to change the default value so >> that a user would be auto-logged out of their current form after XX minutes >> of inactivity? (Or just log them out XX minutes after having started the >> form?) Ideally we would like to write a little script that will monitor >> RAM and change the timeout accordingly. Thanks for your help! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "commcare-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-user...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Sheel Shah > Project Manager | Dimagi > m: +1.781.428.5419 | skype: sheel_shah > > >

Hi Phil,

The service that plays the forms (touchforms) automatically purges from
memory any sessions that are inactive for more than 3 hours. It keeps the
session data persisted to the file system to restore any inactive sessions
should they become active again, but old stale sessions shouldn’t take up
system resources.

Thanks,
Giovanni

··· On Thu, Oct 8, 2015 at 2:19 PM, Phil Gonzalez wrote:

Hi Cory,

Thanks for your response! Our users are accessing forms by sending an SMS
keyword to the server, which then triggers the form. My understanding is
that while the form is open, some RAM is used to determine where the user
is located within the form. Our worry is that with enough users who don’t
fully complete any given form, RAM could become an issue. Therefore, we’re
looking for a simple way of implementing a system-wide timeout for all
forms. Thanks for your help!

Best,

Phil

On Wednesday, October 7, 2015 at 3:15:14 PM UTC-6, Sheel Shah wrote:

Hi Phil,

I’m dropping our users group and including our developer group (which
will be a bit better at fielding these types of questions). They’ll reach
out to you shortly.

Thanks,
Sheel

On Wed, Oct 7, 2015 at 4:36 PM, Phil Gonzalez pgonza...@gmail.com wrote:

Hi All,

We’re running a SMS based intervention here in Nicaragua and we’re
worried that our server’s RAM may reach it’s capacity if we have too many
open forms at once. Is the there any way to change the default value so
that a user would be auto-logged out of their current form after XX minutes
of inactivity? (Or just log them out XX minutes after having started the
form?) Ideally we would like to write a little script that will monitor
RAM and change the timeout accordingly. Thanks for your help!


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Cory,

Thanks for your response! Our users are accessing forms by sending an SMS
keyword to the server, which then triggers the form. My understanding is
that while the form is open, some RAM is used to determine where the user
is located within the form. Our worry is that with enough users who don’t
fully complete any given form, RAM could become an issue. Therefore, we’re
looking for a simple way of implementing a system-wide timeout for all
forms. Thanks for your help!

Best,

Phil

··· On Wed, Oct 7, 2015 at 10:08 PM Cory Zue wrote:

Hey Phil,

I don’t think this should be a problem as most of the interactive ways of
entering data on HQ use a database-level store.

How are your users filling in forms?

Cory

On Thu, Oct 8, 2015 at 2:44 AM, Sheel Shah sshah@dimagi.com wrote:

Hi Phil,

I’m dropping our users group and including our developer group (which
will be a bit better at fielding these types of questions). They’ll reach
out to you shortly.

Thanks,
Sheel

On Wed, Oct 7, 2015 at 4:36 PM, Phil Gonzalez pgonzalez115@gmail.com wrote:

Hi All,

We’re running a SMS based intervention here in Nicaragua and we’re
worried that our server’s RAM may reach it’s capacity if we have too many
open forms at once. Is the there any way to change the default value so
that a user would be auto-logged out of their current form after XX minutes
of inactivity? (Or just log them out XX minutes after having started the
form?) Ideally we would like to write a little script that will monitor
RAM and change the timeout accordingly. Thanks for your help!


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Hi Giovani,

Thank you for your reply! This is really helpful information for us. Is it
possible to modify the touchforms default value to make it less than 3
hours? Thanks!

Phil

··· On Thu, Oct 8, 2015, 1:34 PM Giovanni Capalbo wrote:

Hi Phil,

The service that plays the forms (touchforms) automatically purges from
memory any sessions that are inactive for more than 3 hours. It keeps the
session data persisted to the file system to restore any inactive sessions
should they become active again, but old stale sessions shouldn’t take up
system resources.

Thanks,
Giovanni

On Thu, Oct 8, 2015 at 2:19 PM, Phil Gonzalez pgonzalez115@gmail.com wrote:

Hi Cory,

Thanks for your response! Our users are accessing forms by sending an
SMS keyword to the server, which then triggers the form. My understanding
is that while the form is open, some RAM is used to determine where the
user is located within the form. Our worry is that with enough users who
don’t fully complete any given form, RAM could become an issue. Therefore,
we’re looking for a simple way of implementing a system-wide timeout for
all forms. Thanks for your help!

Best,

Phil

On Wednesday, October 7, 2015 at 3:15:14 PM UTC-6, Sheel Shah wrote:

Hi Phil,

I’m dropping our users group and including our developer group (which
will be a bit better at fielding these types of questions). They’ll reach
out to you shortly.

Thanks,
Sheel

On Wed, Oct 7, 2015 at 4:36 PM, Phil Gonzalez pgonza...@gmail.com wrote:

Hi All,

We’re running a SMS based intervention here in Nicaragua and we’re
worried that our server’s RAM may reach it’s capacity if we have too many
open forms at once. Is the there any way to change the default value so
that a user would be auto-logged out of their current form after XX minutes
of inactivity? (Or just log them out XX minutes after having started the
form?) Ideally we would like to write a little script that will monitor
RAM and change the timeout accordingly. Thanks for your help!


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Hi Giovanni,

I believe I found it. By changing the value of line 27 in xformserver.py
https://github.com/dimagi/touchforms/blob/0344d25626deaaa693bf8f95975fa7b81d7c3c7b/touchforms/backend/xformserver.py
from 3 to say, 0.5, this should purge from memory any form that is inactive
for more than half an hour. Please let me know if this is correct. Thank
you again!

Best,

Phil

··· On Thu, Oct 8, 2015 at 1:38 PM Phil Gonzalez wrote:

Hi Giovani,

Thank you for your reply! This is really helpful information for us. Is it
possible to modify the touchforms default value to make it less than 3
hours? Thanks!

Phil

On Thu, Oct 8, 2015, 1:34 PM Giovanni Capalbo gcapalbo@dimagi.com wrote:

Hi Phil,

The service that plays the forms (touchforms) automatically purges from
memory any sessions that are inactive for more than 3 hours. It keeps the
session data persisted to the file system to restore any inactive sessions
should they become active again, but old stale sessions shouldn’t take up
system resources.

Thanks,
Giovanni

On Thu, Oct 8, 2015 at 2:19 PM, Phil Gonzalez pgonzalez115@gmail.com wrote:

Hi Cory,

Thanks for your response! Our users are accessing forms by sending an
SMS keyword to the server, which then triggers the form. My understanding
is that while the form is open, some RAM is used to determine where the
user is located within the form. Our worry is that with enough users who
don’t fully complete any given form, RAM could become an issue. Therefore,
we’re looking for a simple way of implementing a system-wide timeout for
all forms. Thanks for your help!

Best,

Phil

On Wednesday, October 7, 2015 at 3:15:14 PM UTC-6, Sheel Shah wrote:

Hi Phil,

I’m dropping our users group and including our developer group (which
will be a bit better at fielding these types of questions). They’ll reach
out to you shortly.

Thanks,
Sheel

On Wed, Oct 7, 2015 at 4:36 PM, Phil Gonzalez pgonza...@gmail.com wrote:

Hi All,

We’re running a SMS based intervention here in Nicaragua and we’re
worried that our server’s RAM may reach it’s capacity if we have too many
open forms at once. Is the there any way to change the default value so
that a user would be auto-logged out of their current form after XX minutes
of inactivity? (Or just log them out XX minutes after having started the
form?) Ideally we would like to write a little script that will monitor
RAM and change the timeout accordingly. Thanks for your help!


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah


You received this message because you are subscribed to the Google
Groups “CommCare Developers” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-developers+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Hi Phil,

You can just pass --stale=0.5 to the command that you use when starting up
touchforms and it will set the expiration to half an hour.

Thanks,
Giovanni

··· On Thu, Oct 8, 2015 at 3:49 PM, Phil Gonzalez wrote:

Hi Giovanni,

I believe I found it. By changing the value of line 27 in xformserver.py
https://github.com/dimagi/touchforms/blob/0344d25626deaaa693bf8f95975fa7b81d7c3c7b/touchforms/backend/xformserver.py
from 3 to say, 0.5, this should purge from memory any form that is inactive
for more than half an hour. Please let me know if this is correct. Thank
you again!

Best,

Phil

On Thu, Oct 8, 2015 at 1:38 PM Phil Gonzalez pgonzalez115@gmail.com wrote:

Hi Giovani,

Thank you for your reply! This is really helpful information for us. Is
it possible to modify the touchforms default value to make it less than 3
hours? Thanks!

Phil

On Thu, Oct 8, 2015, 1:34 PM Giovanni Capalbo gcapalbo@dimagi.com wrote:

Hi Phil,

The service that plays the forms (touchforms) automatically purges from
memory any sessions that are inactive for more than 3 hours. It keeps the
session data persisted to the file system to restore any inactive sessions
should they become active again, but old stale sessions shouldn’t take up
system resources.

Thanks,
Giovanni

On Thu, Oct 8, 2015 at 2:19 PM, Phil Gonzalez pgonzalez115@gmail.com wrote:

Hi Cory,

Thanks for your response! Our users are accessing forms by sending an
SMS keyword to the server, which then triggers the form. My understanding
is that while the form is open, some RAM is used to determine where the
user is located within the form. Our worry is that with enough users who
don’t fully complete any given form, RAM could become an issue. Therefore,
we’re looking for a simple way of implementing a system-wide timeout for
all forms. Thanks for your help!

Best,

Phil

On Wednesday, October 7, 2015 at 3:15:14 PM UTC-6, Sheel Shah wrote:

Hi Phil,

I’m dropping our users group and including our developer group (which
will be a bit better at fielding these types of questions). They’ll reach
out to you shortly.

Thanks,
Sheel

On Wed, Oct 7, 2015 at 4:36 PM, Phil Gonzalez pgonza...@gmail.com wrote:

Hi All,

We’re running a SMS based intervention here in Nicaragua and we’re
worried that our server’s RAM may reach it’s capacity if we have too many
open forms at once. Is the there any way to change the default value so
that a user would be auto-logged out of their current form after XX minutes
of inactivity? (Or just log them out XX minutes after having started the
form?) Ideally we would like to write a little script that will monitor
RAM and change the timeout accordingly. Thanks for your help!


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah


You received this message because you are subscribed to the Google
Groups “CommCare Developers” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-developers+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Great, thank you for your help!

Best,

Phil

··· On Thu, Oct 8, 2015, 2:00 PM Giovanni Capalbo wrote:

Hi Phil,

You can just pass --stale=0.5 to the command that you use when starting up
touchforms and it will set the expiration to half an hour.

Thanks,
Giovanni

On Thu, Oct 8, 2015 at 3:49 PM, Phil Gonzalez pgonzalez115@gmail.com wrote:

Hi Giovanni,

I believe I found it. By changing the value of line 27 in xformserver.py
https://github.com/dimagi/touchforms/blob/0344d25626deaaa693bf8f95975fa7b81d7c3c7b/touchforms/backend/xformserver.py
from 3 to say, 0.5, this should purge from memory any form that is inactive
for more than half an hour. Please let me know if this is correct. Thank
you again!

Best,

Phil

On Thu, Oct 8, 2015 at 1:38 PM Phil Gonzalez pgonzalez115@gmail.com wrote:

Hi Giovani,

Thank you for your reply! This is really helpful information for us. Is
it possible to modify the touchforms default value to make it less than 3
hours? Thanks!

Phil

On Thu, Oct 8, 2015, 1:34 PM Giovanni Capalbo gcapalbo@dimagi.com wrote:

Hi Phil,

The service that plays the forms (touchforms) automatically purges from
memory any sessions that are inactive for more than 3 hours. It keeps the
session data persisted to the file system to restore any inactive sessions
should they become active again, but old stale sessions shouldn’t take up
system resources.

Thanks,
Giovanni

On Thu, Oct 8, 2015 at 2:19 PM, Phil Gonzalez pgonzalez115@gmail.com wrote:

Hi Cory,

Thanks for your response! Our users are accessing forms by sending an
SMS keyword to the server, which then triggers the form. My understanding
is that while the form is open, some RAM is used to determine where the
user is located within the form. Our worry is that with enough users who
don’t fully complete any given form, RAM could become an issue. Therefore,
we’re looking for a simple way of implementing a system-wide timeout for
all forms. Thanks for your help!

Best,

Phil

On Wednesday, October 7, 2015 at 3:15:14 PM UTC-6, Sheel Shah wrote:

Hi Phil,

I’m dropping our users group and including our developer group (which
will be a bit better at fielding these types of questions). They’ll reach
out to you shortly.

Thanks,
Sheel

On Wed, Oct 7, 2015 at 4:36 PM, Phil Gonzalez pgonza...@gmail.com wrote:

Hi All,

We’re running a SMS based intervention here in Nicaragua and we’re
worried that our server’s RAM may reach it’s capacity if we have too many
open forms at once. Is the there any way to change the default value so
that a user would be auto-logged out of their current form after XX minutes
of inactivity? (Or just log them out XX minutes after having started the
form?) Ideally we would like to write a little script that will monitor
RAM and change the timeout accordingly. Thanks for your help!


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah


You received this message because you are subscribed to the Google
Groups “CommCare Developers” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-developers+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.