Hello from Appstylus S.L. in Spain,

I have tried adding the surface forms to index executing:

*# add surface forms to index
mvn scala:run 
-DmainClass=org.dbpedia.spotlight.lucene.index.AddSurfaceFormsToIndex
"-DaddArgs=$INDEX_CONFIG_FILE"*

with the following memory parameters:

*export JAVA_OPTS="-Xmx4G"
export MAVEN_OPTS="-Xmx4G"
export SCALA_OPTS="-Xmx4G"*

becouse my computer only has 4Gb RAM, so after 21 hours waiting the
execution stopped, getting the following error:

*INFO 2011-12-22 17:05:55,090 main [AddSurfaceFormsToIndex$] - Getting
surface form map...

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at
org_scala_tools_maven_executions.MainHelper.runMain(MainHelper.java:161)
        at
org_scala_tools_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
Caused by: java.lang.OutOfMemoryError: Java heap space
        at java.util.regex.Matcher.toMatchResult(Matcher.java:252)
        at java.util.Scanner.match(Scanner.java:1287)
        at java.util.Scanner.hasNextLine(Scanner.java:1495)
        at
org.dbpedia.spotlight.lucene.index.AddSurfaceFormsToIndex$.loadSurfaceForms(AddSurfaceFormsToIndex.scala:84)
        at
org.dbpedia.spotlight.lucene.index.AddSurfaceFormsToIndex$.main(AddSurfaceFormsToIndex.scala:115)
        at
org.dbpedia.spotlight.lucene.index.AddSurfaceFormsToIndex.main(AddSurfaceFormsToIndex.scala)


*Does it means that I dont have enough heap memory?
If this is so, how much memory do I need?

Thanks in advance,

Jairo Sarabia
AppStylus developer
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to