Le lundi 14 décembre 2015 16:15:47 UTC+1, Michael Grove a écrit :
On Mon, Dec 14, 2015 at 9:52 AM,
<c.sip...@gmail.com> wrote:
Hi,
* I just used Stardog to make tests, I loaded 66 136 542 triples from RDFXML files using command line tool.
./bin/stardog query mybase "select (count(*) as ?c) {?s ?p ?o}"
+----------+
| c |
+----------+
| 66136542 |
+----------+
* Then I stopped the server:
./bin/stardog-admin server stop
Stardog server successfully received the shutdown request.
stop is an async operation. Did you try to subsequently kill the process?
No, and I looked processes with "top" and there was no more Stardog process.
* I restarted it:
./bin/stardog-admin server start
Initializing Stardog
Database mybase will not be available because there was an error initializing the database: java.lang.ArrayIndexOutOfBoundsException
Moving irreparable database mybase to /var/lib/stardog/data/.unusable/mybase
Are there any stack traces in stardog.log?
There is lot of trace about malformed XML documents, but I know that a part of my documents are malformed.
After, there is a more interesting line with a memory allocation error, even it looks to be related to RDF parsing there must be a link.
ERROR 2015-12-14 15:19:46,924 [SPEC-Server-1-1] com.complexible.stardog.db.DatabaseConnectionImpl:commit(390): There was an error committing the transaction, all changes were rolled back successfully
com.complexible.tx.api.HeuristicRollbackException: There was a fatal failure during preparation of 253912e1-2ecb-4017-b78e-6110e7cd6e39 org.openrdf.rio.RDFParseException: Unable to allocate 4.1K bytes, direct memory exhausted
at com.complexible.tx.api.impl.DefaultTransaction.runPreparePhase(DefaultTransaction.java:440) ~[stardog-4.0.2.jar:?]
at com.complexible.tx.api.impl.DefaultTransaction.commit(DefaultTransaction.java:326) ~[stardog-4.0.2.jar:?]
at com.complexible.stardog.db.DatabaseConnectionImpl.commit(DatabaseConnectionImpl.java:383) [stardog-4.0.2.jar:?]
at com.complexible.stardog.db.DatabaseImpl$DBConnectionWrapper.commit(DatabaseImpl.java:1374) [stardog-4.0.2.jar:?]
at com.complexible.stardog.db.DelegatingDatabaseConnection.commit(DelegatingDatabaseConnection.java:282) [stardog-4.0.2.jar:?]
at com.complexible.stardog.StardogKernel$KernelDbConnection.commit(StardogKernel.java:2738) [stardog-4.0.2.jar:?]
at com.complexible.stardog.db.DelegatingDatabaseConnection.commit(DelegatingDatabaseConnection.java:282) [stardog-4.0.2.jar:?]
at com.complexible.stardog.StardogKernel$NotifyingDatabaseConnection.commit(StardogKernel.java:3047) [stardog-4.0.2.jar:?]
at com.complexible.stardog.protocols.server.SPECServerFunction.commitTx(SPECServerFunction.java:380) [stardog-protocols-spec-server-4.0.2.jar:?]
at com.complexible.stardog.protocols.server.SPECServerFunction.handleMessage(SPECServerFunction.java:164) [stardog-protocols-spec-server-4.0.2.jar:?]
at com.complexible.common.protocols.server.rpc.ServerHandler.handleMessage(ServerHandler.java:324) [stardog-protocols-api-server-4.0.2.jar:?]
at com.complexible.common.protocols.server.rpc.ServerHandler.channelRead(ServerHandler.java:207) [stardog-protocols-api-server-4.0.2.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) [netty-all-4.0.32.Final.jar:4.0.32.Final]
at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:32) [netty-all-4.0.32.Final.jar:4.0.32.Final]
at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:299) [netty-all-4.0.32.Final.jar:4.0.32.Final]
at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:36) [netty-all-4.0.32.Final.jar:4.0.32.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112) [netty-all-4.0.32.Final.jar:4.0.32.Final]
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [netty-all-4.0.32.Final.jar:4.0.32.Final]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66-internal]
INFO 2015-12-14 15:31:52,212 [main] com.complexible.stardog.virtual.DefaultVirtualGraphRegistry:syncCache(215): Initializing R2RML registry
INFO 2015-12-14 15:31:52,249 [main] com.complexible.stardog.virtual.DefaultVirtualGraphRegistry:syncCache(224): Loaded R2RML registry with 0 sources
Initializing Stardog
WARN 2015-12-14 15:31:53,006 [main] com.complexible.stardog.db.DatabaseFactoryImpl:read(134): Database qualinca is invalid and the repair failed: 8176
Database qualinca will not be available because there was an error initializing the database: java.lang.ArrayIndexOutOfBoundsException
Moving irreparable database qualinca to /var/lib/stardog/data/.unusable/qualinca
What configuration did you use to create the database?
I used a default configuration, I followed the quick start guide (
http://docs.stardog.com/#_linux_and_osx). Perhaps I need a specific configuration in order to load this quantity of triples?
for information:
I run Stardog over a
4 cores (8 threads) Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz
with 16Go of RAM
and a 180Go SSD
Thanks,
Clement