Increasing memory limit for recursive audio file finder

[email protected]
Newsgroups gmane.comp.audio.netjuke.user
Message-ID <[email protected]>
I'm sure it's been mentioned somewhere before, but I'm a PHP rookie so
it took me a while.

When importing huge directory trees, Netjuke would stop early (before
print any status or importing anything) and report a "memory
exhausted" error.

Rather than tediously hand-select subdirectories to import, I changed
the PHP memory limit on the server in PHP's init file.  On my Debian
machine, this is /etc/php4/apache/php.ini.

This line is the cause:
memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)

I increased it to 64M, and can now import entire trees at once.

I know this isn't an option for everyone, and I'm sure I've taxed my
server by allowing such huge scripts to run, but this particular
machine exists just for Netjuke.

(This is separate from the old (fixed) Netjuke bug that would error at
the same script for having too many open files.)

-Steve


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.