Error in Karaf after upgrade to 2.5.2

  • Platform information:
    • Hardware: i3, 8gb RAM
    • OS: Windows 10 64bit
    • Java Runtime Environment: Version 8 update 181
    • openHAB version: 2.5.2

Since I have upgraded to 2.5.2 I get this error in Karaf and can’t do anything else:

java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Unknown Source)
        at java.util.Arrays.copyOf(Unknown Source)
        at java.util.ArrayList.grow(Unknown Source)
        at java.util.ArrayList.ensureExplicitCapacity(Unknown Source)
        at java.util.ArrayList.ensureCapacityInternal(Unknown Source)
        at java.util.ArrayList.add(Unknown Source)
        at org.apache.felix.resolver.ResolverImpl$UsedBlames.addBlame(ResolverImpl.java:2224)
        at org.apache.felix.resolver.ResolverImpl.addUsedBlame(ResolverImpl.java:1270)
        at org.apache.felix.resolver.ResolverImpl.mergeUses(ResolverImpl.java:1093)
        at org.apache.felix.resolver.ResolverImpl.mergeUses(ResolverImpl.java:1094)
        at org.apache.felix.resolver.ResolverImpl.computeUses(ResolverImpl.java:849)
        at org.apache.felix.resolver.ResolverImpl.access$500(ResolverImpl.java:36)
        at org.apache.felix.resolver.ResolverImpl$6.run(ResolverImpl.java:1214)
        at org.apache.felix.resolver.ResolverImpl$EnhancedExecutor$1.run(ResolverImpl.java:2495)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Exception in thread "pool-626-thread-1" java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Unknown Source)
        at java.util.Arrays.copyOf(Unknown Source)
        at java.util.ArrayList.grow(Unknown Source)
        at java.util.ArrayList.ensureExplicitCapacity(Unknown Source)
        at java.util.ArrayList.ensureCapacityInternal(Unknown Source)
        at java.util.ArrayList.add(Unknown Source)
        at org.apache.felix.resolver.ResolverImpl$UsedBlames.addBlame(ResolverImpl.java:2224)
        at org.apache.felix.resolver.ResolverImpl.addUsedBlame(ResolverImpl.java:1270)
        at org.apache.felix.resolver.ResolverImpl.mergeUses(ResolverImpl.java:1093)
        at org.apache.felix.resolver.ResolverImpl.mergeUses(ResolverImpl.java:1094)
        at org.apache.felix.resolver.ResolverImpl.computeUses(ResolverImpl.java:849)
        at org.apache.felix.resolver.ResolverImpl.access$500(ResolverImpl.java:36)
        at org.apache.felix.resolver.ResolverImpl$6.run(ResolverImpl.java:1214)
        at org.apache.felix.resolver.ResolverImpl$EnhancedExecutor$1.run(ResolverImpl.java:2495)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
java.lang.OutOfMemoryError: Java heap space
Exception in thread "pool-627-thread-1" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "pool-630-thread-1" java.lang.OutOfMemoryError: Java heap space

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "nioEventLoopGroup-8-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Active Thread: Equinox Container: 28351048-0c53-4da1-a844-0b8a7aae07ad"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "encryption-3-thread-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "fileinstall-D:\OpenHab2\openhab-2.4.0-SNAPSHOT\userdata/etc"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "sshd-SshServer[e79512]-timer-thread-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-common-482"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-thingHandler-864"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-thingHandler-862"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "SocketListener(JmDNS-/192.168.0.111)"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-2-thread-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Connector-Scheduler-c85a6d"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "SocketListener(DESKTOP-TFPJU1D.local.)"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "SocketListener(DESKTOP-TFPJU1D.local.)"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "SocketListener(DESKTOP-TFPJU1D.local.)"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-635-thread-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "openHAB-job-scheduler_QuartzSchedulerThread"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-discovery-3"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ZWaveReceiveInputThread"
java.lang.OutOfMemoryError: Java heap space
Exception in thread "encryption-1-thread-1" Exception in thread "pool-633-thread-1" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Thread-15091"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Session-HouseKeeper-16eda3b"
java.lang.OutOfMemoryError: Java heap space
Exception in thread "pool-636-thread-1" java.lang.OutOfMemoryError: Java heap space

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "fileinstall-D:\OpenHab2\openhab-2.4.0-SNAPSHOT/addons"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Connector-Scheduler-c85a6d"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-639-thread-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-19-thread-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "JmDNS(DESKTOP-TFPJU1D.local.).Timer"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "JmDNS(JmDNS-/192.168.0.111).Timer"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "JmDNS(DESKTOP-TFPJU1D.local.).Timer"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "JmDNS(DESKTOP-TFPJU1D.local.).Timer"
java.lang.OutOfMemoryError: Java heap space
Exception in thread "pool-638-thread-1" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "pool-640-thread-1" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "OkHttp Dispatcher" java.lang.OutOfMemoryError: Java heap space
Exception in thread "pool-642-thread-1" java.lang.OutOfMemoryError: Java heap space

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Timer-783"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-11-thread-1"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ServletModel-12-152"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-common-492"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-common-481"
java.lang.OutOfMemoryError: Java heap space
Exception in thread "pool-644-thread-1" java.lang.OutOfMemoryError: Java heap space

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Connector-Scheduler-c85a6d"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp18724306-25881"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp18724306-25879"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ServletModel-12-149"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ESH-httpClient-openhabcloud-315"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-common-523"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ESH-httpClient-openhabcloud-317"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ServletModel-12-150"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "JmDNS(DESKTOP-TFPJU1D.local.).State.Timer"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "JmDNS(DESKTOP-TFPJU1D.local.).State.Timer"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "JmDNS(DESKTOP-TFPJU1D.local.).State.Timer"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp18724306-25325"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp18724306-21083"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp18724306-25880"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp18724306-25883"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ServletModel-12-151"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ServletModel-12-153"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ServletModel-12-148"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Connector-Scheduler-c85a6d"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp18724306-78"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ESH-httpClient-openhabcloud-316"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp18724306-25882"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp18724306-25986"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp18724306-25987"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp18724306-25988"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "JmDNS(JmDNS-/192.168.0.111).State.Timer"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-OSGiEventManager"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "WindowsStreamPump"

2.5.2 Stable has not yet been released. There are 2.5.2 SNAPSHOTs though. The OH Core which contains Karaf has not been changed since 2.5.0 Stable. The Core is not expected to be updated until OH3.

Do you suggest I downgrade to 2.5.1 stable? Would it be the same process as upgrading?
I am actually on 2.5.2-SNAPSHOT Build #46

The only difference is in the Bindings, not the Core.
What version did you upgrade from?
I am not that familiar with Java errors. I know 2.5 has a newer version of Karaf compared to older versions of OH.

I was on 2.4

Can anyone help with this?