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

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

[Octave-bug-tracker] [bug #42044] octave 3.8.1: huge memory use on pkg l


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #42044] octave 3.8.1: huge memory use on pkg load io
Date: Fri, 04 Apr 2014 15:43:53 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22.1

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

This may be due to the way the io pkg tries to automatically find Java
spreadsheet class libs.

PKG_ADD (invoked when you load io) starts a function that searches in a few
predefined places + subdirs (max 2 subdir levels deep), see below. So if you
have many subdirs and files there, searches may take some time.

Hint: if you do not need spreadsheet I/O, try to set an environment flag:

export OCTAVE_IO_JAVALIBS=no

before starting Octave, then PKG_ADD will skip searching.


FYI, the places where PKG_ADD searches on Linux systems are (for "regular"
spreadsheet I/O java class libs like Apache POI):
/usr/share/java/
~/java/
+  a subdir conveyed using environment var "OCTAVE_IO_JAVALIBS" (I suppose you
didn't set that)

... and for OpenOffice /LibreOffice:
/usr/lib/<bnam>
/opt/<bnam>
where <bnam> is "OpenOffice.org*", "LibreOffice*" or "ooo", in that order.

So if you have exceptionally many files in one or more of those places
PKG_ADD's search can take a while.

On all Linux systems I peeked in, /usr/share/java usually didn't have more
than some tens of files so a search there should go fairly rapidly. Same holds
for the other searched subdirs mentioned above.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42044>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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