Re: [freenet-support] freenet load always >100%

2003-11-22 Thread The Babbler



On Wednesday 12 November 2003 02:38 am, Niklas Bergh wrote:
| > I'm not seeing this but now that the world seems to have "discovered" my
|
| node,
|
| > my JVM keeps dying with out-of-memory and NULL pointer exceptions.  I
|
| still
|
| > have plenty of (virtual) memory left, so something else must be serving
| > as
|
| a
|
| > "cap" on the memory that java can get.
| >
| > This might be a java tuning parameter or a kernel setting (I'm using
|
| FreeBSD
|
| > 4.9-STABLE), but if anybody has any clues I'm appreciate it.  My current
| > solution of "shutting down freenet every time it happens and restarting
|
| it"
|
| > is getting old fast especially since that's getting to be about every
| > hour now.
|
| OOM:s usually causes NPE:s as a side effect. To allow java to use more
| memory spawn your node with something like 'java -Xmx256M XX'.
| Depending on which JVM version you are running the default maximum amount
| of memory the JVM will use is either 64 or 128 megs which is usually too
| little memory for a popular node to work well.

Yeah, actually I knew that the NULLs were a secondary effect.

Anyway, I've upped the memory and haven't had the problem again in the week or 
so since then.  Thanks.

(Surely the default memory is rarely adequate; would it make sense for the 
freenet-start.sh to just do this by default?)

___
Support mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support


Re: [freenet-support] freenet load always >100%

2003-11-12 Thread Niklas Bergh
> I'm not seeing this but now that the world seems to have "discovered" my
node,
> my JVM keeps dying with out-of-memory and NULL pointer exceptions.  I
still
> have plenty of (virtual) memory left, so something else must be serving as
a
> "cap" on the memory that java can get.
>
> This might be a java tuning parameter or a kernel setting (I'm using
FreeBSD
> 4.9-STABLE), but if anybody has any clues I'm appreciate it.  My current
> solution of "shutting down freenet every time it happens and restarting
it"
> is getting old fast especially since that's getting to be about every hour
> now.

OOM:s usually causes NPE:s as a side effect. To allow java to use more
memory spawn your node with something like 'java -Xmx256M XX'. Depending
on which JVM version you are running the default maximum amount of memory
the JVM will use is either 64 or 128 megs which is usually too little memory
for a popular node to work well.

/N

___
Support mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support


Re: [freenet-support] freenet load always >100%

2003-11-12 Thread Brian T. Schellenberger

I'm not seeing this but now that the world seems to have "discovered" my node, 
my JVM keeps dying with out-of-memory and NULL pointer exceptions.  I still 
have plenty of (virtual) memory left, so something else must be serving as a 
"cap" on the memory that java can get.

This might be a java tuning parameter or a kernel setting (I'm using FreeBSD 
4.9-STABLE), but if anybody has any clues I'm appreciate it.  My current 
solution of "shutting down freenet every time it happens and restarting it" 
is getting old fast especially since that's getting to be about every hour 
now.



On Tuesday 11 November 2003 07:22 pm, Damian Gerow wrote:
| Thus spake "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> [16:34:02 11/11/03:
| : >Anyone running under 5-CURRENT?  It's good to see that it's working for
| : >someone, just wondering if perhaps all the threading changes have made
| : >a difference.
| : >
| : >Or maybe my node is just overloaded...
| :
| : if you've got only thread problems, try this:
| :
| : - stop the node
| : - edit your freenet.ini or freenet.conf file with a text editor
| : - replace "%maximumThreads=120" with "maximumThreads=300" (note: the '%'
| : is gone!) - replace "%threadFactory=Q" with "threadFactory=Y" (note: no
| : '%' anymore) - restart the node
| :
| : this will replace the thread factory implementation and raises the limit
| : of how many threads are allowed to run to 300
|
| Thanks.  I was hoping to avoid upping the number of threads, but I must
| admit, I have no idea what the different threadFactory's are.
|
| : you may reduce 300 to something lower if your machine experiences
| : slowdown. for me the settings Y,300 worked even *better* than Q,120
|
| Nope, I should be fine running at 300 or so.  When I move this over to a
| dedicated machine, I'll probably drop it, as it's not as beefy as my
| current machine.
| ___
| Support mailing list
| [EMAIL PROTECTED]
| http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support

-- 
Brian, the man from Babble-On . . . .   [EMAIL PROTECTED] (personal)
___
Support mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support


Re: [freenet-support] freenet load always >100%

2003-11-11 Thread Damian Gerow
Thus spake "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> [16:34:02 11/11/03:
: >Anyone running under 5-CURRENT?  It's good to see that it's working for
: >someone, just wondering if perhaps all the threading changes have made
: >a difference.
: >
: >Or maybe my node is just overloaded...
: 
: if you've got only thread problems, try this:
: 
: - stop the node
: - edit your freenet.ini or freenet.conf file with a text editor
: - replace "%maximumThreads=120" with "maximumThreads=300" (note: the '%' is gone!)
: - replace "%threadFactory=Q" with "threadFactory=Y" (note: no '%' anymore)
: - restart the node
: 
: this will replace the thread factory implementation and raises the limit of how many 
threads are allowed to run to 300

