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

2004-08-26 Thread Steve
On Sun, Aug 22, 2004 at 09:15:13PM -0700, Steve wrote:
 Thanks for the response folks!
 
 I _am_ running gentoo, and i was using /etc/init.d/freenet to start my node.  That 
 means that freenet was running with a mem max of 256MB.  However, The amount of 
 memory used was MUCH higher than that.  When I shut my node down, top would tell me 
 that between swap and ram I would free up about 500 megs of ram after freenet ran 
 for a day or so.I wasn't looking at individual virt or ecc values.  

You must have been looking at one of them! WHICH ONE?! What did Freenet
claim it was using on the Environment page? 500MB is neither unusual nor
a problem if it's VIRT, because of the wierd way memory is counted.
Also, if it is using a lot more real RAM than expected, it's probably
the JVM's fault.
 
 I changed the java mem limit in /etc/init.d/ to 192, unfortunately, I haven't been 
 around to run my node, so I can't report any performance differences.   
-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.


Honestly, the fields that I watched did not say virt or ecc. I was watching the total 
memory display at the top of top:

Mem:385672k total,   379892k used, 5780k free, 6472k buffers
Swap:   687952k total,   109924k used,   578028k free,88360k cached

I wasn't watching the normal virt or ecc values because freenet spawns tens of 
processes and I know that memory is counted weird there.  So I just looked at total 
memory use, at the top of the display, and watched it drop as I killed freenet.  It 
may be a virtual machine problem, so I'll install another one later.  I'm currently 
using blackdown-jdk 1.4.1
___
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-23 Thread Toad
On Sun, Aug 22, 2004 at 09:15:13PM -0700, Steve wrote:
 Thanks for the response folks!
 
 I _am_ running gentoo, and i was using /etc/init.d/freenet to start my node.  That 
 means that freenet was running with a mem max of 256MB.  However, The amount of 
 memory used was MUCH higher than that.  When I shut my node down, top would tell me 
 that between swap and ram I would free up about 500 megs of ram after freenet ran 
 for a day or so.I wasn't looking at individual virt or ecc values.  

You must have been looking at one of them! WHICH ONE?! What did Freenet
claim it was using on the Environment page? 500MB is neither unusual nor
a problem if it's VIRT, because of the wierd way memory is counted.
Also, if it is using a lot more real RAM than expected, it's probably
the JVM's fault.
 
 I changed the java mem limit in /etc/init.d/ to 192, unfortunately, I haven't been 
 around to run my node, so I can't report any performance differences.   
-- 
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] I need to limit the amount of memory java uses.

2004-08-22 Thread Steve
Thanks for the response folks!

I _am_ running gentoo, and i was using /etc/init.d/freenet to start my node.  That 
means that freenet was running with a mem max of 256MB.  However, The amount of memory 
used was MUCH higher than that.  When I shut my node down, top would tell me that 
between swap and ram I would free up about 500 megs of ram after freenet ran for a day 
or so.I wasn't looking at individual virt or ecc values.  

I changed the java mem limit in /etc/init.d/ to 192, unfortunately, I haven't been 
around to run my node, so I can't report any performance differences.   
___
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] 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] 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] 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]


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]