Re: [freenet-support] I need to limit the amount of memory java uses.

2004-08-19 Thread Toad
Interesting. This does not set a limit, so it would use the default.
Which is 64MB! Are you sure you're not reading the wrong memory usage
indicator? VIRT is pretty meaningless, RSS is more interesting iirc...

On Wed, Aug 18, 2004 at 11:57:09PM -0700, Steve wrote:
> I've read that there should be a parameter that limits java's mem usage in 
> /usr/bin/start-freenet.sh. Mine seems to lack that parameter.  here is a copy of my 
> start-freenet.sh:
> 
> #!/bin/bash
> # This script is a companion script to the Gentoo freenet init script.
> # Logs freenet's stdout and stderr for debugging needs.
> #
> # Author: Brandon Low <[EMAIL PROTECTED]>
> #
> ${JAVA} ${JAVA_ARGS} freenet.node.Main -p /etc/freenet.conf \
> > /var/freenet/freenet.stdout.log 2> /var/freenet/freenet.stderr.log &
> echo $!
> 
> My node eats up HUNDREDS of megs of ram after several hours, and I need to limit it. 
>  what do I need to add to this file?
> ___
> Support mailing list
> [EMAIL PROTECTED]
> http://news.gmane.org/gmane.network.freenet.support
> Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:[EMAIL PROTECTED]

-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.


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

RE: [freenet-support] Problems with Freenet: from a windowsperspective.

2004-08-19 Thread Don Gregory
Ah, okay.  Yeah, kinda n00b here.  Now that you mention it, it didn't
really seem to make a difference.  Musta been an older faq.

Don


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Jay Oliveri
> Sent: Thursday, August 19, 2004 2:15 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [freenet-support] Problems with Freenet: from a 
> windowsperspective.
> 
> 
> Transient isn't that relevant anymore; the current build in 
> CVS has all 
> traces of the Transient property removed.
> 
> So you won't notice much of a difference using this property 
> on stable 
> (build 5091).
> 
> On Thursday 19 August 2004 03:05 am, Don Gregory wrote:
> > Well, I HAVE bumped into the half-open connection limit 
> once or twice. 
> > Mostly it's an issue for people using P2P clients, edonkey, 
> overnet, 
> > etc...  It's easy enough to fix anway.
> >
> > I did some reading on the subject, and the recommendation I 
> got was to 
> > manually change the config file to have 
> "TransientNode=False" in it. 
> > Apparently Freenet won't integrate into the network as well 
> if you're 
> > set to transient.  In the process of testing it now.  I'll 
> know better 
> > in a day or so.
> >
> > Don
> 
> -- 
> Jay Oliveri
> GnuPG ID: 0x5AA5DD54
> FCPTools Maintainer
> www.sf.net/users/joliveri 
> ___
> Support mailing list
> [EMAIL PROTECTED] 
> http://news.gmane.org/gmane.network.freenet.su> pport
> 
> Unsubscribe at 
> http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:[EMAIL PROTECTED]
> 


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


RE: [freenet-support] Re: Freenet causing crashes...

2004-08-19 Thread Don Gregory
That's good to know.  Thanks.  In the event log, does the message say
"TCP/IP has reached the security limit imposed on the number of
concurrent TCP connect attempts."?  Cuz if so, that's the 10 half-open
connection thing I mentioned in an earlier post.  So far, that's the
only TCPIP messages I've gotten in event manager, personally.

Don


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Wayne McDougall
> Sent: Thursday, August 19, 2004 12:13 AM
> To: [EMAIL PROTECTED]
> Subject: [freenet-support] Re: Freenet causing crashes...
> 
> 
> > On Wed, Aug 18, 2004 at 02:11:40PM -0400, Don Gregory wrote:
> > > Anybody else here have any trouble with Freenet running 
> on XP SP2?  
> > > I know SP2 is still a bit new to most people, and it's a 
> > > HUGE service pack, weighing in at over 260M, and 
> it screws 
> > > with hundreds of system files, so I'd like to be able to 
> rule that 
> > > out definitively if anybody here is using SP2 with 
> Freenet without 
> > > incident.  There have been reports of it messing with 
> other pieces 
> > > of software, so I naturally assumed this might be a 
> likely suspect.
> 
> Adding a data point. I'm running Freenet on XP SP2 with no 
> problems at all.
> 
> The only point I've noted is that SP2 will throttle TCP/IP 
> connections if too many failed connections occur in too short 
> a time. When I restart Freenet I'll get a few events in the 
> event log reporting that the throttling has kicked in. My 
> assumption is that freenet is trying to reestablish 
> connections to the nodes it knew about previously - some of 
> which aren't there any more.
> 
> This has done no harm that I can observe. Freenet has no 
> problems starting up and isn't noticeably slower at doing so. 
> It seems to run just the same as before and I haven't 
> observed any connection throttling during Freenet operations.
> 
> I'm happy.
> 
> 
> 
> 
> 
> 
> ___
> Support mailing list
> [EMAIL PROTECTED] 
> http://news.gmane.org/gmane.network.freenet.su> pport
> 
> Unsubscribe at 
> http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:[EMAIL PROTECTED]
> 


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


