Problems in building the index

38 views
Skip to first unread message

Pietro Pasotti

unread,
Nov 17, 2014, 4:04:16 AM11/17/14
to clavin...@googlegroups.com
Hi all,

I am trying to set up a CLAVIN-rest server, but I am encountering the following error:
while running 

java -Xmx2048m -jar clavin-rest.jar index clavin-rest.yml

an error is raised:

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded

I tried to run it with the -XX:-UseGCOverheadLimit option, but then it freezes completely after echoing rowcount: 8400000.

I'm quite new to Java, so maybe I'm missing something, but I can't find anything useful in the web. Could you help?
Some specs: 

OS name: "linux", version: "3.13.0-35-generic", arch: "amd64", family: "unix"
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /usr/java/jdk1.7.0_71/jre

Regards,
Pietro

Patrick Pierson

unread,
Nov 17, 2014, 7:17:24 AM11/17/14
to clavin...@googlegroups.com
I ran into this same issue during building this weekend.  I changed the -Xmx value to read as -Xmx4096m and that seemed to work.  Give that a try, if it works I am going to update the README instructions.

Charlie Greenbacker

unread,
Nov 17, 2014, 9:34:55 AM11/17/14
to Patrick Pierson, clavin...@googlegroups.com
Correct, the README for the main CLAVIN repo suggests the following command to build the index:

MAVEN_OPTS="-Xmx4g" mvn exec:java -Dexec.mainClass="com.bericotech.clavin.index.IndexDirectoryBuilder"

- Charlie


--
You received this message because you are subscribed to the Google Groups "clavin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clavin-users...@googlegroups.com.
To post to this group, send email to clavin...@googlegroups.com.
Visit this group at http://groups.google.com/group/clavin-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/clavin-users/908ddec0-641b-44f9-8e2b-9fe29979cc84%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages