The Java program encountered an OutOfMemoryError when trying to allocate a 1288 byte array, even though there was 1541400 bytes of free memory. The Java heap had a maximum size of 536870912 bytes and was set to grow no larger, with less than 1% of the heap free after garbage collection. The program gave up the allocation attempt because so little memory was available after GC.
The Java program encountered an OutOfMemoryError when trying to allocate a 1288 byte array, even though there was 1541400 bytes of free memory. The Java heap had a maximum size of 536870912 bytes and was set to grow no larger, with less than 1% of the heap free after garbage collection. The program gave up the allocation attempt because so little memory was available after GC.
The Java program encountered an OutOfMemoryError when trying to allocate a 1288 byte array, even though there was 1541400 bytes of free memory. The Java heap had a maximum size of 536870912 bytes and was set to grow no larger, with less than 1% of the heap free after garbage collection. The program gave up the allocation attempt because so little memory was available after GC.
OutOfMemoryError: Failed to allocate a 1288 byte allocation with 1541400
free bytes and 1505KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC. at java.util.Arrays.copyOf(Arrays.java:3670) at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:211) at com.sensorsdata.analytics.android.sdk.AnalyticsMessages.encodeData(:5) at com.sensorsdata.analytics.android.sdk.AnalyticsMessages.sendData(:23) at com.sensorsdata.analytics.android.sdk.AnalyticsMessages$Worker$AnalyticsMessageHand ler.handleMessage(:2) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.os.HandlerThread.run(HandlerThread.java:67)