RE: [freenet-support] Problems with Freenet: from a windows perspective.

2004-08-19 Thread Don Gregory
Well, I HAVE bumped into the half-open connection limit once or twice.
Mostly it's an issue for people using P2P clients, edonkey, overnet,
etc...  It's easy enough to fix anway.

I did some reading on the subject, and the recommendation I got was to
manually change the config file to have "TransientNode=False" in it.
Apparently Freenet won't integrate into the network as well if you're
set to transient.  In the process of testing it now.  I'll know better
in a day or so.

Don


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Michael DeLisle
> Sent: Thursday, August 19, 2004 1:38 AM
> To: [EMAIL PROTECTED]
> Subject: [freenet-support] Problems with Freenet: from a 
> windows perspective.
> 
> 
>   I recently installed a new node from scratch on a 
> Windows XP SP2 box, 
> and here are my observations.
> 
>   While there's lots of talk about SP2 limiting TCP 
> connections, I 
> haven't see any real issues with it.
> 
>   On the negative side, freenet-java-webinstall.exe is 
> configured to 
> install Sun JRE 1.4.1, when I believe it should install 1.4.2.
> 
>   After 5 hours of uptime I only have 72 open 
> connections.  This was a 
> problem I experienced on my linux based node too; either the 
> seednodes.ref file is inadequate (weighing in at 26mB!) or 
> Freenet 5091 
> isn't aggressive enough about meeting maxNodeConnections.
> 
>   I would also like to point out that I'm currently only 
> using ~50% of 
> my upstream bandwidth, based on frequent observation of the "General 
> Information" page.  Perhaps Freenet should be more apt to take 
> advantage of newbie nodes?
> 
>   If there's any other information that would be of 
> assistance, please 
> let me know.
> 
> --mikeDOTd
> 
> ___
> Support mailing list
> [EMAIL PROTECTED] 
> http://news.gmane.org/gmane.network.freenet.su> pport
> 
> Unsubscribe at 
> http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:[EMAIL PROTECTED]
> 


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


Re: [freenet-support] I need to limit the amount of memory java uses.

2004-08-19 Thread Salah Coronya
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Steve wrote:
> I've read that there should be a parameter that limits java's mem
usage in /usr/bin/start-freenet.sh. Mine seems to lack that parameter.
here is a copy of my start-freenet.sh:
>
> #!/bin/bash
> # This script is a companion script to the Gentoo freenet init script.
> # Logs freenet's stdout and stderr for debugging needs.
> #
> # Author: Brandon Low <[EMAIL PROTECTED]>
> #
> ${JAVA} ${JAVA_ARGS} freenet.node.Main -p /etc/freenet.conf \
> > /var/freenet/freenet.stdout.log 2>
/var/freenet/freenet.stderr.log &
> echo $!
>

You must be a Gentoo user like me. Look in /etc/conf.d/freenet.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBJMu/hctESbvQ8ZwRAu96AJ9yZ1FvTcgezNdF2N9UgxAqUxi5vgCeMdn0
U7Ep+ybfTDiWjuvwFiKiL0E=
=NwIu
-END PGP SIGNATURE-
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] I need to limit the amount of memory java uses.

2004-08-19 Thread dave
etc/freenet.conf according to that command line?

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Steve wrote:
>> I've read that there should be a parameter that limits java's mem
> usage in /usr/bin/start-freenet.sh. Mine seems to lack that parameter.
> here is a copy of my start-freenet.sh:
>>
>> #!/bin/bash
>> # This script is a companion script to the Gentoo freenet init script.
>> # Logs freenet's stdout and stderr for debugging needs.
>> #
>> # Author: Brandon Low <[EMAIL PROTECTED]>
>> #
>> ${JAVA} ${JAVA_ARGS} freenet.node.Main -p /etc/freenet.conf \
>> > /var/freenet/freenet.stdout.log 2>
> /var/freenet/freenet.stderr.log &
>> echo $!
>>
>
> You must be a Gentoo user like me. Look in /etc/conf.d/freenet.
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.4 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFBJMu/hctESbvQ8ZwRAu96AJ9yZ1FvTcgezNdF2N9UgxAqUxi5vgCeMdn0
> U7Ep+ybfTDiWjuvwFiKiL0E=
> =NwIu
> -END PGP SIGNATURE-
> ___
> Support mailing list
> [EMAIL PROTECTED]
> http://news.gmane.org/gmane.network.freenet.support
> Unsubscribe at
> http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:[EMAIL PROTECTED]
>


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


