When JRE is out of memory, it shows an extensive report, yet gives no indication how much memory it needed. 16GB swap is free.
The error message is pretty abstract and does not pinpoint the actual situation. Excerpt :
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create GC thread. Out of system resources.
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Out of Memory Error (gcTaskThread.cpp:46), pid=26281, tid=140695466399488
#
# JRE version: (7.0_67-b01) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops)
java_command: jarjar.org.gradle.process.internal.launcher.GradleWorkerMain
rlimit: STACK 8192k, CORE infinity, NPROC 1024, NOFILE 65536, AS infinity
Memory: 4k page, physical 15037312k(880868k free), swap 15826924k(15790364k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (24.65-b04) for linux-amd64 JRE (1.7.0_67-b01), built on Jul 25 2014 09:20:21
by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)