Luis,

Did you solve this problem?  Did you try setting the -Xmx property on the
Java command line?  I don't recall what the default is but you could set it
to something like -Xmx:1g to allocate 1 gig of memory.

Claude


On Wed, Feb 5, 2020 at 12:24 PM Luis Enrique Ramos García
<luisenriqueramos1...@googlemail.com.invalid> wrote:

> >
> > Dear members of jena community
> >
>
> I am working with two ontologies, merged in a model, the size of the
> ontologies is as follows:
>
> *ontology1* 2,7 Mbytes, 25K axioms and 6000 individuals
>
> *ontology2* 8,1 Mbytes, 72 K axioms, and 9000 items,
>
> I implemented a rule that checks if an item of o1 has the same label of an
> item of o2, with a generic rule reasoner of jena
>
> when I use less items in ontology 2,  3000 and 6000 i get the result in 7,2
> and 21, sec, but with 9000 items, I get the following error:
>
> Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
> at
>
> org.apache.jena.reasoner.rulesys.impl.BindingVectorMultiSet.getSubSet(BindingVectorMultiSet.java:144)
> at org.apache.jena.reasoner.rulesys.impl.RETEQueue.fire(RETEQueue.java:114)
> at org.apache.jena.reasoner.rulesys.impl.RETEQueue.fire(RETEQueue.java:128)
> at org.apache.jena.reasoner.rulesys.impl.RETEQueue.fire(RETEQueue.java:128)
> at
>
> org.apache.jena.reasoner.rulesys.impl.RETEClauseFilter.fire(RETEClauseFilter.java:227)
> at
>
> org.apache.jena.reasoner.rulesys.impl.RETEEngine.inject(RETEEngine.java:492)
> at
>
> org.apache.jena.reasoner.rulesys.impl.RETEEngine.runAll(RETEEngine.java:474)
> at
>
> org.apache.jena.reasoner.rulesys.impl.RETEEngine.fastInit(RETEEngine.java:163)
> at
>
> org.apache.jena.reasoner.rulesys.FBRuleInfGraph.prepare(FBRuleInfGraph.java:471)
> at
>
> org.apache.jena.reasoner.rulesys.BasicForwardRuleInfGraph.getDeductionsGraph(BasicForwardRuleInfGraph.java:392)
> at
>
> org.apache.jena.rdf.model.impl.InfModelImpl.getDeductionsModel(InfModelImpl.java:169)
>
>
> My question is if there is a way to solve this memory issue in jena side?,
> given that the available memory of my computer is 1,2 gb, and I think that
> should not be the cause, however I could be wrong.
>
> Any support is thanked
>
>
> Luis Ramos
>


-- 
I like: Like Like - The likeliest place on the web
<http://like-like.xenei.com>
LinkedIn: http://www.linkedin.com/in/claudewarren

Reply via email to