incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hasan Hasan <>
Subject Re: leak but where after parsing rdf files?
Date Mon, 24 Jan 2011 18:03:45 GMT
Hi Andy

attached I provide a bundle that when run can
throw java.lang.OutOfMemoryError exception.
I don't do any parsing in the code. I merely read triples from the graph
generated in the previous or current execution.

Invoked with:
MAVEN_OPTS="-Xmx512m -Xms128m"  mvn clean install exec:java -o -e
-Dexec.args="300 2"

You can play with the arguments. You can generate some triples in current
execution and retrieve them
You can also only retrieve triples, in which case you need not
specify -Dexec.args
In the above example, 300 is the number of triples to be generated and added
to the graph
2 is the type of literal used: xsd:base64Binary, if you specify 1, the type
used is rdf:XMLLiteral
Not all objects in the graph are of typed literals.

Could you please check? Thanks.


On Sun, Jan 23, 2011 at 9:29 PM, Andy Seaborne <> wrote:

> Works for me (RIOT).
> java version "1.6.0_20"
> OpenJDK Runtime Environment (IcedTea6 1.9.2) (6b20-1.9.2-0ubuntu2)
> OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
> I've run to completion of all 100 iterations, and with the smaller -Xmx210m
> There are about 6 iterations for the OOME below. This shows that cache
> maximum size isn't reached in a single pass.  Given the very large literals
> and the bNodes, this isn't surprising (the cache is a simple slot
> replacement cache).
> The cache can be turned off with:
> com.hp.hpl.jena.graph.Node.cache(false) ;
> It then ran at -Xmx150.
> As the files are about 21M bytes, that's 40Mbytes in java characters which
> is about right.
>        Andy
> On 22/01/11 11:38, Reto Bachmann-Gmuer wrote:
>> To me this looks like a leak, it successfully parses the same bund of
>> files
>> a few time and then it has an OutOfMemoryError:
>> $ MAVEN_OPTS="-Xmx215m -Xms128m"  mvn  exec:java -o -e
>> + Error stacktraces are turned on.
>> [INFO]
>> NOTE: Maven is executing in offline mode. Any artifacts not already in
>> your
>> local
>> repository will be inaccessible.
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Unnamed -
>> org.apache.clerezza:turtlememory:bundle:0.10-incubating-SNAPSHOT
>> [INFO]    task-segment: [exec:java]
>> [INFO]
>> ------------------------------------------------------------------------

View raw message