* Colin Davis <[EMAIL PROTECTED]> [2006-07-08 23:41:24]:

> Fair- The profilers I found all seemed to be GUI based- I run my node  
> on a server without X, that I can only access via SSH.  I know Java  
> 1.5 has a way do generate a profile text file, though..
>  I'll look into it, I suppose.

No need to : I can explain the current strategy:

We *force* the GC every 18.25 sec in our MemoryChecker thread. So, yes,
it probaly creates CPU spikes ;)

And yes, we have a good reason for doing so: we want to find OOM errors as
soon as possible when we introduce them... So until we release, it will
remain like that, unless you prove us it affects the load-balancing
algorithm.

NextGen$

> 
> On Jul 8, 2006, at 11:08 PM, Ian Clarke wrote:
> 
> >On 8 Jul 2006, at 19:26, Colin Davis wrote:
> >>It seems that there amy be optimizations that can be made to the  
> >>JVM, in telling it how and when to do the GC for Freenet.
> >>I'm not familiar enough with freenet to know which would be the  
> >>best stragegy, but I'm looking for options.
> >>http://java.sun.com/docs/hotspot/gc1.4.2/faq.html
> >>
> >>Any other suggestions on lowering my CPU usage are welcome.  It  
> >>seems like the load is usually low, but spikes high- It might be  
> >>FEC, or it might be GC in the JVM.
> >
> >Manually invoking the GC can be counter-productive unless you  
> >really know what you are doing.
> >
> >The best way to address CPU issues is to run a profiler to see what  
> >is causing the problem.
> >
> >Ian.
> >_______________________________________________
> >Devl mailing list
> >[email protected]
> >http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
> 
> _______________________________________________
> Devl mailing list
> [email protected]
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
> 

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to