Re: [freenet-support] Freenet doesn't work

2004-08-19 Thread Salah Coronya
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nicola wrote:

> Hello,
> I've tried the latest freenet version,Stable build 5090, under Fedora
Core 2
> x86_64 . Unfortunately it stops at the beginning. I'm pasting the
relevant
> lines:
>
> Sun java detected.
> head: error while loading shared libraries: libc.so.6: cannot open shared
> object file: No such file or directory
> sed: error while loading shared libraries: libc.so.6: cannot open shared
> object file: No such file or directory
> grep: error while loading shared libraries: libc.so.6: cannot open shared
> object file: No such file or directory
> grep: error while loading shared libraries: libc.so.6: cannot open shared
> object file: No such file or directory
> grep: error while loading shared libraries: libc.so.6: cannot open shared
> object file: No such file or directory
> Sun Java 1.4.2 detected.
> Starting Freenet now: Command line: java -Xmx128m
- -XX:MaxDirectMemorySize=128m
> freenet.node.Main
> nice: error while loading shared libraries: libc.so.6: cannot open shared
> object file: No such file or directory
>
> Of course there is libc.so.6, both 32 and 64 bit version. And java works
> flawlessly, taken from Sun's site, x86 version (32 bit)
> whereis java
> java: /usr/bin/java /usr/share/java
> java -version
> java version "1.4.2_04"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
> Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
>
> I have also used the update.sh command, to no avail.
> Any ideas?
>

I've seen the same thing on Gentoo; its a NPTL problem. Comment out the
LD_ASSUME_KERNEL line and that will fix it.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBJM3thctESbvQ8ZwRAgeXAJ4/Ou5hiOizUXm/iBKBv08wHYXn9gCfSP8L
8mV2KQBIel5o0LG5Kriv3TQ=
=+Pji
-END PGP SIGNATURE-
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] reseed

2004-08-19 Thread Robert Greenage
Here is what the node reference status looks like this morning.Last night
when I shut the machine down ( I do not have broadband) I had 120 known
routing nodes. Is there something I need to change in the config?



Number of known routing nodes 20 
Number of node references 20 
Number of newbie nodes 6 
Number of uncontactable nodes 0 
Contacted and attempted to contact node references 20 
Contacted node references 6 
Contacted newbie node references 6 
Connections with Successful Transfers 0 
Backed off nodes 6 
Connection Attempts 113 
Successful Connections 7 
Lowest max estimated search time 0ms 
Lowest max estimated DNF time 0ms 
Lowest global search time estimate 10568.0ms 
Highest global search time estimate 21760.0ms 
Lowest global transfer rate estimate 0 bytes/second 
Highest global transfer rate estimate 0 bytes/second 
Lowest one hop probability of DNF 0.999 
Highest one hop probability of DNF 0.999 
Lowest one hop probability of transfer failure 0.95 
Highest one hop probability of transfer failure 0.95 
Single hop probability of QueryRejected 0.02127659574468085 
Single hop average time for QueryRejected 990.0 
Single hop probability of early timeout 0.6086956521739131 
Single hop average time for early timeout 20097.6937872165 
Single hop probability of search timeout 0.5556 
Single hop average time for search timeout 36361.0 
Single hop overall probability of DNF given no timeout 0.9990089197224975 
Single hop overall probability of transfer failure given transfer 0.9 
Probability of transfer given incoming request 6.009615384615385E-4 
Total number of requests that didn't QR 46 
Total number of reqests that timed out before a QR or Accepted 28 
Implementation freenet.node.rt.NGRoutingTable 
in 
This node's reference

Minimum contact probability:  
Minimum successful connections:  

