Re: Freenet hangs and restarts shortly after startup

Matthew Toseland <toad-EI5O+8PHWbJeeLb3ft/[email protected]>
Newsgroups gmane.network.freenet.support
Message-ID <[email protected]>
On Tuesday 09 Oct 2012 13:10:43 guido wrote:
> Am Dienstag, 9. Oktober 2012, 10:33:35 schrieb Matthew Toseland:
> > On Monday 08 Oct 2012 22:06:59 guido wrote:
> > > > Nothing obvious there. Are you sure it was using heavy CPU at the time?
> > > 
> > > It's always using this much CPU, including at that time. I checked. (With
> > > top)> 
> > > > If so it might be a garbage collection issue
> > > >
> > > >.... how much memory is Freenet allowed in wrapper.conf?
> > > 
> > > wrapper.java.maxmemory is set to 1095. I can find no other setting related
> > > to memory limits in there.
> > > 
> > > Here's the entire file:
> > > 
> > > wrapper.java.command=java
> > > wrapper.working.dir=../
> > > wrapper.java.mainclass=freenet.node.NodeStarter
> > > wrapper.java.classpath.1=freenet.jar
> > > wrapper.java.classpath.2=freenet-ext.jar
> > > wrapper.java.library.path.1=lib
> > > wrapper.java.initmemory=60
> > > # Increased because of slot filters in 1385
> > > wrapper.java.maxmemory=1095
> > > wrapper.java.additional.1=-Dnetworkaddress.cache.ttl=0
> > > wrapper.java.additional.2=-Dnetworkaddress.cache.negative.ttl=0
> > > wrapper.java.additional.3=-enableassertions:freenet
> > 
> > Okay, add this line here:
> > 
> > wrapper.java.additional.4=-Xloggc:freenet.loggc
> > 
> > Then shut down and start up Freenet, and watch freenet.loggc. Are you seeing
> > a lot of "Full GC" ?
> 
> How much is a lot? After ~30 minutes of uptime, I get this:
> 
> $ grep Full freenet.loggc 
> 173.713: [Full GC 59569K->30609K(66752K), 0.1119400 secs]
> 194.924: [Full GC 42692K->42510K(84224K), 0.1144190 secs]
> 224.924: [Full GC 66661K->66538K(116160K), 0.0961980 secs]
> 233.162: [Full GC 78622K->76056K(129216K), 0.1531610 secs]
> 276.978: [Full GC 110170K->101941K(193472K), 0.1233060 secs]
> 300.933: [Full GC 147726K->111491K(230784K), 0.1306090 secs]
> 327.116: [Full GC 160279K->130951K(279360K), 0.1293510 secs]
> 355.853: [Full GC 172159K->124036K(306432K), 0.1917980 secs]
> 380.778: [Full GC 159951K->137945K(351552K), 0.1342150 secs]
> 815.527: [Full GC 186389K->126615K(232320K), 0.1548210 secs]
> 927.181: [Full GC 165409K->116784K(307136K), 0.1476340 secs]

Well each one lasts less than a seconf and they are happening much less than once per second. So no, that's not a lot.
=> It's not a garbage collection issue.

I guess you could get a few more stack dumps and send me them? Make sure that it's using loads of CPU at the time.

_______________________________________________
Support mailing list
[email protected]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-request-RdDMkVZAZeuJnvDnx1genB2eb7JE58TQ@public.gmane.org?subject=unsubscribe
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABEIAAYFAlB0RTcACgkQYUNbc3WUHYho/wCcCH5DO8H4A6oq2N6WoHFiyeDt
vOIAnR2Ci+MsaI/xMDu6ucMSkDFklmFr
=bMZy
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.