Skip to content

Instantly share code, notes, and snippets.

@kovacshuni
Created September 16, 2014 19:33
Show Gist options
  • Save kovacshuni/7fd87d5c86d236ac4bcc to your computer and use it in GitHub Desktop.
Save kovacshuni/7fd87d5c86d236ac4bcc to your computer and use it in GitHub Desktop.
Can't set memory settings for `sbt start`
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 715849728 bytes for committing reserved memory.
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Use 64 bit Java on a 64 bit OS
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
# Out of Memory Error (os_linux.cpp:2671), pid=9709, tid=139764156774144
#
# JRE version: (8.0_20-b26) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.20-b23 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
--------------- T H R E A D ---------------
Current thread (0x00007f1d5800b000): JavaThread "Unknown thread" [_thread_in_vm, id=9763, stack(0x00007f1d60dab000,0x00007f1d60eac000)]
Stack: [0x00007f1d60dab000,0x00007f1d60eac000], sp=0x00007f1d60eaa3c0, free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xa76cea] VMError::report_and_die()+0x2ca
V [libjvm.so+0x4e52fb] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b
V [libjvm.so+0x8e4ec3] os::Linux::commit_memory_impl(char*, unsigned long, bool)+0x103
V [libjvm.so+0x8e5419] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x29
V [libjvm.so+0x8df0ea] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x2a
V [libjvm.so+0xa72c19] VirtualSpace::expand_by(unsigned long, bool)+0x1c9
V [libjvm.so+0xa737ae] VirtualSpace::initialize(ReservedSpace, unsigned long)+0xee
V [libjvm.so+0x5d2591] CardGeneration::CardGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0xf1
V [libjvm.so+0xa1f8fc] TenuredGeneration::TenuredGeneration(ReservedSpace, unsigned long, int, GenRemSet*)+0x5c
V [libjvm.so+0x5d380b] GenerationSpec::init(ReservedSpace, int, GenRemSet*)+0x33b
V [libjvm.so+0x5c235e] GenCollectedHeap::initialize()+0x1ee
V [libjvm.so+0xa44d0d] Universe::initialize_heap()+0xfd
V [libjvm.so+0xa4512f] universe_init()+0x3f
V [libjvm.so+0x612055] init_globals()+0x65
V [libjvm.so+0xa2acdd] Threads::create_vm(JavaVMInitArgs*, bool*)+0x24d
V [libjvm.so+0x6a9414] JNI_CreateJavaVM+0x74
C [libjli.so+0x736e] JavaMain+0x9e
C [libpthread.so.0+0x8182] start_thread+0xc2
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
Other Threads:
=>0x00007f1d5800b000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=9763, stack(0x00007f1d60dab000,0x00007f1d60eac000)]
VM state:not at safepoint (not fully initialized)
VM Mutex/Monitor currently owned by a thread: None
GC Heap History (0 events):
No events
Deoptimization events (0 events):
No events
Internal exceptions (0 events):
No events
Events (0 events):
No events
Dynamic libraries:
00400000-00401000 r-xp 00000000 ca:01 154250 /usr/lib/jvm/java-8-oracle/jre/bin/java
00600000-00601000 rw-p 00000000 ca:01 154250 /usr/lib/jvm/java-8-oracle/jre/bin/java
02037000-02058000 rw-p 00000000 00:00 0 [heap]
c0000000-d5550000 rw-p 00000000 00:00 0
7f1d50000000-7f1d50270000 rwxp 00000000 00:00 0
7f1d50270000-7f1d58000000 ---p 00000000 00:00 0
7f1d58000000-7f1d58034000 rw-p 00000000 00:00 0
7f1d58034000-7f1d5c000000 ---p 00000000 00:00 0
7f1d5d9eb000-7f1d5dc20000 rw-p 00000000 00:00 0
7f1d5dc20000-7f1d5dd75000 ---p 00000000 00:00 0
7f1d5dd75000-7f1d5dd80000 rw-p 00000000 00:00 0
7f1d5dd80000-7f1d5df76000 ---p 00000000 00:00 0
7f1d5df76000-7f1d5df90000 r-xp 00000000 ca:01 154516 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
7f1d5df90000-7f1d5e190000 ---p 0001a000 ca:01 154516 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
7f1d5e190000-7f1d5e191000 rw-p 0001a000 ca:01 154516 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
7f1d5e191000-7f1d5e19c000 r-xp 00000000 ca:01 396038 /lib/x86_64-linux-gnu/libnss_files-2.19.so
7f1d5e19c000-7f1d5e39b000 ---p 0000b000 ca:01 396038 /lib/x86_64-linux-gnu/libnss_files-2.19.so
7f1d5e39b000-7f1d5e39c000 r--p 0000a000 ca:01 396038 /lib/x86_64-linux-gnu/libnss_files-2.19.so
7f1d5e39c000-7f1d5e39d000 rw-p 0000b000 ca:01 396038 /lib/x86_64-linux-gnu/libnss_files-2.19.so
7f1d5e39d000-7f1d5e3a8000 r-xp 00000000 ca:01 396040 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
7f1d5e3a8000-7f1d5e5a7000 ---p 0000b000 ca:01 396040 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
7f1d5e5a7000-7f1d5e5a8000 r--p 0000a000 ca:01 396040 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
7f1d5e5a8000-7f1d5e5a9000 rw-p 0000b000 ca:01 396040 /lib/x86_64-linux-gnu/libnss_nis-2.19.so
7f1d5e5a9000-7f1d5e5c0000 r-xp 00000000 ca:01 396035 /lib/x86_64-linux-gnu/libnsl-2.19.so
7f1d5e5c0000-7f1d5e7bf000 ---p 00017000 ca:01 396035 /lib/x86_64-linux-gnu/libnsl-2.19.so
7f1d5e7bf000-7f1d5e7c0000 r--p 00016000 ca:01 396035 /lib/x86_64-linux-gnu/libnsl-2.19.so
7f1d5e7c0000-7f1d5e7c1000 rw-p 00017000 ca:01 396035 /lib/x86_64-linux-gnu/libnsl-2.19.so
7f1d5e7c1000-7f1d5e7c3000 rw-p 00000000 00:00 0
7f1d5e7c3000-7f1d5e7cc000 r-xp 00000000 ca:01 396036 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
7f1d5e7cc000-7f1d5e9cb000 ---p 00009000 ca:01 396036 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
7f1d5e9cb000-7f1d5e9cc000 r--p 00008000 ca:01 396036 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
7f1d5e9cc000-7f1d5e9cd000 rw-p 00009000 ca:01 396036 /lib/x86_64-linux-gnu/libnss_compat-2.19.so
7f1d5e9cd000-7f1d5e9f7000 r-xp 00000000 ca:01 154494 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
7f1d5e9f7000-7f1d5ebf7000 ---p 0002a000 ca:01 154494 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
7f1d5ebf7000-7f1d5ebf9000 rw-p 0002a000 ca:01 154494 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
7f1d5ebf9000-7f1d5ec06000 r-xp 00000000 ca:01 154486 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
7f1d5ec06000-7f1d5ee06000 ---p 0000d000 ca:01 154486 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
7f1d5ee06000-7f1d5ee08000 rw-p 0000d000 ca:01 154486 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
7f1d5ee08000-7f1d5ee0f000 r-xp 00000000 ca:01 396060 /lib/x86_64-linux-gnu/librt-2.19.so
7f1d5ee0f000-7f1d5f00e000 ---p 00007000 ca:01 396060 /lib/x86_64-linux-gnu/librt-2.19.so
7f1d5f00e000-7f1d5f00f000 r--p 00006000 ca:01 396060 /lib/x86_64-linux-gnu/librt-2.19.so
7f1d5f00f000-7f1d5f010000 rw-p 00007000 ca:01 396060 /lib/x86_64-linux-gnu/librt-2.19.so
7f1d5f010000-7f1d5f115000 r-xp 00000000 ca:01 396027 /lib/x86_64-linux-gnu/libm-2.19.so
7f1d5f115000-7f1d5f314000 ---p 00105000 ca:01 396027 /lib/x86_64-linux-gnu/libm-2.19.so
7f1d5f314000-7f1d5f315000 r--p 00104000 ca:01 396027 /lib/x86_64-linux-gnu/libm-2.19.so
7f1d5f315000-7f1d5f316000 rw-p 00105000 ca:01 396027 /lib/x86_64-linux-gnu/libm-2.19.so
7f1d5f316000-7f1d5ff80000 r-xp 00000000 ca:01 154534 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
7f1d5ff80000-7f1d6017f000 ---p 00c6a000 ca:01 154534 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
7f1d6017f000-7f1d60256000 rw-p 00c69000 ca:01 154534 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
7f1d60256000-7f1d60298000 rw-p 00000000 00:00 0
7f1d60298000-7f1d60454000 r-xp 00000000 ca:01 396004 /lib/x86_64-linux-gnu/libc-2.19.so
7f1d60454000-7f1d60653000 ---p 001bc000 ca:01 396004 /lib/x86_64-linux-gnu/libc-2.19.so
7f1d60653000-7f1d60657000 r--p 001bb000 ca:01 396004 /lib/x86_64-linux-gnu/libc-2.19.so
7f1d60657000-7f1d60659000 rw-p 001bf000 ca:01 396004 /lib/x86_64-linux-gnu/libc-2.19.so
7f1d60659000-7f1d6065e000 rw-p 00000000 00:00 0
7f1d6065e000-7f1d60661000 r-xp 00000000 ca:01 396013 /lib/x86_64-linux-gnu/libdl-2.19.so
7f1d60661000-7f1d60860000 ---p 00003000 ca:01 396013 /lib/x86_64-linux-gnu/libdl-2.19.so
7f1d60860000-7f1d60861000 r--p 00002000 ca:01 396013 /lib/x86_64-linux-gnu/libdl-2.19.so
7f1d60861000-7f1d60862000 rw-p 00003000 ca:01 396013 /lib/x86_64-linux-gnu/libdl-2.19.so
7f1d60862000-7f1d60877000 r-xp 00000000 ca:01 154489 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/jli/libjli.so
7f1d60877000-7f1d60a76000 ---p 00015000 ca:01 154489 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/jli/libjli.so
7f1d60a76000-7f1d60a77000 rw-p 00014000 ca:01 154489 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/jli/libjli.so
7f1d60a77000-7f1d60a90000 r-xp 00000000 ca:01 396057 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f1d60a90000-7f1d60c8f000 ---p 00019000 ca:01 396057 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f1d60c8f000-7f1d60c90000 r--p 00018000 ca:01 396057 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f1d60c90000-7f1d60c91000 rw-p 00019000 ca:01 396057 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f1d60c91000-7f1d60c95000 rw-p 00000000 00:00 0
7f1d60c95000-7f1d60cb8000 r-xp 00000000 ca:01 395994 /lib/x86_64-linux-gnu/ld-2.19.so
7f1d60cb8000-7f1d60da3000 rw-p 00000000 00:00 0
7f1d60da3000-7f1d60dab000 rw-s 00000000 ca:01 155697 /tmp/hsperfdata_ubuntu/9709
7f1d60dab000-7f1d60dae000 ---p 00000000 00:00 0
7f1d60dae000-7f1d60eb1000 rw-p 00000000 00:00 0 [stack:9763]
7f1d60eb1000-7f1d60eb4000 rw-p 00000000 00:00 0
7f1d60eb4000-7f1d60eb5000 r--p 00000000 00:00 0
7f1d60eb5000-7f1d60eb7000 rw-p 00000000 00:00 0
7f1d60eb7000-7f1d60eb8000 r--p 00022000 ca:01 395994 /lib/x86_64-linux-gnu/ld-2.19.so
7f1d60eb8000-7f1d60eb9000 rw-p 00023000 ca:01 395994 /lib/x86_64-linux-gnu/ld-2.19.so
7f1d60eb9000-7f1d60eba000 rw-p 00000000 00:00 0
7fff58b1f000-7fff58b41000 rw-p 00000000 00:00 0 [stack]
7fff58b82000-7fff58b84000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
VM Arguments:
jvm_args: -Xms1024m -Xmx1024m -XX:ReservedCodeCacheSize=128m -Duser.dir=/app/incoming/target/universal/stage -Dhttp.port=9000
java_command: play.core.server.NettyServer
java_class_path (initial): /app/incoming/target/universal/stage/lib/incoming.incoming-1.0-SNAPSHOT.jar:/app/incoming/target/universal/stage/lib/org.scala-lang.scala-library-2.11.1.jar:/app/incoming/target/universal/stage/lib/com.typesafe.play.twirl-api_2.11-1.0.2.jar:/app/incoming/target/universal/stage/lib/org.apache.commons.commons-lang3-3.1.jar:/app/incoming/target/universal/stage/lib/org.scala-lang.modules.scala-xml_2.11-1.0.1.jar:/app/incoming/target/universal/stage/lib/com.typesafe.play.play_2.11-2.3.2.jar:/app/incoming/target/universal/stage/lib/com.typesafe.play.build-link-2.3.2.jar:/app/incoming/target/universal/stage/lib/com.typesafe.play.play-exceptions-2.3.2.jar:/app/incoming/target/universal/stage/lib/org.javassist.javassist-3.18.2-GA.jar:/app/incoming/target/universal/stage/lib/com.typesafe.play.play-iteratees_2.11-2.3.2.jar:/app/incoming/target/universal/stage/lib/org.scala-stm.scala-stm_2.11-0.7.jar:/app/incoming/target/universal/stage/lib/com.typesafe.config-1.2.1.jar:/app/incoming/target/universal/stage/lib/com.typesafe.play.play-json_2.11-2.3.2.jar:/app/incoming/target/universal/stage/lib/com.typesafe.play.play-functional_2.11-2.3.2.jar:/app/incoming/target/universal/stage/lib/com.typesafe.play.play-datacommons_2.11-2.3.2.jar:/app/incoming/target/universal/stage/lib/joda-time.joda-time-2.3.jar:/app/incoming/target/universal/stage/lib/org.joda.joda-convert-1.6.jar:/app/incoming/target/universal/stage/lib/com.fasterxml.jackson.core.jackson-annotations-2.3.2.jar:/app/incoming/target/universal/stage/lib/com.fasterxml.jackson.core.jackson-core-2.3.2.jar:/app/incoming/target/universal/stage/lib/com.fasterxml.jackson.core.jackson-databind-2.3.2.jar:/app/incoming/target/universal/stage/lib/org.scala-lang.scala-reflect-2.11.1.jar:/app/incoming/target/universal/stage/lib/org.scala-lang.modules.scala-parser-combinators_2.11-1.0.1.jar:/app/incoming/target/universal/stage/lib/io.netty.netty-3.9.2.Final.jar:/app/incoming/target/universal/stage/lib/com.typesaf
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
SHELL=/bin/bash
Signal Handlers:
SIGSEGV: [libjvm.so+0xa77530], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.so+0xa77530], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.so+0x8e1d90], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.so+0x8e1d90], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.so+0x8e1d90], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.so+0x8e1d90], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGUSR2: [libjvm.so+0x8e35c0], sa_mask[0]=00100000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGINT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGQUIT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
--------------- S Y S T E M ---------------
OS:DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
uname:Linux 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64
libc:glibc 2.19 NPTL 2.19
rlimit: STACK 8192k, CORE 0k, NPROC 7862, NOFILE 4096, AS infinity
load average:1.21 0.56 0.31
/proc/meminfo:
MemTotal: 1016280 kB
MemFree: 208680 kB
Buffers: 15896 kB
Cached: 256732 kB
SwapCached: 0 kB
Active: 654380 kB
Inactive: 105640 kB
Active(anon): 487488 kB
Inactive(anon): 280 kB
Active(file): 166892 kB
Inactive(file): 105360 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 31572 kB
Writeback: 0 kB
AnonPages: 487488 kB
Mapped: 30148 kB
Shmem: 352 kB
Slab: 27344 kB
SReclaimable: 17888 kB
SUnreclaim: 9456 kB
KernelStack: 1128 kB
PageTables: 3684 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 508140 kB
Committed_AS: 858160 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 2400 kB
VmallocChunk: 34359729467 kB
HardwareCorrupted: 0 kB
AnonHugePages: 245760 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 24576 kB
DirectMap2M: 1155072 kB
CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 62 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, erms, tsc
/proc/cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
stepping : 4
microcode : 0x416
cpu MHz : 2500.088
cache size : 25600 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep erms
bogomips : 5000.17
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
Memory: 4k page, physical 1016280k(208680k free), swap 0k(0k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (25.20-b23) for linux-amd64 JRE (1.8.0_20-b26), built on Jul 30 2014 13:13:52 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)
time: Tue Sep 16 19:21:56 2014
elapsed time: 0 seconds (0d 0h 0m 0s)
@luo4neck
Copy link

Haha.. having the same error and saw your question on stackoverflow.. could you please let me know your final solution? sbt -mem? thanks!

How is everything going with Scala&Spark now bro?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment