java.lang.OutOfMemoryError: Java heap space

Sakai JIRA | Tim Worrall | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Jim, Here's the trace from the log for that three-tier, VIVO Cornell issue. Tim 2015-04-08 12:02:38,183 INFO [RDFFilesLoader] Loading rdf/auth/everytime/permission_config.n3 2015-04-08 12:03:45,669 ERROR [StartupManager] edu.cornell.mannlib.vitro.webapp.servlet.setup.ContentModelSetup@63302640 Threw unexpected error java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2271) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113) at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282) at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125) at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207) at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:129) at java.io.BufferedWriter.write(BufferedWriter.java:143) at org.apache.jena.atlas.io.IndentedWriter.write$(IndentedWriter.java:165) at org.apache.jena.atlas.io.IndentedWriter.printOneChar(IndentedWriter.java:160) at org.apache.jena.atlas.io.IndentedWriter.print(IndentedWriter.java:100) at com.hp.hpl.jena.sparql.resultset.JSONOutputResultSet.printResource(JSONOutputResultSet.java:241) at com.hp.hpl.jena.sparql.resultset.JSONOutputResultSet.binding(JSONOutputResultSet.java:170) at com.hp.hpl.jena.sparql.resultset.ResultSetApply.apply(ResultSetApply.java:49) at com.hp.hpl.jena.sparql.resultset.JSONOutput.format(JSONOutput.java:36) at com.hp.hpl.jena.query.ResultSetFormatter.outputAsJSON(ResultSetFormatter.java:597) at edu.cornell.mannlib.vitro.webapp.rdfservice.impl.jena.RDFServiceJena.sparqlSelectQuery(RDFServiceJena.java:461) at edu.cornell.mannlib.vitro.webapp.rdfservice.impl.logging.LoggingRDFService.sparqlSelectQuery(LoggingRDFService.java:59) at edu.cornell.mannlib.vitro.webapp.dao.jena.RDFServiceGraph.execSelect(RDFServiceGraph.java:400) at edu.cornell.mannlib.vitro.webapp.dao.jena.RDFServiceGraph.find(RDFServiceGraph.java:257) at edu.cornell.mannlib.vitro.webapp.dao.jena.RDFServiceGraph.find(RDFServiceGraph.java:189) at com.hp.hpl.jena.graph.compose.MultiUnion.singleGraphFind(MultiUnion.java:151) at com.hp.hpl.jena.graph.compose.MultiUnion.graphBaseFind(MultiUnion.java:142) at com.hp.hpl.jena.graph.impl.GraphBase.find(GraphBase.java:268) at com.hp.hpl.jena.graph.GraphUtil.findAll(GraphUtil.java:128) at com.hp.hpl.jena.graph.impl.GraphBase.graphBaseSize(GraphBase.java:354) at com.hp.hpl.jena.graph.impl.GraphBase.size(GraphBase.java:344) at com.hp.hpl.jena.rdf.model.impl.ModelCom.size(ModelCom.java:918) at edu.cornell.mannlib.vitro.webapp.rdfservice.adapters.AbstractOntModelDecorator.size(AbstractOntModelDecorator.java:662) at edu.cornell.mannlib.vitro.webapp.servlet.setup.ContentModelSetup.setUpJenaDataSource(ContentModelSetup.java:62)

    Sakai JIRA | 2 years ago | Tim Worrall
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    Jim, Here's the trace from the log for that three-tier, VIVO Cornell issue. Tim 2015-04-08 12:02:38,183 INFO [RDFFilesLoader] Loading rdf/auth/everytime/permission_config.n3 2015-04-08 12:03:45,669 ERROR [StartupManager] edu.cornell.mannlib.vitro.webapp.servlet.setup.ContentModelSetup@63302640 Threw unexpected error java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2271) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113) at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282) at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125) at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207) at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:129) at java.io.BufferedWriter.write(BufferedWriter.java:143) at org.apache.jena.atlas.io.IndentedWriter.write$(IndentedWriter.java:165) at org.apache.jena.atlas.io.IndentedWriter.printOneChar(IndentedWriter.java:160) at org.apache.jena.atlas.io.IndentedWriter.print(IndentedWriter.java:100) at com.hp.hpl.jena.sparql.resultset.JSONOutputResultSet.printResource(JSONOutputResultSet.java:241) at com.hp.hpl.jena.sparql.resultset.JSONOutputResultSet.binding(JSONOutputResultSet.java:170) at com.hp.hpl.jena.sparql.resultset.ResultSetApply.apply(ResultSetApply.java:49) at com.hp.hpl.jena.sparql.resultset.JSONOutput.format(JSONOutput.java:36) at com.hp.hpl.jena.query.ResultSetFormatter.outputAsJSON(ResultSetFormatter.java:597) at edu.cornell.mannlib.vitro.webapp.rdfservice.impl.jena.RDFServiceJena.sparqlSelectQuery(RDFServiceJena.java:461) at edu.cornell.mannlib.vitro.webapp.rdfservice.impl.logging.LoggingRDFService.sparqlSelectQuery(LoggingRDFService.java:59) at edu.cornell.mannlib.vitro.webapp.dao.jena.RDFServiceGraph.execSelect(RDFServiceGraph.java:400) at edu.cornell.mannlib.vitro.webapp.dao.jena.RDFServiceGraph.find(RDFServiceGraph.java:257) at edu.cornell.mannlib.vitro.webapp.dao.jena.RDFServiceGraph.find(RDFServiceGraph.java:189) at com.hp.hpl.jena.graph.compose.MultiUnion.singleGraphFind(MultiUnion.java:151) at com.hp.hpl.jena.graph.compose.MultiUnion.graphBaseFind(MultiUnion.java:142) at com.hp.hpl.jena.graph.impl.GraphBase.find(GraphBase.java:268) at com.hp.hpl.jena.graph.GraphUtil.findAll(GraphUtil.java:128) at com.hp.hpl.jena.graph.impl.GraphBase.graphBaseSize(GraphBase.java:354) at com.hp.hpl.jena.graph.impl.GraphBase.size(GraphBase.java:344) at com.hp.hpl.jena.rdf.model.impl.ModelCom.size(ModelCom.java:918) at edu.cornell.mannlib.vitro.webapp.rdfservice.adapters.AbstractOntModelDecorator.size(AbstractOntModelDecorator.java:662) at edu.cornell.mannlib.vitro.webapp.servlet.setup.ContentModelSetup.setUpJenaDataSource(ContentModelSetup.java:62)

    Sakai JIRA | 2 years ago | Tim Worrall
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    CFFILE - java.lang.OutOfMemoryError: Java heap space

    Google Groups | 10 months ago | Lee
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at java.util.Arrays.copyOf()
    2. Java RT
      BufferedWriter.write
      1. java.util.Arrays.copyOf(Arrays.java:2271)
      2. java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
      3. java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
      4. java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
      5. sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
      6. sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282)
      7. sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
      8. java.io.OutputStreamWriter.write(OutputStreamWriter.java:207)
      9. java.io.BufferedWriter.flushBuffer(BufferedWriter.java:129)
      10. java.io.BufferedWriter.write(BufferedWriter.java:143)
      10 frames
    3. Apache Jena - ARQ (SPARQL 1.1 Query Engine)
      ResultSetFormatter.outputAsJSON
      1. org.apache.jena.atlas.io.IndentedWriter.write$(IndentedWriter.java:165)
      2. org.apache.jena.atlas.io.IndentedWriter.printOneChar(IndentedWriter.java:160)
      3. org.apache.jena.atlas.io.IndentedWriter.print(IndentedWriter.java:100)
      4. com.hp.hpl.jena.sparql.resultset.JSONOutputResultSet.printResource(JSONOutputResultSet.java:241)
      5. com.hp.hpl.jena.sparql.resultset.JSONOutputResultSet.binding(JSONOutputResultSet.java:170)
      6. com.hp.hpl.jena.sparql.resultset.ResultSetApply.apply(ResultSetApply.java:49)
      7. com.hp.hpl.jena.sparql.resultset.JSONOutput.format(JSONOutput.java:36)
      8. com.hp.hpl.jena.query.ResultSetFormatter.outputAsJSON(ResultSetFormatter.java:597)
      8 frames
    4. edu.cornell.mannlib
      RDFServiceGraph.find
      1. edu.cornell.mannlib.vitro.webapp.rdfservice.impl.jena.RDFServiceJena.sparqlSelectQuery(RDFServiceJena.java:461)
      2. edu.cornell.mannlib.vitro.webapp.rdfservice.impl.logging.LoggingRDFService.sparqlSelectQuery(LoggingRDFService.java:59)
      3. edu.cornell.mannlib.vitro.webapp.dao.jena.RDFServiceGraph.execSelect(RDFServiceGraph.java:400)
      4. edu.cornell.mannlib.vitro.webapp.dao.jena.RDFServiceGraph.find(RDFServiceGraph.java:257)
      5. edu.cornell.mannlib.vitro.webapp.dao.jena.RDFServiceGraph.find(RDFServiceGraph.java:189)
      5 frames
    5. Apache Jena - Core
      ModelCom.size
      1. com.hp.hpl.jena.graph.compose.MultiUnion.singleGraphFind(MultiUnion.java:151)
      2. com.hp.hpl.jena.graph.compose.MultiUnion.graphBaseFind(MultiUnion.java:142)
      3. com.hp.hpl.jena.graph.impl.GraphBase.find(GraphBase.java:268)
      4. com.hp.hpl.jena.graph.GraphUtil.findAll(GraphUtil.java:128)
      5. com.hp.hpl.jena.graph.impl.GraphBase.graphBaseSize(GraphBase.java:354)
      6. com.hp.hpl.jena.graph.impl.GraphBase.size(GraphBase.java:344)
      7. com.hp.hpl.jena.rdf.model.impl.ModelCom.size(ModelCom.java:918)
      7 frames
    6. edu.cornell.mannlib
      ContentModelSetup.setUpJenaDataSource
      1. edu.cornell.mannlib.vitro.webapp.rdfservice.adapters.AbstractOntModelDecorator.size(AbstractOntModelDecorator.java:662)
      2. edu.cornell.mannlib.vitro.webapp.servlet.setup.ContentModelSetup.setUpJenaDataSource(ContentModelSetup.java:62)
      2 frames