Subject: Re: How to run freenet?
To: None <netbsd-help@netbsd.org>
From: Gan Uesli Starling <alias@starling.us>
List: netbsd-help
Date: 12/11/2005 02:10:59
Gan Uesli Starling wrote:
> Thought I'd try freenet from this url...
> 
> http://www.freenetproject.org/index.php?page=download
> 
> ...when I check on Java, which it needs, I find this...
> 
> baal: {1} pkg_info | grep jre
> sun-jre14-2.8       Sun's Java(tm) 2 Runtime Environment 1.4.2
> baal: {2}
> 
> ...so it seems okay to start freenet, but when I do I get this..
> 
> baal: {1} cd freenet
> baal: {2} sh start-freenet.sh
> Detected freenet-ext.jar
> Detected freenet.jar
> Starting Freenet now: Command line: java -Xmx128m freenet.node.Main
> Done
> baal: {3} Java HotSpot(TM) Client VM warning: Can't detect initial 
> thread stack location
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
> 
> baal: {3}
> 
> ...so my question is, "Do I need more swap or something? Or is it
> something else?"
> 

Okay, per instructions in...

pkg_info -D sun-jre14-2.8

...I added this line to /etc/fstab ...

procfs /emul/linux/proc procfs rw,linux

...yet result is the same. Yet it also says...

Furthermore, the maximum data segment size assigned to your user must be
at least 262144.

...but I don't know what that means, unless it has to do with this...

baal: {5} sysctl proc
proc.curproc.corename = %n.core
proc.curproc.rlimit.cputime.soft = unlimited
proc.curproc.rlimit.cputime.hard = unlimited
proc.curproc.rlimit.filesize.soft = unlimited
proc.curproc.rlimit.filesize.hard = unlimited
proc.curproc.rlimit.datasize.soft = 134217728
proc.curproc.rlimit.datasize.hard = 1073741824
proc.curproc.rlimit.stacksize.soft = 2097152
proc.curproc.rlimit.stacksize.hard = 33554432
proc.curproc.rlimit.coredumpsize.soft = unlimited
proc.curproc.rlimit.coredumpsize.hard = unlimited
proc.curproc.rlimit.memoryuse.soft = 3739054080
proc.curproc.rlimit.memoryuse.hard = 3739054080
proc.curproc.rlimit.memorylocked.soft = 1246351360
proc.curproc.rlimit.memorylocked.hard = 3739054080
proc.curproc.rlimit.maxproc.soft = 160
proc.curproc.rlimit.maxproc.hard = 532
proc.curproc.rlimit.descriptors.soft = 64
proc.curproc.rlimit.descriptors.hard = 1772
proc.curproc.stopfork = 0
proc.curproc.stopexec = 0
proc.curproc.stopexit = 0
baal: {6}

...in which case I seem to be okay, I think. What next, please?