Thanks P,

That's very useful (it probably explains the problems we were having). Just
to clarify (before I restart our server again as I have quite a few active
users on right now), would the following in a bash script do the job:

ulimit -u 100 -t 36000 -v 500000
sage notebook(interface='localhost',
directory='./sage_notebook.sagenb',port=8000, accounts=True, timeout=1200,
server_pool=['sage%d@localhost'%i for i in range(100)], open_viewer=None)

Also, what is a reasonable limit on the memory, could I get away with
250000? I realise that this is asking how long a piece of string is but
just checking what is a reasonable limit for student day to day use.

Thanks,
Vince



On 25 November 2013 17:23, P Purkayastha <ppu...@gmail.com> wrote:

> On 11/25/2013 09:36 PM, Vince wrote:
>
>> Apologies for bringing up an old question (very neat how the google
>> group pointed me to it before I asked my question). We have a sage
>> server that has been hanging a bit recently and I had to restart it for
>> the first time today (completely unresponsive until I did at which point
>> it was good as new). Has the command changed and it is now: timeout?
>> I.e. starting a server with below will timeout after 1200 seconds (20
>> minutes).
>>
>> notebook(interface='localhost',
>> directory='./sage_notebook.sagenb',port=8000, accounts=True,
>> timeout=1200, server_pool=['sage%d@localhost'%i for i in range(100)],
>> ulimit='-u 100 -t 36000 -v 500000', open_viewer=None)
>>
>> I'm also pasting the whole command in there just in case there's
>> anything else we're doing that might not be quite right...
>>
>
> I suggest setting the ulimit from the terminal before starting sage. The
> ulimit command from inside the notebook() command doesn't work. See
> http://trac.sagemath.org/ticket/11939
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Dr Vincent Knight
Cardiff School of Mathematics
Senghennydd Road,
Cardiff
CF24 4AG
(+44) 29 2087 5548
www.vincent-knight.com
+Vincent Knight
@drvinceknight
Skype: drvinceknight

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to