On Friday 27 June 2003 12:18 pm, Tom Kaitchuck wrote: > I just downloaded freenet-unstable-20030627 and running it with j2sdk1.4.2 > gives me the following: > > java.lang.OutOfMemoryError > at java.nio.Bits.reserveMemory(Bits.java:618) > at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:95) > at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:285) > at sun.nio.ch.Util.getTemporaryDirectBuffer(Util.java:54) > at sun.nio.ch.IOUtil.read(IOUtil.java:205) > at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) > at > freenet.transport.ReadSelectorLoop.inspectChannels(ReadSelectorLoop.java:22 >0) at > freenet.transport.AbstractSelectorLoop.loop(AbstractSelectorLoop.java:416) > at > freenet.transport.ReadSelectorLoop.run(ReadSelectorLoop.java:371) at > java.lang.Thread.run(Thread.java:534) ... > > It goes on ... Any Ideas?
Nevermind that. It can be fixed by adding the line: JAVA_ARGS="-Xms128m -Xmx192m $JAVA_ARGS" into the start-freenet.sh script. j2sdk1.4.2 seems to have changed the default max memory to 64megs. After I added this line freenet seems to be using LESS memory! I don't know why that would be, but that line should probably be added just because one can't be totally sure what the VM is allowing. (BTW: is there an easy way to reduce Freenet's overhead 128megs just seems like a lot.) _______________________________________________ devl mailing list [EMAIL PROTECTED] http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl
