Hi Mikael,

In my experience, you get a GC overhead limit error when the garbage collector desperately tries to free more memory but fails. Typically this happens after a period where the JVM consumes all available CPU for at least a few minutes. So it's a symptom of running low on memory and upping the -Xmx limit might indeed help.

Often when I see a Jena process at ~400% CPU (with four cores) I know that it's likely the GC running wild like this, and I will just kill it before it gives this error. Jena doesn't itself usually consume all CPU, at least not for the things I use it for.

OTOH, if this is something you want to do just once, you may be better off exporting your data set into N-triples (or N-quads), performing a search-replace on the URIs (perhaps with sed) and then loading back the result.

-Osma

Mikael Pesonen kirjoitti 11.09.2017 klo 15:35:

Hi Osma!

I'm currently running jena with param -Xmx3600M. What I read "GC overhead limit exceeded" relates to java garbage collection, so maybe upping memory is not the right solution here?

Br,


On 11.9.2017 15:29, Osma Suominen wrote:
Hi Mikael,

How much memory have you given Fuseki? I think the startup scripts default to 1.2GB. Adjusting the -Xmx command line parameter to a more reasonable value (say 4G or 8G) might help.

-Osma

Mikael Pesonen kirjoitti 11.09.2017 klo 15:23:

Hi,

I'm performing this replace in jena fuseki 3.0.0 web gui:

DELETE { GRAPH <.> {?oldURI ?p ?o} }
INSERT { GRAPH <...> {?newURI ?p ?o} }
WHERE { GRAPH <...> {
     ?oldURI ?p ?o . FILTER (regex(str(?oldURI), "http://someuri/";))
     BIND (URI(REPLACE(STR(?oldURI), "http://";, "https://";)) AS ?newURI)
}
}

and get this

Error 400: GC overhead limit exceeded

Fuseki - version 3.4.0 (Build date: 2017-07-17T11:43:07+0000)


There are less than million triplets this should affect. Is there another solution than using limit?

Br,






--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
[email protected]
http://www.nationallibrary.fi

Reply via email to