Paul <[EMAIL PROTECTED]> writes:

> 
> Can we get this Mac OS X native jbigi library incorporated in to 
> future Freenet releases?
> 
> I've been running Freenet on Mac OS X for about two years now. It 
> usually runs for 2 to 7 days before it grinds to a halt with either 
> an out of memory error or some kind of error in the "abstractor loop".
> 
> Having better performance while Freenet is up would be great. Fixing 
> the above errors would also be nice.
> 
> Thanks,
> Paul
> 

I'm about to test it over the weekend and see what happens.
I know Java 1.4.2 (at least the latest version installed
with 10.3.9) will crater with Kernel Panics. It sounds a lot
like the problems that Azureus suffered from on Dual Processor
Macs. When too many connections were opened simultaniously,
Azureus would kernel panic. Apparently they found a work-
around though.

For my test this weekend, I'm gonna go for broke and use the
latest JVM available for Tiger (1.5.0_04-39) and see how it
goes. (If anyone else installs it, keep in mind your computer
will continue to use the 1.4.X version unless you change a
specific directory link, or use a hard coded path to the java
1.5 binary.)

I did see some things in the start-freenet.sh script that
might need to be changed to improve performance/clarity.

First, it doesn't set the java argument -xx:MaxDirectMemorySize
if you are running on OSX with JVM 1.4.2 or later. That is a
legit flag for the OSX Sun JVM, so I don't know why it skips that
argument only on OSX (Darwin). I'm just commenting out the
"if" and "fi" statements above and below the line that sets
that argument.

Second, when launched on a machine running a JVM later than
1.4.2, it still says you are using 1.4.2. It should say:
"Sun Java 1.4.2 or later detected."

Finally, as the readme suggests, I'm adding these lines to the
start script just before the "Starting freenet now" line:

if test `uname` == "Darwin"; then
ulimit -S -n 1024
fi

That ups the file descriptor limit to the same as the default
on other platforms. After that, you need to up the
"maxNodeConnections" parameter to 512 in the config file.

I'm also upping the memory limit to -Xmx256m just because the
machine has a decent amount of ram.

With these changes, OSX should be running with the same
parameters as linux or windows.

_______________________________________________
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]

Reply via email to