octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60993] Environment became unstable and does n


From: anonymous
Subject: [Octave-bug-tracker] [bug #60993] Environment became unstable and does not recognize basic commands
Date: Mon, 2 Aug 2021 20:54:06 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0

Follow-up Comment #3, bug #60993 (project octave):

There's a workaround to protect you against resource exhaustion if you think
you might forget to close files, but you'll have to port it from Linux to
Windows yourself. Type the following line in a new Octave session, or in a
script that opens lots of files:


system(sprintf("prlimit --pid %d --nofile=100", getpid()));
# here 100 is the maximum number of files that you want to allow Octave to
open. Change it as you need.


If Windows doesn't have prlimit, you'll have to find out how to set resource
limits in Windows.

But this is not an Octave bug or a limitation in any case. Resource limits can
be broken with any programming language, usually leading to a frozen system.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60993>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]