> [Original Message]
> From: Toad <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Date: 8/19/04 2:29:44 AM
> Subject: Re: [freenet-support] reseed
>
> On Wed, Aug 18, 2004 at 06:10:11PM +, Robert Greenage wrote:
> > Following a reformat of the HDD and a reinstallation of the OS I also
had to reinstall freenet. Subsequently I must reseed every time I turn the
machine on and start freenet (I don't have broadband) . This never happened
prior to the OS reinstall. Is there something I need to change in the
Flaunch.ini? Also I used to get overwhelmed with logs and now nothing logs?
>
> Eh? What do you mean...? You must reseed? Why?
> -- 
> Matthew J Toseland - [EMAIL PROTECTED]
> Freenet Project Official Codemonkey - http://freenetproject.org/
> ICTHUS - Nothing is impossible. Our Boss says so.


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


[freenet-support] Re: reseed

2004-08-19 Thread Someone
Which build are you running, you need at least 5089 to connect to the
network. If you aren't running 5091 you should really UPGRADE.
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Problems with Freenet: from a windows perspective.

2004-08-19 Thread Jay Oliveri
Transient isn't that relevant anymore; the current build in CVS has all 
traces of the Transient property removed.

So you won't notice much of a difference using this property on stable 
(build 5091).

On Thursday 19 August 2004 03:05 am, Don Gregory wrote:
> Well, I HAVE bumped into the half-open connection limit once or twice.
> Mostly it's an issue for people using P2P clients, edonkey, overnet,
> etc...  It's easy enough to fix anway.
>
> I did some reading on the subject, and the recommendation I got was to
> manually change the config file to have "TransientNode=False" in it.
> Apparently Freenet won't integrate into the network as well if you're
> set to transient.  In the process of testing it now.  I'll know better
> in a day or so.
>
> Don

-- 
Jay Oliveri
GnuPG ID: 0x5AA5DD54
FCPTools Maintainer
www.sf.net/users/joliveri
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


RE: [freenet-support] Re: reseed

2004-08-19 Thread Robert Greenage
I am running 5091.


> [Original Message]
> From: Someone <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: 8/19/04 9:07:21 PM
> Subject: [freenet-support] Re: reseed
>
> Which build are you running, you need at least 5089 to connect to the
> network. If you aren't running 5091 you should really UPGRADE.
>
> ___
> Support mailing list
> [EMAIL PROTECTED]
> http://news.gmane.org/gmane.network.freenet.support
> Unsubscribe at
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:[EMAIL PROTECTED]


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


Re: [freenet-support] I need to limit the amount of memory java uses.

2004-08-19 Thread Jay Oliveri
I think Salah is correct (provided you're running Gentoo).  freenet.conf 
does *not* contain any information that's passed to the JVM.  That 
information (according to your start-freenet.sh file) is set to the 
variable $JAVA_ARGS.

You might find $JAVA_ARGS defined in /etc/conf.d/freenet; look for -Xmx.

On Thursday 19 August 2004 11:53 am, [EMAIL PROTECTED] wrote:
> etc/freenet.conf according to that command line?
>
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Steve wrote:
> >> I've read that there should be a parameter that limits java's mem
> >
> > usage in /usr/bin/start-freenet.sh. Mine seems to lack that parameter.
> >
> > here is a copy of my start-freenet.sh:
> >> #!/bin/bash
> >> # This script is a companion script to the Gentoo freenet init script.
> >> # Logs freenet's stdout and stderr for debugging needs.
> >> #
> >> # Author: Brandon Low <[EMAIL PROTECTED]>
> >> #
> >> ${JAVA} ${JAVA_ARGS} freenet.node.Main -p /etc/freenet.conf \
> >>
> >> > /var/freenet/freenet.stdout.log 2>
> >
> > /var/freenet/freenet.stderr.log &
> >
> >> echo $!
> >
> > You must be a Gentoo user like me. Look in /etc/conf.d/freenet.
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.2.4 (MingW32)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> >
> > iD8DBQFBJMu/hctESbvQ8ZwRAu96AJ9yZ1FvTcgezNdF2N9UgxAqUxi5vgCeMdn0
> > U7Ep+ybfTDiWjuvwFiKiL0E=
> > =NwIu
> > -END PGP SIGNATURE-

-- 
Jay Oliveri
GnuPG ID: 0x5AA5DD54
FCPTools Maintainer
www.sf.net/users/joliveri
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] reseed

2004-08-19 Thread Jay Oliveri
On Thursday 19 August 2004 02:51 am, Robert Greenage wrote:
> Here is what the node reference status looks like this morning.Last night
> when I shut the machine down ( I do not have broadband) I had 120 known
> routing nodes. Is there something I need to change in the config?
>
> Connections with Successful Transfers 0
> Backed off nodes 6   ^^^
> Connection Attempts 113
> Successful Connections 7

0 transfers?  Are you behind a firewall?  If so, did you map the right port 
from the firewall to your machine running Freenet?  What version of Java 
are you running?  What OS and version?  Lotsa questions..

-- 
Jay Oliveri
GnuPG ID: 0x5AA5DD54
FCPTools Maintainer
www.sf.net/users/joliveri
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] I need to limit the amount of memory java uses.

