incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Seaborne <andy.seabo...@epimorphics.com>
Subject Re: leak but where after parsing rdf files?
Date Tue, 25 Jan 2011 11:57:22 GMT
>> But once the iterator from Graph.find has returned a triples, it's not in
>> TDB at all.  There is an issue with how the node table cache might grow
>> because of large literals in it, but is is limited to a maximum number of
>> entries.  Turn the cache size down.
>
>
> How to do this?

In theory (this isn't tested in a while nor is it documented except by code)

[[
In theory, the caches are tunable because it's all constants in 
SystemTDB, but it's untested as to the performance impact. It should be 
in the appropriate .info file as well, but it's not.
]]

-Dtdb:settings=FILENAME

where FILENAME is the name of Java properties file (not XML form).

Node2NodeIdCacheSize=1000
NodeId2NodeCacheSize=1000

See the code in SystemTDB.java.

Or, for testing, simply change the default values of 
NodeId2NodeCacheSize and Node2NodeIdCacheSize and rebuild.


	Andy

Mime
View raw message