In the /d2r-server file (or /d2r-server.bat if you're on Windows), you'll find 
a line where the heap memory is set using the Java VM's "-Xmx256M" flag. The 
easiest thing is to change that line to "-Xmx1024M" or some even higher value.

Best,
Richard


On 28 Jun 2011, at 17:59, Iker Huerga wrote:

> Hello,
> 
> I am using D2R server with a big DB (around 175GB). when launching the server 
> from terminal (not deployed in Tomcat) I am getting a Java Heap Space error, 
> the stack trace is as follows:
> 
> java.lang.OutOfMemoryError: Java heap space
>       at com.mysql.jdbc.MysqlIO.nextRowFast(MysqlIO.java:1577)
>       at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1401)
>       at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2840)
>       at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:468)
>       at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2534)
>       at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1749)
>       at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2159)
>       at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2548)
>       at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2477)
>       at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1422)
>       at 
> de.fuberlin.wiwiss.d2rq.sql.QueryExecutionIterator.ensureQueryExecuted(QueryExecutionIterator.java:146)
>       at 
> de.fuberlin.wiwiss.d2rq.sql.QueryExecutionIterator.tryFetchNextRow(QueryExecutionIterator.java:76)
>       at 
> de.fuberlin.wiwiss.d2rq.sql.QueryExecutionIterator.hasNext(QueryExecutionIterator.java:50)
>       at 
> de.fuberlin.wiwiss.d2rq.find.RelationToTriplesIterator.tryFillTripleQueue(RelationToTriplesIterator.java:107)
>       at 
> de.fuberlin.wiwiss.d2rq.find.RelationToTriplesIterator.hasNext(RelationToTriplesIterator.java:72)
>       at 
> com.hp.hpl.jena.util.iterator.NiceIterator$1.hasNext(NiceIterator.java:86)
>       at 
> com.hp.hpl.jena.util.IteratorCollection.iteratorToList(IteratorCollection.java:52)
>       at 
> com.hp.hpl.jena.graph.impl.SimpleBulkUpdateHandler.addIterator(SimpleBulkUpdateHandler.java:57)
>       at 
> com.hp.hpl.jena.graph.impl.SimpleBulkUpdateHandler.add(SimpleBulkUpdateHandler.java:53)
>       at 
> de.fuberlin.wiwiss.d2rq.GraphD2RQ.classMapInventory(GraphD2RQ.java:197)
>       at 
> de.fuberlin.wiwiss.d2rs.DirectoryServlet.doGet(DirectoryServlet.java:35)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>       at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>       at 
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
>       at 
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>       at 
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>       at 
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>       at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>       at 
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>       at org.mortbay.jetty.Server.handle(Server.java:324)
>       at 
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> 
> I suppose it is a matter of the -Xmx parameter configuration for Jetty 
> Server, but I really do not know how to modify this. Any ideas?
> 
> Thanks in advanced.
> 
> Best Regards
> 
> -- 
> Iker Huerga
> http://www.linkatu.net
> 
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security 
> threats, fraudulent activity, and more. Splunk takes this data and makes 
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2_______________________________________________
> d2rq-map-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to