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." [EMAIL PROTECTED] | - The Red Hot Chili Peppers http://wooledge.org/~greg/ |
msg01035/pgp00000.pgp
Description: PGP signature