* Colin Davis <Colin at sq7.org> [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
> >Devl at freenetproject.org
> >http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
> 
> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20060709/d6e78422/attachment.pgp>

Reply via email to