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

2004-08-19 Thread Steve
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]


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

2004-08-19 Thread Don Gregory
  And yeah, typically 15-20 minutes.  And when I say crash, I 
 mean the 
  whole system powers down.  Goes to a black screen, my monitor shuts 
  down, etc...
 
 That is surely a heat problem.

Yeah, I know that's what it sounds like, but that ain't it.  I finally
got it figured out today.  Apparently, SP2 reset my power-saving
settings in my display properties, so it made my monitor power-down
after 20 minutes.  Man, do I feel foolish!  But in my own defense, I've
had heat-related crashes in the past, and that's the ONLY time my
monitor ever goes into power-down mode, cuz I long ago set it to never
do that.

It WAS kinda puzzling that my monitor would go into power-down mode, yet
my PC's power light would stay on.  Usually during a heat-related crash,
it'd just reboot.  This time, it just sat there with a black monitor.
It struck me as odd, but the screensaver thing didn't occur to me right
away.

Though I appreciate your efforts to help me.  Thanks.  

I may have to quit running it anyway.  It's starting to seem to me that
running a node is a little bigger commitment than your typical P2P
client, and that it's really more appropriate for running on it's own
machine.  I don't know that it'll be practical to keep it up and running
24/7 on my desktop system, as it is now.  But we'll see.  I'll leave it
running overnight tonight and see how things go.  I did some research
today, and did some tweaking to my freenet.ini to try to get things
working a little better.  Time will tell.

Anyway, thanks again.

Don



___
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]


[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] 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]


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]