java.lang.OutOfMemoryError: Java heap space

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.OutOfMemoryError: Java heap space
at java.nio.ByteBuffer.wrap(ByteBuffer.java:350)
at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:137)
at java.lang.StringCoding.decode(StringCoding.java:173)
at java.lang.String.(String.java:443)
at java.lang.String.(String.java:515)
at java.io.UnixFileSystem.list(Native Method)
at java.io.File.list(File.java:973)
at java.io.File.listFiles(File.java:1090)
at com.sonicsw.mf.framework.util.RollingFileLogger.getArchivedLogFiles(RollingFileLogger.java:463)
at com.sonicsw.mf.framework.util.RollingFileLogger.length(RollingFileLogger.java:204)
at com.sonicsw.mf.framework.util.RollingFileLogger.checkSizeThreshold(RollingFileLogger.java:271)
at com.sonicsw.mf.framework.util.RollingFileLogger.logMessage(RollingFileLogger.java:144)
at com.sonicsw.mf.framework.agent.ContainerImpl.logMessage(ContainerImpl.java:952)
at com.sonicsw.mf.framework.agent.AbstractMBean.logMessage(AbstractMBean.java:1495)
at com.sonicsw.mf.framework.agent.ComponentMBean.access$1801(ComponentMBean.java:58)
at com.sonicsw.mf.framework.agent.ComponentMBean$ContextImpl.logMessage(ComponentMBean.java:1007)
at com.sonicsw.mf.framework.monitor.CollectionMonitor.enableMetrics(CollectionMonitor.java:627)
at com.sonicsw.mf.framework.monitor.CollectionMonitor.run(CollectionMonitor.java:514)
at com.sonicsw.mf.framework.agent.TaskScheduler$ExecutionThread.run(TaskScheduler.java:500)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Know the solutions? Share your knowledge to help other developers to debug faster.