2004-08-19 Thread evolution
Quoting Steve <[EMAIL PROTECTED]>:

> I've read that there should be a parameter that limits java's mem usage in
> /usr/bin/start-freenet.sh. Mine seems to lack that parameter.  here is a copy
> of my start-freenet.sh:
>
> #!/bin/bash
> # This script is a companion script to the Gentoo freenet init script.
> # Logs freenet's stdout and stderr for debugging needs.
> #
> # Author: Brandon Low <[EMAIL PROTECTED]>
> #
> ${JAVA} ${JAVA_ARGS} freenet.node.Main -p /etc/freenet.conf \
> > /var/freenet/freenet.stdout.log 2> /var/freenet/freenet.stderr.log
> &
> echo $!

Steve: This is interesting.  If you don't submit a bug report to
bugs.gentoo.org, I will.  This script, /usr/bin/start-freenet.sh is essentially
another method of running Freenet on Gentoo, the other being
'/etc/init.d/freenet start'.  The init script correctly sets JVM memory usage,
but the above doesn't, of course.  The init script properly sets memory usage
by looking in /etc/conf.d/freenet.  In /etc/conf.d/freenet, the environment
variable called "$JAVA_OPTIONS" is set to "-Xmx256M", by default.

There are two ways you could fix this.  1) is to change the above script to
somehow have the "-Xmx256M" option passed to ${JAVA}, along with what's already
there.  Either add it directly or set $JAVA_OPTIONS and add that.  2) is to run
Freenet from the initscript, which requires being root.

Number 2, of course, is much better than number 1.  For one thing, your number 1
will get overwritten in the future.

Let me/us know if you still have problems.

-todd

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


[freenet-support] Gentoo Freenet Script

2004-08-19 Thread evolution
If you're running Freenet from a Portage-installed package on Gentoo, the
following script will work.

--

#!/bin/sh
# Freenet Wrapper Script

if [ ${1} == "start" ]; then
echo "/etc/init.d/freenet start"
/etc/init.d/freenet start
fi

if [ ${1} == "stop" ]; then
echo "/etc/init.d/freenet stop"
/etc/init.d/freenet stop
fi

if [ ${1} == "restart" ]; then
echo "/etc/init.d/freenet restart"
/etc/init.d/freenet restart
fi

# The most important part follows.  This is to
# update the node.  The others are almost as easy
# to do myself, from the command line.  But the
# update script is the heart of the matter.

if [ ${1} == "update" ]; then
cp -f /usr/lib/freenet/freenet.jar.old
/usr/lib/freenet/freenet.jar.ancient
cp -f /usr/lib/freenet/freenet.jar /usr/lib/freenet/freenet.jar.old
wget http://freenetproject.org/snapshots/freenet-latest.jar -O
/usr/lib/freenet/freenet.jar
wget http://freenetproject.org/snapshots/seednodes.ref.bz2 -O
/var/freenet/seednodes.ref.bz2
bunzip2 -f /var/freenet/seednodes.ref.bz2

touch -d "1/1/1970" /var/freenet/seednodes.ref
chown freenet:freenet /var/freenet/seednodes.ref
fi

--

Call this script "freenet" and add it to your $PATH and running/administering
Freenet becomes a matter of typing 'freenet start'.  This may not be useful,
it's almost just as easy to type '/etc/init.d/freenet start', or you may have
'rc-update add freenet default' in the past.  But the fourth option 'freenet
update' is where it gets interesting.  The default install of Freenet, via
Portage, requires you to type that god-awful ebuild-config-wait-2-seconds
thing.  Once you get that typed in you have the problem of wget nuking your
Freenet jar if freenetproject.org is down.  This happened to me.  Wget tried to
overwrite the freenet.jar, but since the website was down, got no further than
the 0th byte, leaving me with no Freenet. =(

The above script fixes both of these issues.  It simplifies the command to
update Freenet, and it makes a backup of freenet.jar before downloading the new
one.

Caveats: It actually makes two backups.  This is probably not useful to anybody.
 You can remove the creation of the second backup.  Also, this doesn't handle
updating unstable nodes.  But if you're running unstable, you're more than
likely not running a Portage ebuild of Freenet.  Third caveat, I suppose, is
that this doesn't give you a 'freenet config' command.  'vi /etc/freenet.conf'.

-todd

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