Thanks.  I was hoping to avoid upping the number of threads, but I must admit,
I have no idea what the different threadFactory's are.

: you may reduce 300 to something lower if your machine experiences slowdown. for me 
the settings Y,300 worked even *better* than Q,120

Nope, I should be fine running at 300 or so.  When I move this over to a
dedicated machine, I'll probably drop it, as it's not as beefy as my
current machine.
___
Support mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support


Re: [freenet-support] freenet load always >100%

2003-11-11 Thread [EMAIL PROTECTED]
>Thus spake The Babbler <[EMAIL PROTECTED]> [06:24:30 11/11/03:
>: I run FreeBSD, with JDK 1.4 (jdk-1.4.1p4_1) and 4.9-STABLE kernel.
>: 
>: Free *is* very slow for me but I don't see loads > 100%; in fact, the load 
>: numbers always seem fairly plausible.  Just a data point to tell you it's not 
>: universal.
>
>Thanks!
>
>Anyone running under 5-CURRENT?  It's good to see that it's working for
>someone, just wondering if perhaps all the threading changes have made
>a difference.
>
>Or maybe my node is just overloaded...

if you've got only thread problems, try this:

- stop the node
- edit your freenet.ini or freenet.conf file with a text editor
- replace "%maximumThreads=120" with "maximumThreads=300" (note: the '%' is gone!)
- replace "%threadFactory=Q" with "threadFactory=Y" (note: no '%' anymore)
- restart the node

this will replace the thread factory implementation and raises the limit of how many 
threads are allowed to run to 300

you may reduce 300 to something lower if your machine experiences slowdown. for me the 
settings Y,300 worked even *better* than Q,120




___
Support mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support


Re: [freenet-support] freenet load always >100%

2003-11-11 Thread Damian Gerow
Thus spake The Babbler <[EMAIL PROTECTED]> [06:24:30 11/11/03:
: I run FreeBSD, with JDK 1.4 (jdk-1.4.1p4_1) and 4.9-STABLE kernel.
: 
: Free *is* very slow for me but I don't see loads > 100%; in fact, the load 
: numbers always seem fairly plausible.  Just a data point to tell you it's not 
: universal.

Thanks!

Anyone running under 5-CURRENT?  It's good to see that it's working for
someone, just wondering if perhaps all the threading changes have made
a difference.

Or maybe my node is just overloaded...
___
Support mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support


Re: [freenet-support] freenet load always >100%

2003-11-11 Thread The Babbler

I run FreeBSD, with JDK 1.4 (jdk-1.4.1p4_1) and 4.9-STABLE kernel.

Free *is* very slow for me but I don't see loads > 100%; in fact, the load 
numbers always seem fairly plausible.  Just a data point to tell you it's not 
universal.



On Monday 10 November 2003 11:16 pm, Damian Gerow wrote:
| I've been noticing some accessibility problems with my freenet install
| over the past couple of weeks.  Figuring that it was just a fresh node,
| and I'd done a number of restarts, I didn't bother looking into it.  But
| sometime yesterday, since I'd been up for almost five days, I poked a bit
| further and noticed that my load was floating between 120% and 180%.
|
| I read the error message ('This happens sometimes, don't worry, be
| happy') and didn't worry, and was happy.
|
| Well, I checked again tonight, and I'm sitting >200% at this point.  I
| have no incoming connections, but *tons* of outbound connections.  Even
| though I haven't actually been /using/ my node, just letting it run.
|
| Is this normal?  The load as I just checked it is 300%, and is always
| due to thread limit.  I can't actually *do* anything with my node, as
| everything takes ages to load (it's not entirely uncommon for, say,
| YoYo to take >30m to come up).
|
| FWIW, this is a FreeBSD-CURRENT system, with JDK1.4 installed.  It
| could be a problem with the JRE, as 1.4 is still considered beta quality.
| I'm running Freenet build 5031.
|
| Just wondering if anyone else has seen this, or has suggestions to fix.
| ___
| Support mailing list
| [EMAIL PROTECTED]
| http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
___
Support mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support


[freenet-support] freenet load always >100%

2003-11-10 Thread Damian Gerow
I've been noticing some accessibility problems with my freenet install
over the past couple of weeks.  Figuring that it was just a fresh node,
and I'd done a number of restarts, I didn't bother looking into it.  But
sometime yesterday, since I'd been up for almost five days, I poked a bit
further and noticed that my load was floating between 120% and 180%.

I read the error message ('This happens sometimes, don't worry, be
happy') and didn't worry, and was happy.

Well, I checked again tonight, and I'm sitting >200% at this point.  I
have no incoming connections, but *tons* of outbound connections.  Even
though I haven't actually been /using/ my node, just letting it run.

Is this normal?  The load as I just checked it is 300%, and is always
due to thread limit.  I can't actually *do* anything with my node, as
everything takes ages to load (it's not entirely uncommon for, say,
YoYo to take >30m to come up).

FWIW, this is a FreeBSD-CURRENT system, with JDK1.4 installed.  It
could be a problem with the JRE, as 1.4 is still considered beta quality.
I'm running Freenet build 5031.

Just wondering if anyone else has seen this, or has suggestions to fix.
___
Support mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support