One more note for OpenBSD users:

By default, it seems that normal (non-root) users in OpenBSD 3.1
get a soft limit of 64 open files.  This is not enough for a busy
Freenet node with the default number of threads.  The hard limit
on open files is 128, though, so if you raise your open file
descriptor limit to 128 and then decrease the number of threads
(not sure what the optimal number is yet), then it works MUCH better.

(You can raise the number of open files permitted by running
"ulimit -n 128" in bash.  For other shells, consult the Fine Manual.)

The symptom, before I raised the limit, was "Document contains no data"
intermittently when accessing services via a web browser, together
with "java.io.FileNotFoundException: Too many open files" errors in
the freenet log file.  (The last was a dead giveaway as to where the
problem lay. ;-) )

Developers: how many open file descriptors does a running Freenet
node use?  (Does the Java VM make a difference?)  Is it 1 per thread
plus a constant?

-- 
Greg Wooledge                  |   "Truth belongs to everybody."
greg at wooledge.org              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20020826/15b24d66/attachment.pgp>

Reply via email to