java.lang.OutOfMemoryError: Unable to acquire 172 bytes of memory, got 0


Solutions on the web

Solution icon of stackoverflow
Unable to acquire 172 bytes of memory, got 0

Solution icon of apache
Unable to acquire 76 bytes of memory, got 0

Solution icon of apache
Unable to acquire 76 bytes of memory, got 0

Solution icon of apache
via spark-dev by Nezih Yigitbasi, 1 year ago
Unable to acquire 128 bytes of memory, got 0

Solution icon of apache
Unable to acquire 76 bytes of memory, got 0

Solution icon of apache
Unable to acquire 76 bytes of memory, got 0

Solution icon of apache
Unable to acquire 76 bytes of memory, got 0

Solution icon of apache
Unable to acquire 128 bytes of memory, got 0

Solution icon of apache
Unable to acquire 128 bytes of memory, got 0

Stack trace

java.lang.OutOfMemoryError: Unable to acquire 172 bytes of memory, got 0
	at org.apache.spark.memory.MemoryConsumer.allocatePage(MemoryConsumer.java:120)
	at org.apache.spark.util.collection.unsafe.sort.UnsafeExternalSorter.acquireNewPageIfNecessary(UnsafeExternalSorter.java:321)
	at org.apache.spark.util.collection.unsafe.sort.UnsafeExternalSorter.insertRecord(UnsafeExternalSorter.java:336)
	at org.apache.spark.sql.execution.UnsafeExternalRowSorter.insertRow(UnsafeExternalRowSorter.java:91)
	at org.apache.spark.sql.execution.UnsafeExternalRowSorter.sort(UnsafeExternalRowSorter.java:168)
	at org.apache.spark.sql.execution.Sort$$anonfun$1.apply(Sort.scala:90)
	at org.apache.spark.sql.execution.Sort$$anonfun$1.apply(Sort.scala:64)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 months ago
8 times, 6 months ago