java.lang.OutOfMemoryError: Java heap space

JIRA | Dennis Spathis | 8 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

    Using a new database, I completed one interview interview (with Cartagene's configuration) and attempted an export. After about 2 minutes, Onyx crashed due to an OutOfMemoryError. Here is the stacktrace: 2009-07-22 11:18:33,516 - INFO - able.export.OnyxDataExport - Exporting to dest ination CARTaGENE 2009-07-22 11:20:53.691::WARN: Error for /onyx-cartagene/ java.lang.OutOfMemoryError: Java heap space at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2291) at java.lang.Class.getDeclaredField(Class.java:1880) at com.thoughtworks.xstream.mapper.AttributeMapper.getField(AttributeMap per.java:161) at com.thoughtworks.xstream.mapper.AttributeMapper.getConverterFromItemT ype(AttributeMapper.java:92) at com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemTyp e(MapperWrapper.java:139) at com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemTyp e(MapperWrapper.java:139) at com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemTyp e(MapperWrapper.java:139) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter$1.visit(AbstractReflectionConverter.java:76) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProv ider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.doMarshal(AbstractReflectionConverter.java:62) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.marshal(AbstractReflectionConverter.java:54) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(Abs tractReferenceMarshaller.java:65) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionCon verter.writeItem(AbstractCollectionConverter.java:63) at com.thoughtworks.xstream.converters.collections.CollectionConverter.m arshal(CollectionConverter.java:55) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(Abs tractReferenceMarshaller.java:65) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:63) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter$2.visit(AbstractReflectionConverter.java:110) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProv ider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.doMarshal(AbstractReflectionConverter.java:95) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.marshal(AbstractReflectionConverter.java:54) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(Abs tractReferenceMarshaller.java:65) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionCon verter.writeItem(AbstractCollectionConverter.java:63) at com.thoughtworks.xstream.converters.collections.CollectionConverter.m arshal(CollectionConverter.java:55) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(Abs tractReferenceMarshaller.java:65) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:63)

    JIRA | 8 years ago | Dennis Spathis
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    Using a new database, I completed one interview interview (with Cartagene's configuration) and attempted an export. After about 2 minutes, Onyx crashed due to an OutOfMemoryError. Here is the stacktrace: 2009-07-22 11:18:33,516 - INFO - able.export.OnyxDataExport - Exporting to dest ination CARTaGENE 2009-07-22 11:20:53.691::WARN: Error for /onyx-cartagene/ java.lang.OutOfMemoryError: Java heap space at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2291) at java.lang.Class.getDeclaredField(Class.java:1880) at com.thoughtworks.xstream.mapper.AttributeMapper.getField(AttributeMap per.java:161) at com.thoughtworks.xstream.mapper.AttributeMapper.getConverterFromItemT ype(AttributeMapper.java:92) at com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemTyp e(MapperWrapper.java:139) at com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemTyp e(MapperWrapper.java:139) at com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemTyp e(MapperWrapper.java:139) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter$1.visit(AbstractReflectionConverter.java:76) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProv ider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.doMarshal(AbstractReflectionConverter.java:62) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.marshal(AbstractReflectionConverter.java:54) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(Abs tractReferenceMarshaller.java:65) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionCon verter.writeItem(AbstractCollectionConverter.java:63) at com.thoughtworks.xstream.converters.collections.CollectionConverter.m arshal(CollectionConverter.java:55) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(Abs tractReferenceMarshaller.java:65) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:63) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter$2.visit(AbstractReflectionConverter.java:110) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProv ider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.doMarshal(AbstractReflectionConverter.java:95) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConv erter.marshal(AbstractReflectionConverter.java:54) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(Abs tractReferenceMarshaller.java:65) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionCon verter.writeItem(AbstractCollectionConverter.java:63) at com.thoughtworks.xstream.converters.collections.CollectionConverter.m arshal(CollectionConverter.java:55) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(Abs tractReferenceMarshaller.java:65) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarsh aller.java:63)

    JIRA | 8 years ago | Dennis Spathis
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    Glassfish Hang - Daily

    Oracle Community | 7 years ago | badul
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java out of memory using PostgreSQL

    Stack Overflow | 5 years ago | Knyght
    java.lang.OutOfMemoryError: Java heap space
  6. 0

    Heap Error with DBUnit

    Stack Overflow | 2 years ago | user2183985
    java.lang.OutOfMemoryError: Java heap space

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at java.lang.Class.getDeclaredFields0()
    2. Java RT
      Class.getDeclaredField
      1. java.lang.Class.getDeclaredFields0(Native Method)
      2. java.lang.Class.privateGetDeclaredFields(Class.java:2291)
      3. java.lang.Class.getDeclaredField(Class.java:1880)
      3 frames
    3. XStream Core
      TreeMarshaller.convertAnother
      1. com.thoughtworks.xstream.mapper.AttributeMapper.getField(AttributeMapper.java:161)
      2. com.thoughtworks.xstream.mapper.AttributeMapper.getConverterFromItemType(AttributeMapper.java:92)
      3. com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemType(MapperWrapper.java:139)
      4. com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemType(MapperWrapper.java:139)
      5. com.thoughtworks.xstream.mapper.MapperWrapper.getConverterFromItemType(MapperWrapper.java:139)
      6. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$1.visit(AbstractReflectionConverter.java:76)
      7. com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129)
      8. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:62)
      9. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:54)
      10. com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:65)
      11. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
      12. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
      13. com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:63)
      14. com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:55)
      15. com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:65)
      16. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
      17. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
      18. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:110)
      19. com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129)
      20. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:95)
      21. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:54)
      22. com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:65)
      23. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
      24. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
      25. com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:63)
      26. com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:55)
      27. com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:65)
      28. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
      29. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
      29 frames