Trying to run Java commands after installing java produces “Native memory allocation (mmap) failed to...












-1















I installed java 1.8.0_201 on a Centos 6.10 system. When I try to do any java related command, such as "javac HelloWorld" or "jps -v", I get something like the following.



# jps -v



Picked up JAVA_TOOL_OPTIONS: -Xms64m -Xmx64m -XX:-UseCompressedOops -XX:ReservedCodeCacheSize=1006632960



Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x000003a570000000, 2555904, 1) failed; error='Operation not permitted' (errno=1)



#



# There is insufficient memory for the Java Runtime Environment to continue.



# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.



# An error report file with more information is saved as:



# /home/mmall/hs_err_pid23101.log



Note that I added the "JAVA_TOOL_OPTIONS" environment variable with options set to address suggestions in the hs_err_pidxxxxx.log files created each time this error occurs. This includes reducing the min and max heap size values. I have also created a 4GB /swapfile and enabled it for swapping; but, this did not address the issue. (Before creating the /swapfile, there was 1.0 GB available for swapping. After creating the file, there was 5.0 GB.) See the results from "free -h" and "swapon -s" below.



# free -h



         total       used       free     shared    buffers     cached


Mem: 5.6G 5.1G 461M 740K 21M 1.0G



-/+ buffers/cache: 4.1G 1.5G



Swap: 5.0G 1.0G 4.0G



# swapon -s



Filename Type Size Used Priority



/dev/dm-1 partition 1048572 1048572 -2



/swapfile file 4194300 16652 -3



$ java -version



java version "1.8.0_201"



Java(TM) SE Runtime Environment (build 1.8.0_201-b09)



Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)



I notice the error always indicates it is trying to map 2555904 (2.4GB) of space regardless of the settings I make for JAVA_TOOL_OPTIONS. I don't how this value is calculated or if it can be set to something.



The hs_err_pidxxxxx.log files all include "The system is out of physical RAM or swap space" and included among the possible solutions is "Check if swap backing store is full". I am not sure about this particular suggestion. Does it simply mean to check the available swap space? If so, it seems there should be plenty (4194300 - 16652 = 4177648 > 2555904). Maybe it needs the memory from somewhere else. I don't understand how this works.



Below is the full text from one of the log files. Any assistance you can offer will be greatly appreciated.





#



# There is insufficient memory for the Java Runtime Environment to continue.



# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.



# Possible reasons:



# The system is out of physical RAM or swap space



# Possible solutions:



# Reduce memory load on the system



# Increase physical memory or swap space



# Check if swap backing store is full



# 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:2749), pid=23101, tid=0x000003a5b2fa1700



#



# JRE version: (8.0_201-b09) (build )



# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.201-b09 mixed mode linux-amd64 )



# 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 (0x000003a5ac009000): JavaThread "Unknown thread" [_thread_in_vm, id=23102, stack(0x000003a5b2ea1000,0x000003a5b2fa2000)]



Stack: [0x000003a5b2ea1000,0x000003a5b2fa2000], sp=0x000003a5b2fa0750, free space=1021k



Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)



V [libjvm.so+0xad3525] VMError::report_and_die()+0x2e5



V [libjvm.so+0x4e0457] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x67



V [libjvm.so+0x9102f0] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x100



V [libjvm.so+0x90791f] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x1f



V [libjvm.so+0xacf81c] VirtualSpace::initialize(ReservedSpace, unsigned long)+0x20c



V [libjvm.so+0x60b714] CodeHeap::reserve(unsigned long, unsigned long, unsigned long)+0x124



V [libjvm.so+0x45b19a] codeCache_init()+0x7a



V [libjvm.so+0x631fbc] init_globals()+0x3c



V [libjvm.so+0xa79b69] Threads::create_vm(JavaVMInitArgs*, bool*)+0x409



V [libjvm.so+0x6d7b4f] JNI_CreateJavaVM+0x4f



C [libjli.so+0x7ee4] JavaMain+0x84



C [libpthread.so.0+0x7aa1]



--------------- P R O C E S S ---------------



Java Threads: ( => current thread )



Other Threads:



=>0x000003a5ac009000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=23102, stack(0x000003a5b2ea1000,0x000003a5b2fa2000)]



VM state:not at safepoint (not fully initialized)



VM Mutex/Monitor currently owned by a thread: None



Deoptimization events (0 events):



No events



Classes redefined (0 events):



No events



Internal exceptions (0 events):



No events



Events (0 events):



No events



Dynamic libraries:



00400000-00401000 r-xp 00000000 fd:00 1839402 /usr/java/jdk1.8.0_201-amd64/bin/jps



00600000-00601000 r--p 00000000 fd:00 1839402 /usr/java/jdk1.8.0_201-amd64/bin/jps



00601000-00602000 rw-p 00001000 fd:00 1839402 /usr/java/jdk1.8.0_201-amd64/bin/jps



00602000-00b5a000 ---p 00000000 00:00 0



00b5a000-00b7c000 rw-p 00000000 00:00 0 [heap]



3a570000000-3a5ac000000 ---p 00000000 00:00 0



3a5ac000000-3a5ac02e000 rw-p 00000000 00:00 0



3a5ac02e000-3a5b0000000 ---p 00000000 00:00 0



3a5b046a000-3a5b06ff000 rw-p 00000000 00:00 0



3a5b06ff000-3a5b071a000 r-xp 00000000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b071a000-3a5b0919000 ---p 0001b000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b0919000-3a5b091a000 r--p 0001a000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b091a000-3a5b091b000 rw-p 0001b000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b091b000-3a5b0928000 r-xp 00000000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0928000-3a5b0b27000 ---p 0000d000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0b27000-3a5b0b28000 r--p 0000c000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0b28000-3a5b0b29000 rw-p 0000d000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0b29000-3a5b0b55000 r-xp 00000000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0b55000-3a5b0d55000 ---p 0002c000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0d55000-3a5b0d56000 r--p 0002c000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0d56000-3a5b0d58000 rw-p 0002d000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0d58000-3a5b0d65000 r-xp 00000000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0d65000-3a5b0f64000 ---p 0000d000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0f64000-3a5b0f66000 r--p 0000c000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0f66000-3a5b0f67000 rw-p 0000e000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0f67000-3a5b0f6e000 r-xp 00000000 fd:00 6956 /lib64/librt-2.12.so



3a5b0f6e000-3a5b116d000 ---p 00007000 fd:00 6956 /lib64/librt-2.12.so



3a5b116d000-3a5b116e000 r--p 00006000 fd:00 6956 /lib64/librt-2.12.so



3a5b116e000-3a5b116f000 rw-p 00007000 fd:00 6956 /lib64/librt-2.12.so



3a5b116f000-3a5b11f2000 r-xp 00000000 fd:00 6962 /lib64/libm-2.12.so



3a5b11f2000-3a5b13f1000 ---p 00083000 fd:00 6962 /lib64/libm-2.12.so



3a5b13f1000-3a5b13f2000 r--p 00082000 fd:00 6962 /lib64/libm-2.12.so



3a5b13f2000-3a5b13f3000 rw-p 00083000 fd:00 6962 /lib64/libm-2.12.so



3a5b13f3000-3a5b20db000 r-xp 00000000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b20db000-3a5b22da000 ---p 00ce8000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b22da000-3a5b2370000 r--p 00ce7000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b2370000-3a5b23a1000 rw-p 00d7d000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b23a1000-3a5b23dc000 rw-p 00000000 00:00 0



3a5b23dc000-3a5b2567000 r-xp 00000000 fd:00 6948 /lib64/libc-2.12.so



3a5b2567000-3a5b2766000 ---p 0018b000 fd:00 6948 /lib64/libc-2.12.so



3a5b2766000-3a5b276a000 r--p 0018a000 fd:00 6948 /lib64/libc-2.12.so



3a5b276a000-3a5b276c000 rw-p 0018e000 fd:00 6948 /lib64/libc-2.12.so



3a5b276c000-3a5b2770000 rw-p 00000000 00:00 0



3a5b2770000-3a5b2772000 r-xp 00000000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2772000-3a5b2972000 ---p 00002000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2972000-3a5b2973000 r--p 00002000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2973000-3a5b2974000 rw-p 00003000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2974000-3a5b298b000 r-xp 00000000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b298b000-3a5b2b8a000 ---p 00017000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b2b8a000-3a5b2b8b000 r--p 00016000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b2b8b000-3a5b2b8c000 rw-p 00017000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b2b8c000-3a5b2ba3000 r-xp 00000000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2ba3000-3a5b2da3000 ---p 00017000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2da3000-3a5b2da4000 r--p 00017000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2da4000-3a5b2da5000 rw-p 00018000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2da5000-3a5b2da9000 rw-p 00000000 00:00 0



3a5b2da9000-3a5b2dc9000 r-xp 00000000 fd:00 6947 /lib64/ld-2.12.so



3a5b2ea1000-3a5b2ea4000 ---p 00000000 00:00 0



3a5b2ea4000-3a5b2fa2000 rw-p 00000000 00:00 0



3a5b2fae000-3a5b2fb6000 rw-s 00000000 fd:00 917769 /tmp/hsperfdata_root/23101



3a5b2fb6000-3a5b2fba000 rw-p 00000000 00:00 0



3a5b2fbe000-3a5b2fc2000 rw-p 00000000 00:00 0



3a5b2fc2000-3a5b2fc3000 r--p 00000000 00:00 0



3a5b2fc3000-3a5b2fc4000 rw-p 00000000 00:00 0



3a5b2fc4000-3a5b2fc7000 r--p 00000000 00:00 0 [vvar]



3a5b2fc7000-3a5b2fc9000 r-xp 00000000 00:00 0 [vdso]



3a5b2fc9000-3a5b2fca000 r--p 00020000 fd:00 6947 /lib64/ld-2.12.so



3a5b2fca000-3a5b2fcb000 rw-p 00021000 fd:00 6947 /lib64/ld-2.12.so



3a5b2fcb000-3a5b2fcc000 rw-p 00000000 00:00 0



3b1723dc000-3b1723fe000 rw-p 00000000 00:00 0 [stack]



ffffffffff600000-ffffffffff601000 r--p 00000000 00:00 0 [vsyscall]



VM Arguments:



jvm_args: -Xms64m -Xmx64m -XX:-UseCompressedOops -XX:ReservedCodeCacheSize=1006632960 -Dapplication.home=/usr/java/jdk1.8.0_201-amd64 -Xms8m



java_command: sun.tools.jps.Jps -v



java_class_path (initial): /usr/java/jdk1.8.0_201-amd64/lib/tools.jar:/usr/java/jdk1.8.0_201-amd64/classes



Launcher Type: SUN_STANDARD



Environment Variables:



JAVA_HOME=/usr/java/jdk1.8.0_201-amd64



JAVA_TOOL_OPTIONS=-Xms64m -Xmx64m -XX:-UseCompressedOops -XX:ReservedCodeCacheSize=1006632960



PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin



USERNAME=root



LD_LIBRARY_PATH=/opt/safenet/protecttoolkit5/ptk/lib:



SHELL=/bin/bash



Signal Handlers:



SIGSEGV: [libjvm.so+0xad3e60], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGBUS: [libjvm.so+0xad3e60], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGFPE: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGPIPE: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGXFSZ: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGILL: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none



SIGUSR2: [libjvm.so+0x90b750], sa_mask[0]=00000000000000000000000000000000, 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:CentOS release 6.10 (Final)



uname:Linux 4.14.59-5553.el6.art.x86_64 #1 SMP Tue Jul 31 13:51:26 EDT 2018 x86_64



libc:glibc 2.12 NPTL 2.12



rlimit: STACK 8192k, CORE 0k, NPROC 22711, NOFILE 4096, AS infinity



load average:0.01 0.00 0.00



/proc/meminfo:



MemTotal: 5842992 kB



MemFree: 429972 kB



MemAvailable: 1392740 kB



Buffers: 22548 kB



Cached: 1107324 kB



SwapCached: 49196 kB



Active: 4226880 kB



Inactive: 988316 kB



Active(anon): 3404016 kB



Inactive(anon): 682048 kB



Active(file): 822864 kB



Inactive(file): 306268 kB



Unevictable: 0 kB



Mlocked: 0 kB



SwapTotal: 5242872 kB



SwapFree: 4177648 kB



Dirty: 120 kB



Writeback: 0 kB



AnonPages: 4003060 kB



Mapped: 25980 kB



Shmem: 740 kB



Slab: 118808 kB



SReclaimable: 93984 kB



SUnreclaim: 24824 kB



KernelStack: 4448 kB



PageTables: 23952 kB



NFS_Unstable: 0 kB



Bounce: 0 kB



WritebackTmp: 0 kB



CommitLimit: 8164368 kB



Committed_AS: 9167728 kB



VmallocTotal: 34359738367 kB



VmallocUsed: 0 kB



VmallocChunk: 0 kB



HardwareCorrupted: 0 kB



AnonHugePages: 2377728 kB



ShmemHugePages: 0 kB



ShmemPmdMapped: 0 kB



HugePages_Total: 0



HugePages_Free: 0



HugePages_Rsvd: 0



HugePages_Surp: 0



Hugepagesize: 2048 kB



DirectMap4k: 16320 kB



DirectMap2M: 6275072 kB



CPU:total 2 (initial active 2)



/proc/cpuinfo:



processor : 0



vendor_id : GenuineIntel



cpu family : 6



model : 45



model name : Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz



stepping : 2



microcode : 0x3b



cpu MHz : 2294.686



cache size : 30720 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 dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid ljmpq pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm uderef arat



bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass



bogomips : 4589.37



clflush size : 64



cache_alignment : 64



address sizes : 40 bits physical, 48 bits virtual



power management:



processor : 1



vendor_id : GenuineIntel



cpu family : 6



model : 45



model name : Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz



stepping : 2



microcode : 0x3b



cpu MHz : 2294.686



cache size : 30720 KB



physical id : 2



siblings : 1



core id : 0



cpu cores : 1



apicid : 2



initial apicid : 2



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 dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid ljmpq pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm uderef arat



bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass



bogomips : 4589.37



clflush size : 64



cache_alignment : 64



address sizes : 40 bits physical, 48 bits virtual



power management:



Memory: 4k page, physical 5842992k(429972k free), swap 5242872k(4177648k free)



vm_info: Java HotSpot(TM) 64-Bit Server VM (25.201-b09) for linux-amd64 JRE (1.8.0_201-b09), built on Dec 15 2018 11:35:59 by "java_re" with gcc 7.3.0



time: Wed Jan 23 16:02:07 2019



timezone: CST



elapsed time: 0 seconds (0d 0h 0m 0s)













share|improve this question























  • Please format with code markers so it is (more) readable. That said, is the JRE in your $PATH, is $JAVA_HOME set, etc? What does which java report? Is it the same as the binary in ..../jdk_1.8.xx/bin/java ?

    – ivanivan
    Jan 23 at 23:10











  • My apologies for taking so long to respond. My PATH variable was "PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin". "which java" returned "/usr/bin/java". This is a symbolic link.

    – Michael E. Mall
    Jan 30 at 20:05











  • # ll /usr/bin/java lrwxrwxrwx 1 root root 22 Jan 22 11:28 /usr/bin/java -> /etc/alternatives/java This is also a symbolic link. # ll /etc/alternatives/java lrwxrwxrwx 1 root root 41 Jan 22 11:28 /etc/alternatives/java -> /usr/java/jdk1.8.0_201-amd64/jre/bin/java "java -version" returned "Segmentation fault" I added "/usr/java/jdk1.8.0_201-amd64/jre/bin/java" to the PATH variable, making it "PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.8.0_201-amd64/jre/bin/java". I still get "Segmentation fault" upon running "java -version".

    – Michael E. Mall
    Jan 30 at 20:05


















-1















I installed java 1.8.0_201 on a Centos 6.10 system. When I try to do any java related command, such as "javac HelloWorld" or "jps -v", I get something like the following.



# jps -v



Picked up JAVA_TOOL_OPTIONS: -Xms64m -Xmx64m -XX:-UseCompressedOops -XX:ReservedCodeCacheSize=1006632960



Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x000003a570000000, 2555904, 1) failed; error='Operation not permitted' (errno=1)



#



# There is insufficient memory for the Java Runtime Environment to continue.



# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.



# An error report file with more information is saved as:



# /home/mmall/hs_err_pid23101.log



Note that I added the "JAVA_TOOL_OPTIONS" environment variable with options set to address suggestions in the hs_err_pidxxxxx.log files created each time this error occurs. This includes reducing the min and max heap size values. I have also created a 4GB /swapfile and enabled it for swapping; but, this did not address the issue. (Before creating the /swapfile, there was 1.0 GB available for swapping. After creating the file, there was 5.0 GB.) See the results from "free -h" and "swapon -s" below.



# free -h



         total       used       free     shared    buffers     cached


Mem: 5.6G 5.1G 461M 740K 21M 1.0G



-/+ buffers/cache: 4.1G 1.5G



Swap: 5.0G 1.0G 4.0G



# swapon -s



Filename Type Size Used Priority



/dev/dm-1 partition 1048572 1048572 -2



/swapfile file 4194300 16652 -3



$ java -version



java version "1.8.0_201"



Java(TM) SE Runtime Environment (build 1.8.0_201-b09)



Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)



I notice the error always indicates it is trying to map 2555904 (2.4GB) of space regardless of the settings I make for JAVA_TOOL_OPTIONS. I don't how this value is calculated or if it can be set to something.



The hs_err_pidxxxxx.log files all include "The system is out of physical RAM or swap space" and included among the possible solutions is "Check if swap backing store is full". I am not sure about this particular suggestion. Does it simply mean to check the available swap space? If so, it seems there should be plenty (4194300 - 16652 = 4177648 > 2555904). Maybe it needs the memory from somewhere else. I don't understand how this works.



Below is the full text from one of the log files. Any assistance you can offer will be greatly appreciated.





#



# There is insufficient memory for the Java Runtime Environment to continue.



# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.



# Possible reasons:



# The system is out of physical RAM or swap space



# Possible solutions:



# Reduce memory load on the system



# Increase physical memory or swap space



# Check if swap backing store is full



# 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:2749), pid=23101, tid=0x000003a5b2fa1700



#



# JRE version: (8.0_201-b09) (build )



# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.201-b09 mixed mode linux-amd64 )



# 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 (0x000003a5ac009000): JavaThread "Unknown thread" [_thread_in_vm, id=23102, stack(0x000003a5b2ea1000,0x000003a5b2fa2000)]



Stack: [0x000003a5b2ea1000,0x000003a5b2fa2000], sp=0x000003a5b2fa0750, free space=1021k



Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)



V [libjvm.so+0xad3525] VMError::report_and_die()+0x2e5



V [libjvm.so+0x4e0457] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x67



V [libjvm.so+0x9102f0] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x100



V [libjvm.so+0x90791f] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x1f



V [libjvm.so+0xacf81c] VirtualSpace::initialize(ReservedSpace, unsigned long)+0x20c



V [libjvm.so+0x60b714] CodeHeap::reserve(unsigned long, unsigned long, unsigned long)+0x124



V [libjvm.so+0x45b19a] codeCache_init()+0x7a



V [libjvm.so+0x631fbc] init_globals()+0x3c



V [libjvm.so+0xa79b69] Threads::create_vm(JavaVMInitArgs*, bool*)+0x409



V [libjvm.so+0x6d7b4f] JNI_CreateJavaVM+0x4f



C [libjli.so+0x7ee4] JavaMain+0x84



C [libpthread.so.0+0x7aa1]



--------------- P R O C E S S ---------------



Java Threads: ( => current thread )



Other Threads:



=>0x000003a5ac009000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=23102, stack(0x000003a5b2ea1000,0x000003a5b2fa2000)]



VM state:not at safepoint (not fully initialized)



VM Mutex/Monitor currently owned by a thread: None



Deoptimization events (0 events):



No events



Classes redefined (0 events):



No events



Internal exceptions (0 events):



No events



Events (0 events):



No events



Dynamic libraries:



00400000-00401000 r-xp 00000000 fd:00 1839402 /usr/java/jdk1.8.0_201-amd64/bin/jps



00600000-00601000 r--p 00000000 fd:00 1839402 /usr/java/jdk1.8.0_201-amd64/bin/jps



00601000-00602000 rw-p 00001000 fd:00 1839402 /usr/java/jdk1.8.0_201-amd64/bin/jps



00602000-00b5a000 ---p 00000000 00:00 0



00b5a000-00b7c000 rw-p 00000000 00:00 0 [heap]



3a570000000-3a5ac000000 ---p 00000000 00:00 0



3a5ac000000-3a5ac02e000 rw-p 00000000 00:00 0



3a5ac02e000-3a5b0000000 ---p 00000000 00:00 0



3a5b046a000-3a5b06ff000 rw-p 00000000 00:00 0



3a5b06ff000-3a5b071a000 r-xp 00000000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b071a000-3a5b0919000 ---p 0001b000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b0919000-3a5b091a000 r--p 0001a000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b091a000-3a5b091b000 rw-p 0001b000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b091b000-3a5b0928000 r-xp 00000000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0928000-3a5b0b27000 ---p 0000d000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0b27000-3a5b0b28000 r--p 0000c000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0b28000-3a5b0b29000 rw-p 0000d000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0b29000-3a5b0b55000 r-xp 00000000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0b55000-3a5b0d55000 ---p 0002c000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0d55000-3a5b0d56000 r--p 0002c000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0d56000-3a5b0d58000 rw-p 0002d000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0d58000-3a5b0d65000 r-xp 00000000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0d65000-3a5b0f64000 ---p 0000d000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0f64000-3a5b0f66000 r--p 0000c000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0f66000-3a5b0f67000 rw-p 0000e000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0f67000-3a5b0f6e000 r-xp 00000000 fd:00 6956 /lib64/librt-2.12.so



3a5b0f6e000-3a5b116d000 ---p 00007000 fd:00 6956 /lib64/librt-2.12.so



3a5b116d000-3a5b116e000 r--p 00006000 fd:00 6956 /lib64/librt-2.12.so



3a5b116e000-3a5b116f000 rw-p 00007000 fd:00 6956 /lib64/librt-2.12.so



3a5b116f000-3a5b11f2000 r-xp 00000000 fd:00 6962 /lib64/libm-2.12.so



3a5b11f2000-3a5b13f1000 ---p 00083000 fd:00 6962 /lib64/libm-2.12.so



3a5b13f1000-3a5b13f2000 r--p 00082000 fd:00 6962 /lib64/libm-2.12.so



3a5b13f2000-3a5b13f3000 rw-p 00083000 fd:00 6962 /lib64/libm-2.12.so



3a5b13f3000-3a5b20db000 r-xp 00000000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b20db000-3a5b22da000 ---p 00ce8000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b22da000-3a5b2370000 r--p 00ce7000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b2370000-3a5b23a1000 rw-p 00d7d000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b23a1000-3a5b23dc000 rw-p 00000000 00:00 0



3a5b23dc000-3a5b2567000 r-xp 00000000 fd:00 6948 /lib64/libc-2.12.so



3a5b2567000-3a5b2766000 ---p 0018b000 fd:00 6948 /lib64/libc-2.12.so



3a5b2766000-3a5b276a000 r--p 0018a000 fd:00 6948 /lib64/libc-2.12.so



3a5b276a000-3a5b276c000 rw-p 0018e000 fd:00 6948 /lib64/libc-2.12.so



3a5b276c000-3a5b2770000 rw-p 00000000 00:00 0



3a5b2770000-3a5b2772000 r-xp 00000000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2772000-3a5b2972000 ---p 00002000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2972000-3a5b2973000 r--p 00002000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2973000-3a5b2974000 rw-p 00003000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2974000-3a5b298b000 r-xp 00000000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b298b000-3a5b2b8a000 ---p 00017000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b2b8a000-3a5b2b8b000 r--p 00016000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b2b8b000-3a5b2b8c000 rw-p 00017000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b2b8c000-3a5b2ba3000 r-xp 00000000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2ba3000-3a5b2da3000 ---p 00017000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2da3000-3a5b2da4000 r--p 00017000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2da4000-3a5b2da5000 rw-p 00018000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2da5000-3a5b2da9000 rw-p 00000000 00:00 0



3a5b2da9000-3a5b2dc9000 r-xp 00000000 fd:00 6947 /lib64/ld-2.12.so



3a5b2ea1000-3a5b2ea4000 ---p 00000000 00:00 0



3a5b2ea4000-3a5b2fa2000 rw-p 00000000 00:00 0



3a5b2fae000-3a5b2fb6000 rw-s 00000000 fd:00 917769 /tmp/hsperfdata_root/23101



3a5b2fb6000-3a5b2fba000 rw-p 00000000 00:00 0



3a5b2fbe000-3a5b2fc2000 rw-p 00000000 00:00 0



3a5b2fc2000-3a5b2fc3000 r--p 00000000 00:00 0



3a5b2fc3000-3a5b2fc4000 rw-p 00000000 00:00 0



3a5b2fc4000-3a5b2fc7000 r--p 00000000 00:00 0 [vvar]



3a5b2fc7000-3a5b2fc9000 r-xp 00000000 00:00 0 [vdso]



3a5b2fc9000-3a5b2fca000 r--p 00020000 fd:00 6947 /lib64/ld-2.12.so



3a5b2fca000-3a5b2fcb000 rw-p 00021000 fd:00 6947 /lib64/ld-2.12.so



3a5b2fcb000-3a5b2fcc000 rw-p 00000000 00:00 0



3b1723dc000-3b1723fe000 rw-p 00000000 00:00 0 [stack]



ffffffffff600000-ffffffffff601000 r--p 00000000 00:00 0 [vsyscall]



VM Arguments:



jvm_args: -Xms64m -Xmx64m -XX:-UseCompressedOops -XX:ReservedCodeCacheSize=1006632960 -Dapplication.home=/usr/java/jdk1.8.0_201-amd64 -Xms8m



java_command: sun.tools.jps.Jps -v



java_class_path (initial): /usr/java/jdk1.8.0_201-amd64/lib/tools.jar:/usr/java/jdk1.8.0_201-amd64/classes



Launcher Type: SUN_STANDARD



Environment Variables:



JAVA_HOME=/usr/java/jdk1.8.0_201-amd64



JAVA_TOOL_OPTIONS=-Xms64m -Xmx64m -XX:-UseCompressedOops -XX:ReservedCodeCacheSize=1006632960



PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin



USERNAME=root



LD_LIBRARY_PATH=/opt/safenet/protecttoolkit5/ptk/lib:



SHELL=/bin/bash



Signal Handlers:



SIGSEGV: [libjvm.so+0xad3e60], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGBUS: [libjvm.so+0xad3e60], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGFPE: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGPIPE: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGXFSZ: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGILL: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none



SIGUSR2: [libjvm.so+0x90b750], sa_mask[0]=00000000000000000000000000000000, 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:CentOS release 6.10 (Final)



uname:Linux 4.14.59-5553.el6.art.x86_64 #1 SMP Tue Jul 31 13:51:26 EDT 2018 x86_64



libc:glibc 2.12 NPTL 2.12



rlimit: STACK 8192k, CORE 0k, NPROC 22711, NOFILE 4096, AS infinity



load average:0.01 0.00 0.00



/proc/meminfo:



MemTotal: 5842992 kB



MemFree: 429972 kB



MemAvailable: 1392740 kB



Buffers: 22548 kB



Cached: 1107324 kB



SwapCached: 49196 kB



Active: 4226880 kB



Inactive: 988316 kB



Active(anon): 3404016 kB



Inactive(anon): 682048 kB



Active(file): 822864 kB



Inactive(file): 306268 kB



Unevictable: 0 kB



Mlocked: 0 kB



SwapTotal: 5242872 kB



SwapFree: 4177648 kB



Dirty: 120 kB



Writeback: 0 kB



AnonPages: 4003060 kB



Mapped: 25980 kB



Shmem: 740 kB



Slab: 118808 kB



SReclaimable: 93984 kB



SUnreclaim: 24824 kB



KernelStack: 4448 kB



PageTables: 23952 kB



NFS_Unstable: 0 kB



Bounce: 0 kB



WritebackTmp: 0 kB



CommitLimit: 8164368 kB



Committed_AS: 9167728 kB



VmallocTotal: 34359738367 kB



VmallocUsed: 0 kB



VmallocChunk: 0 kB



HardwareCorrupted: 0 kB



AnonHugePages: 2377728 kB



ShmemHugePages: 0 kB



ShmemPmdMapped: 0 kB



HugePages_Total: 0



HugePages_Free: 0



HugePages_Rsvd: 0



HugePages_Surp: 0



Hugepagesize: 2048 kB



DirectMap4k: 16320 kB



DirectMap2M: 6275072 kB



CPU:total 2 (initial active 2)



/proc/cpuinfo:



processor : 0



vendor_id : GenuineIntel



cpu family : 6



model : 45



model name : Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz



stepping : 2



microcode : 0x3b



cpu MHz : 2294.686



cache size : 30720 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 dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid ljmpq pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm uderef arat



bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass



bogomips : 4589.37



clflush size : 64



cache_alignment : 64



address sizes : 40 bits physical, 48 bits virtual



power management:



processor : 1



vendor_id : GenuineIntel



cpu family : 6



model : 45



model name : Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz



stepping : 2



microcode : 0x3b



cpu MHz : 2294.686



cache size : 30720 KB



physical id : 2



siblings : 1



core id : 0



cpu cores : 1



apicid : 2



initial apicid : 2



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 dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid ljmpq pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm uderef arat



bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass



bogomips : 4589.37



clflush size : 64



cache_alignment : 64



address sizes : 40 bits physical, 48 bits virtual



power management:



Memory: 4k page, physical 5842992k(429972k free), swap 5242872k(4177648k free)



vm_info: Java HotSpot(TM) 64-Bit Server VM (25.201-b09) for linux-amd64 JRE (1.8.0_201-b09), built on Dec 15 2018 11:35:59 by "java_re" with gcc 7.3.0



time: Wed Jan 23 16:02:07 2019



timezone: CST



elapsed time: 0 seconds (0d 0h 0m 0s)













share|improve this question























  • Please format with code markers so it is (more) readable. That said, is the JRE in your $PATH, is $JAVA_HOME set, etc? What does which java report? Is it the same as the binary in ..../jdk_1.8.xx/bin/java ?

    – ivanivan
    Jan 23 at 23:10











  • My apologies for taking so long to respond. My PATH variable was "PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin". "which java" returned "/usr/bin/java". This is a symbolic link.

    – Michael E. Mall
    Jan 30 at 20:05











  • # ll /usr/bin/java lrwxrwxrwx 1 root root 22 Jan 22 11:28 /usr/bin/java -> /etc/alternatives/java This is also a symbolic link. # ll /etc/alternatives/java lrwxrwxrwx 1 root root 41 Jan 22 11:28 /etc/alternatives/java -> /usr/java/jdk1.8.0_201-amd64/jre/bin/java "java -version" returned "Segmentation fault" I added "/usr/java/jdk1.8.0_201-amd64/jre/bin/java" to the PATH variable, making it "PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.8.0_201-amd64/jre/bin/java". I still get "Segmentation fault" upon running "java -version".

    – Michael E. Mall
    Jan 30 at 20:05
















-1












-1








-1








I installed java 1.8.0_201 on a Centos 6.10 system. When I try to do any java related command, such as "javac HelloWorld" or "jps -v", I get something like the following.



# jps -v



Picked up JAVA_TOOL_OPTIONS: -Xms64m -Xmx64m -XX:-UseCompressedOops -XX:ReservedCodeCacheSize=1006632960



Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x000003a570000000, 2555904, 1) failed; error='Operation not permitted' (errno=1)



#



# There is insufficient memory for the Java Runtime Environment to continue.



# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.



# An error report file with more information is saved as:



# /home/mmall/hs_err_pid23101.log



Note that I added the "JAVA_TOOL_OPTIONS" environment variable with options set to address suggestions in the hs_err_pidxxxxx.log files created each time this error occurs. This includes reducing the min and max heap size values. I have also created a 4GB /swapfile and enabled it for swapping; but, this did not address the issue. (Before creating the /swapfile, there was 1.0 GB available for swapping. After creating the file, there was 5.0 GB.) See the results from "free -h" and "swapon -s" below.



# free -h



         total       used       free     shared    buffers     cached


Mem: 5.6G 5.1G 461M 740K 21M 1.0G



-/+ buffers/cache: 4.1G 1.5G



Swap: 5.0G 1.0G 4.0G



# swapon -s



Filename Type Size Used Priority



/dev/dm-1 partition 1048572 1048572 -2



/swapfile file 4194300 16652 -3



$ java -version



java version "1.8.0_201"



Java(TM) SE Runtime Environment (build 1.8.0_201-b09)



Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)



I notice the error always indicates it is trying to map 2555904 (2.4GB) of space regardless of the settings I make for JAVA_TOOL_OPTIONS. I don't how this value is calculated or if it can be set to something.



The hs_err_pidxxxxx.log files all include "The system is out of physical RAM or swap space" and included among the possible solutions is "Check if swap backing store is full". I am not sure about this particular suggestion. Does it simply mean to check the available swap space? If so, it seems there should be plenty (4194300 - 16652 = 4177648 > 2555904). Maybe it needs the memory from somewhere else. I don't understand how this works.



Below is the full text from one of the log files. Any assistance you can offer will be greatly appreciated.





#



# There is insufficient memory for the Java Runtime Environment to continue.



# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.



# Possible reasons:



# The system is out of physical RAM or swap space



# Possible solutions:



# Reduce memory load on the system



# Increase physical memory or swap space



# Check if swap backing store is full



# 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:2749), pid=23101, tid=0x000003a5b2fa1700



#



# JRE version: (8.0_201-b09) (build )



# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.201-b09 mixed mode linux-amd64 )



# 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 (0x000003a5ac009000): JavaThread "Unknown thread" [_thread_in_vm, id=23102, stack(0x000003a5b2ea1000,0x000003a5b2fa2000)]



Stack: [0x000003a5b2ea1000,0x000003a5b2fa2000], sp=0x000003a5b2fa0750, free space=1021k



Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)



V [libjvm.so+0xad3525] VMError::report_and_die()+0x2e5



V [libjvm.so+0x4e0457] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x67



V [libjvm.so+0x9102f0] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x100



V [libjvm.so+0x90791f] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x1f



V [libjvm.so+0xacf81c] VirtualSpace::initialize(ReservedSpace, unsigned long)+0x20c



V [libjvm.so+0x60b714] CodeHeap::reserve(unsigned long, unsigned long, unsigned long)+0x124



V [libjvm.so+0x45b19a] codeCache_init()+0x7a



V [libjvm.so+0x631fbc] init_globals()+0x3c



V [libjvm.so+0xa79b69] Threads::create_vm(JavaVMInitArgs*, bool*)+0x409



V [libjvm.so+0x6d7b4f] JNI_CreateJavaVM+0x4f



C [libjli.so+0x7ee4] JavaMain+0x84



C [libpthread.so.0+0x7aa1]



--------------- P R O C E S S ---------------



Java Threads: ( => current thread )



Other Threads:



=>0x000003a5ac009000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=23102, stack(0x000003a5b2ea1000,0x000003a5b2fa2000)]



VM state:not at safepoint (not fully initialized)



VM Mutex/Monitor currently owned by a thread: None



Deoptimization events (0 events):



No events



Classes redefined (0 events):



No events



Internal exceptions (0 events):



No events



Events (0 events):



No events



Dynamic libraries:



00400000-00401000 r-xp 00000000 fd:00 1839402 /usr/java/jdk1.8.0_201-amd64/bin/jps



00600000-00601000 r--p 00000000 fd:00 1839402 /usr/java/jdk1.8.0_201-amd64/bin/jps



00601000-00602000 rw-p 00001000 fd:00 1839402 /usr/java/jdk1.8.0_201-amd64/bin/jps



00602000-00b5a000 ---p 00000000 00:00 0



00b5a000-00b7c000 rw-p 00000000 00:00 0 [heap]



3a570000000-3a5ac000000 ---p 00000000 00:00 0



3a5ac000000-3a5ac02e000 rw-p 00000000 00:00 0



3a5ac02e000-3a5b0000000 ---p 00000000 00:00 0



3a5b046a000-3a5b06ff000 rw-p 00000000 00:00 0



3a5b06ff000-3a5b071a000 r-xp 00000000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b071a000-3a5b0919000 ---p 0001b000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b0919000-3a5b091a000 r--p 0001a000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b091a000-3a5b091b000 rw-p 0001b000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b091b000-3a5b0928000 r-xp 00000000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0928000-3a5b0b27000 ---p 0000d000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0b27000-3a5b0b28000 r--p 0000c000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0b28000-3a5b0b29000 rw-p 0000d000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0b29000-3a5b0b55000 r-xp 00000000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0b55000-3a5b0d55000 ---p 0002c000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0d55000-3a5b0d56000 r--p 0002c000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0d56000-3a5b0d58000 rw-p 0002d000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0d58000-3a5b0d65000 r-xp 00000000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0d65000-3a5b0f64000 ---p 0000d000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0f64000-3a5b0f66000 r--p 0000c000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0f66000-3a5b0f67000 rw-p 0000e000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0f67000-3a5b0f6e000 r-xp 00000000 fd:00 6956 /lib64/librt-2.12.so



3a5b0f6e000-3a5b116d000 ---p 00007000 fd:00 6956 /lib64/librt-2.12.so



3a5b116d000-3a5b116e000 r--p 00006000 fd:00 6956 /lib64/librt-2.12.so



3a5b116e000-3a5b116f000 rw-p 00007000 fd:00 6956 /lib64/librt-2.12.so



3a5b116f000-3a5b11f2000 r-xp 00000000 fd:00 6962 /lib64/libm-2.12.so



3a5b11f2000-3a5b13f1000 ---p 00083000 fd:00 6962 /lib64/libm-2.12.so



3a5b13f1000-3a5b13f2000 r--p 00082000 fd:00 6962 /lib64/libm-2.12.so



3a5b13f2000-3a5b13f3000 rw-p 00083000 fd:00 6962 /lib64/libm-2.12.so



3a5b13f3000-3a5b20db000 r-xp 00000000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b20db000-3a5b22da000 ---p 00ce8000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b22da000-3a5b2370000 r--p 00ce7000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b2370000-3a5b23a1000 rw-p 00d7d000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b23a1000-3a5b23dc000 rw-p 00000000 00:00 0



3a5b23dc000-3a5b2567000 r-xp 00000000 fd:00 6948 /lib64/libc-2.12.so



3a5b2567000-3a5b2766000 ---p 0018b000 fd:00 6948 /lib64/libc-2.12.so



3a5b2766000-3a5b276a000 r--p 0018a000 fd:00 6948 /lib64/libc-2.12.so



3a5b276a000-3a5b276c000 rw-p 0018e000 fd:00 6948 /lib64/libc-2.12.so



3a5b276c000-3a5b2770000 rw-p 00000000 00:00 0



3a5b2770000-3a5b2772000 r-xp 00000000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2772000-3a5b2972000 ---p 00002000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2972000-3a5b2973000 r--p 00002000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2973000-3a5b2974000 rw-p 00003000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2974000-3a5b298b000 r-xp 00000000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b298b000-3a5b2b8a000 ---p 00017000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b2b8a000-3a5b2b8b000 r--p 00016000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b2b8b000-3a5b2b8c000 rw-p 00017000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b2b8c000-3a5b2ba3000 r-xp 00000000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2ba3000-3a5b2da3000 ---p 00017000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2da3000-3a5b2da4000 r--p 00017000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2da4000-3a5b2da5000 rw-p 00018000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2da5000-3a5b2da9000 rw-p 00000000 00:00 0



3a5b2da9000-3a5b2dc9000 r-xp 00000000 fd:00 6947 /lib64/ld-2.12.so



3a5b2ea1000-3a5b2ea4000 ---p 00000000 00:00 0



3a5b2ea4000-3a5b2fa2000 rw-p 00000000 00:00 0



3a5b2fae000-3a5b2fb6000 rw-s 00000000 fd:00 917769 /tmp/hsperfdata_root/23101



3a5b2fb6000-3a5b2fba000 rw-p 00000000 00:00 0



3a5b2fbe000-3a5b2fc2000 rw-p 00000000 00:00 0



3a5b2fc2000-3a5b2fc3000 r--p 00000000 00:00 0



3a5b2fc3000-3a5b2fc4000 rw-p 00000000 00:00 0



3a5b2fc4000-3a5b2fc7000 r--p 00000000 00:00 0 [vvar]



3a5b2fc7000-3a5b2fc9000 r-xp 00000000 00:00 0 [vdso]



3a5b2fc9000-3a5b2fca000 r--p 00020000 fd:00 6947 /lib64/ld-2.12.so



3a5b2fca000-3a5b2fcb000 rw-p 00021000 fd:00 6947 /lib64/ld-2.12.so



3a5b2fcb000-3a5b2fcc000 rw-p 00000000 00:00 0



3b1723dc000-3b1723fe000 rw-p 00000000 00:00 0 [stack]



ffffffffff600000-ffffffffff601000 r--p 00000000 00:00 0 [vsyscall]



VM Arguments:



jvm_args: -Xms64m -Xmx64m -XX:-UseCompressedOops -XX:ReservedCodeCacheSize=1006632960 -Dapplication.home=/usr/java/jdk1.8.0_201-amd64 -Xms8m



java_command: sun.tools.jps.Jps -v



java_class_path (initial): /usr/java/jdk1.8.0_201-amd64/lib/tools.jar:/usr/java/jdk1.8.0_201-amd64/classes



Launcher Type: SUN_STANDARD



Environment Variables:



JAVA_HOME=/usr/java/jdk1.8.0_201-amd64



JAVA_TOOL_OPTIONS=-Xms64m -Xmx64m -XX:-UseCompressedOops -XX:ReservedCodeCacheSize=1006632960



PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin



USERNAME=root



LD_LIBRARY_PATH=/opt/safenet/protecttoolkit5/ptk/lib:



SHELL=/bin/bash



Signal Handlers:



SIGSEGV: [libjvm.so+0xad3e60], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGBUS: [libjvm.so+0xad3e60], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGFPE: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGPIPE: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGXFSZ: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGILL: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none



SIGUSR2: [libjvm.so+0x90b750], sa_mask[0]=00000000000000000000000000000000, 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:CentOS release 6.10 (Final)



uname:Linux 4.14.59-5553.el6.art.x86_64 #1 SMP Tue Jul 31 13:51:26 EDT 2018 x86_64



libc:glibc 2.12 NPTL 2.12



rlimit: STACK 8192k, CORE 0k, NPROC 22711, NOFILE 4096, AS infinity



load average:0.01 0.00 0.00



/proc/meminfo:



MemTotal: 5842992 kB



MemFree: 429972 kB



MemAvailable: 1392740 kB



Buffers: 22548 kB



Cached: 1107324 kB



SwapCached: 49196 kB



Active: 4226880 kB



Inactive: 988316 kB



Active(anon): 3404016 kB



Inactive(anon): 682048 kB



Active(file): 822864 kB



Inactive(file): 306268 kB



Unevictable: 0 kB



Mlocked: 0 kB



SwapTotal: 5242872 kB



SwapFree: 4177648 kB



Dirty: 120 kB



Writeback: 0 kB



AnonPages: 4003060 kB



Mapped: 25980 kB



Shmem: 740 kB



Slab: 118808 kB



SReclaimable: 93984 kB



SUnreclaim: 24824 kB



KernelStack: 4448 kB



PageTables: 23952 kB



NFS_Unstable: 0 kB



Bounce: 0 kB



WritebackTmp: 0 kB



CommitLimit: 8164368 kB



Committed_AS: 9167728 kB



VmallocTotal: 34359738367 kB



VmallocUsed: 0 kB



VmallocChunk: 0 kB



HardwareCorrupted: 0 kB



AnonHugePages: 2377728 kB



ShmemHugePages: 0 kB



ShmemPmdMapped: 0 kB



HugePages_Total: 0



HugePages_Free: 0



HugePages_Rsvd: 0



HugePages_Surp: 0



Hugepagesize: 2048 kB



DirectMap4k: 16320 kB



DirectMap2M: 6275072 kB



CPU:total 2 (initial active 2)



/proc/cpuinfo:



processor : 0



vendor_id : GenuineIntel



cpu family : 6



model : 45



model name : Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz



stepping : 2



microcode : 0x3b



cpu MHz : 2294.686



cache size : 30720 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 dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid ljmpq pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm uderef arat



bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass



bogomips : 4589.37



clflush size : 64



cache_alignment : 64



address sizes : 40 bits physical, 48 bits virtual



power management:



processor : 1



vendor_id : GenuineIntel



cpu family : 6



model : 45



model name : Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz



stepping : 2



microcode : 0x3b



cpu MHz : 2294.686



cache size : 30720 KB



physical id : 2



siblings : 1



core id : 0



cpu cores : 1



apicid : 2



initial apicid : 2



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 dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid ljmpq pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm uderef arat



bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass



bogomips : 4589.37



clflush size : 64



cache_alignment : 64



address sizes : 40 bits physical, 48 bits virtual



power management:



Memory: 4k page, physical 5842992k(429972k free), swap 5242872k(4177648k free)



vm_info: Java HotSpot(TM) 64-Bit Server VM (25.201-b09) for linux-amd64 JRE (1.8.0_201-b09), built on Dec 15 2018 11:35:59 by "java_re" with gcc 7.3.0



time: Wed Jan 23 16:02:07 2019



timezone: CST



elapsed time: 0 seconds (0d 0h 0m 0s)













share|improve this question














I installed java 1.8.0_201 on a Centos 6.10 system. When I try to do any java related command, such as "javac HelloWorld" or "jps -v", I get something like the following.



# jps -v



Picked up JAVA_TOOL_OPTIONS: -Xms64m -Xmx64m -XX:-UseCompressedOops -XX:ReservedCodeCacheSize=1006632960



Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x000003a570000000, 2555904, 1) failed; error='Operation not permitted' (errno=1)



#



# There is insufficient memory for the Java Runtime Environment to continue.



# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.



# An error report file with more information is saved as:



# /home/mmall/hs_err_pid23101.log



Note that I added the "JAVA_TOOL_OPTIONS" environment variable with options set to address suggestions in the hs_err_pidxxxxx.log files created each time this error occurs. This includes reducing the min and max heap size values. I have also created a 4GB /swapfile and enabled it for swapping; but, this did not address the issue. (Before creating the /swapfile, there was 1.0 GB available for swapping. After creating the file, there was 5.0 GB.) See the results from "free -h" and "swapon -s" below.



# free -h



         total       used       free     shared    buffers     cached


Mem: 5.6G 5.1G 461M 740K 21M 1.0G



-/+ buffers/cache: 4.1G 1.5G



Swap: 5.0G 1.0G 4.0G



# swapon -s



Filename Type Size Used Priority



/dev/dm-1 partition 1048572 1048572 -2



/swapfile file 4194300 16652 -3



$ java -version



java version "1.8.0_201"



Java(TM) SE Runtime Environment (build 1.8.0_201-b09)



Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)



I notice the error always indicates it is trying to map 2555904 (2.4GB) of space regardless of the settings I make for JAVA_TOOL_OPTIONS. I don't how this value is calculated or if it can be set to something.



The hs_err_pidxxxxx.log files all include "The system is out of physical RAM or swap space" and included among the possible solutions is "Check if swap backing store is full". I am not sure about this particular suggestion. Does it simply mean to check the available swap space? If so, it seems there should be plenty (4194300 - 16652 = 4177648 > 2555904). Maybe it needs the memory from somewhere else. I don't understand how this works.



Below is the full text from one of the log files. Any assistance you can offer will be greatly appreciated.





#



# There is insufficient memory for the Java Runtime Environment to continue.



# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.



# Possible reasons:



# The system is out of physical RAM or swap space



# Possible solutions:



# Reduce memory load on the system



# Increase physical memory or swap space



# Check if swap backing store is full



# 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:2749), pid=23101, tid=0x000003a5b2fa1700



#



# JRE version: (8.0_201-b09) (build )



# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.201-b09 mixed mode linux-amd64 )



# 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 (0x000003a5ac009000): JavaThread "Unknown thread" [_thread_in_vm, id=23102, stack(0x000003a5b2ea1000,0x000003a5b2fa2000)]



Stack: [0x000003a5b2ea1000,0x000003a5b2fa2000], sp=0x000003a5b2fa0750, free space=1021k



Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)



V [libjvm.so+0xad3525] VMError::report_and_die()+0x2e5



V [libjvm.so+0x4e0457] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x67



V [libjvm.so+0x9102f0] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x100



V [libjvm.so+0x90791f] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x1f



V [libjvm.so+0xacf81c] VirtualSpace::initialize(ReservedSpace, unsigned long)+0x20c



V [libjvm.so+0x60b714] CodeHeap::reserve(unsigned long, unsigned long, unsigned long)+0x124



V [libjvm.so+0x45b19a] codeCache_init()+0x7a



V [libjvm.so+0x631fbc] init_globals()+0x3c



V [libjvm.so+0xa79b69] Threads::create_vm(JavaVMInitArgs*, bool*)+0x409



V [libjvm.so+0x6d7b4f] JNI_CreateJavaVM+0x4f



C [libjli.so+0x7ee4] JavaMain+0x84



C [libpthread.so.0+0x7aa1]



--------------- P R O C E S S ---------------



Java Threads: ( => current thread )



Other Threads:



=>0x000003a5ac009000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=23102, stack(0x000003a5b2ea1000,0x000003a5b2fa2000)]



VM state:not at safepoint (not fully initialized)



VM Mutex/Monitor currently owned by a thread: None



Deoptimization events (0 events):



No events



Classes redefined (0 events):



No events



Internal exceptions (0 events):



No events



Events (0 events):



No events



Dynamic libraries:



00400000-00401000 r-xp 00000000 fd:00 1839402 /usr/java/jdk1.8.0_201-amd64/bin/jps



00600000-00601000 r--p 00000000 fd:00 1839402 /usr/java/jdk1.8.0_201-amd64/bin/jps



00601000-00602000 rw-p 00001000 fd:00 1839402 /usr/java/jdk1.8.0_201-amd64/bin/jps



00602000-00b5a000 ---p 00000000 00:00 0



00b5a000-00b7c000 rw-p 00000000 00:00 0 [heap]



3a570000000-3a5ac000000 ---p 00000000 00:00 0



3a5ac000000-3a5ac02e000 rw-p 00000000 00:00 0



3a5ac02e000-3a5b0000000 ---p 00000000 00:00 0



3a5b046a000-3a5b06ff000 rw-p 00000000 00:00 0



3a5b06ff000-3a5b071a000 r-xp 00000000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b071a000-3a5b0919000 ---p 0001b000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b0919000-3a5b091a000 r--p 0001a000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b091a000-3a5b091b000 rw-p 0001b000 fd:00 1839526 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libzip.so



3a5b091b000-3a5b0928000 r-xp 00000000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0928000-3a5b0b27000 ---p 0000d000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0b27000-3a5b0b28000 r--p 0000c000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0b28000-3a5b0b29000 rw-p 0000d000 fd:00 2341 /lib64/libnss_files-2.12.so



3a5b0b29000-3a5b0b55000 r-xp 00000000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0b55000-3a5b0d55000 ---p 0002c000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0d55000-3a5b0d56000 r--p 0002c000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0d56000-3a5b0d58000 rw-p 0002d000 fd:00 1839490 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libjava.so



3a5b0d58000-3a5b0d65000 r-xp 00000000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0d65000-3a5b0f64000 ---p 0000d000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0f64000-3a5b0f66000 r--p 0000c000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0f66000-3a5b0f67000 rw-p 0000e000 fd:00 1839525 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/libverify.so



3a5b0f67000-3a5b0f6e000 r-xp 00000000 fd:00 6956 /lib64/librt-2.12.so



3a5b0f6e000-3a5b116d000 ---p 00007000 fd:00 6956 /lib64/librt-2.12.so



3a5b116d000-3a5b116e000 r--p 00006000 fd:00 6956 /lib64/librt-2.12.so



3a5b116e000-3a5b116f000 rw-p 00007000 fd:00 6956 /lib64/librt-2.12.so



3a5b116f000-3a5b11f2000 r-xp 00000000 fd:00 6962 /lib64/libm-2.12.so



3a5b11f2000-3a5b13f1000 ---p 00083000 fd:00 6962 /lib64/libm-2.12.so



3a5b13f1000-3a5b13f2000 r--p 00082000 fd:00 6962 /lib64/libm-2.12.so



3a5b13f2000-3a5b13f3000 rw-p 00083000 fd:00 6962 /lib64/libm-2.12.so



3a5b13f3000-3a5b20db000 r-xp 00000000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b20db000-3a5b22da000 ---p 00ce8000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b22da000-3a5b2370000 r--p 00ce7000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b2370000-3a5b23a1000 rw-p 00d7d000 fd:00 1839530 /usr/java/jdk1.8.0_201-amd64/jre/lib/amd64/server/libjvm.so



3a5b23a1000-3a5b23dc000 rw-p 00000000 00:00 0



3a5b23dc000-3a5b2567000 r-xp 00000000 fd:00 6948 /lib64/libc-2.12.so



3a5b2567000-3a5b2766000 ---p 0018b000 fd:00 6948 /lib64/libc-2.12.so



3a5b2766000-3a5b276a000 r--p 0018a000 fd:00 6948 /lib64/libc-2.12.so



3a5b276a000-3a5b276c000 rw-p 0018e000 fd:00 6948 /lib64/libc-2.12.so



3a5b276c000-3a5b2770000 rw-p 00000000 00:00 0



3a5b2770000-3a5b2772000 r-xp 00000000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2772000-3a5b2972000 ---p 00002000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2972000-3a5b2973000 r--p 00002000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2973000-3a5b2974000 rw-p 00003000 fd:00 6950 /lib64/libdl-2.12.so



3a5b2974000-3a5b298b000 r-xp 00000000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b298b000-3a5b2b8a000 ---p 00017000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b2b8a000-3a5b2b8b000 r--p 00016000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b2b8b000-3a5b2b8c000 rw-p 00017000 fd:00 1966118 /usr/java/jdk1.8.0_201-amd64/lib/amd64/jli/libjli.so



3a5b2b8c000-3a5b2ba3000 r-xp 00000000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2ba3000-3a5b2da3000 ---p 00017000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2da3000-3a5b2da4000 r--p 00017000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2da4000-3a5b2da5000 rw-p 00018000 fd:00 6955 /lib64/libpthread-2.12.so



3a5b2da5000-3a5b2da9000 rw-p 00000000 00:00 0



3a5b2da9000-3a5b2dc9000 r-xp 00000000 fd:00 6947 /lib64/ld-2.12.so



3a5b2ea1000-3a5b2ea4000 ---p 00000000 00:00 0



3a5b2ea4000-3a5b2fa2000 rw-p 00000000 00:00 0



3a5b2fae000-3a5b2fb6000 rw-s 00000000 fd:00 917769 /tmp/hsperfdata_root/23101



3a5b2fb6000-3a5b2fba000 rw-p 00000000 00:00 0



3a5b2fbe000-3a5b2fc2000 rw-p 00000000 00:00 0



3a5b2fc2000-3a5b2fc3000 r--p 00000000 00:00 0



3a5b2fc3000-3a5b2fc4000 rw-p 00000000 00:00 0



3a5b2fc4000-3a5b2fc7000 r--p 00000000 00:00 0 [vvar]



3a5b2fc7000-3a5b2fc9000 r-xp 00000000 00:00 0 [vdso]



3a5b2fc9000-3a5b2fca000 r--p 00020000 fd:00 6947 /lib64/ld-2.12.so



3a5b2fca000-3a5b2fcb000 rw-p 00021000 fd:00 6947 /lib64/ld-2.12.so



3a5b2fcb000-3a5b2fcc000 rw-p 00000000 00:00 0



3b1723dc000-3b1723fe000 rw-p 00000000 00:00 0 [stack]



ffffffffff600000-ffffffffff601000 r--p 00000000 00:00 0 [vsyscall]



VM Arguments:



jvm_args: -Xms64m -Xmx64m -XX:-UseCompressedOops -XX:ReservedCodeCacheSize=1006632960 -Dapplication.home=/usr/java/jdk1.8.0_201-amd64 -Xms8m



java_command: sun.tools.jps.Jps -v



java_class_path (initial): /usr/java/jdk1.8.0_201-amd64/lib/tools.jar:/usr/java/jdk1.8.0_201-amd64/classes



Launcher Type: SUN_STANDARD



Environment Variables:



JAVA_HOME=/usr/java/jdk1.8.0_201-amd64



JAVA_TOOL_OPTIONS=-Xms64m -Xmx64m -XX:-UseCompressedOops -XX:ReservedCodeCacheSize=1006632960



PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin



USERNAME=root



LD_LIBRARY_PATH=/opt/safenet/protecttoolkit5/ptk/lib:



SHELL=/bin/bash



Signal Handlers:



SIGSEGV: [libjvm.so+0xad3e60], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGBUS: [libjvm.so+0xad3e60], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGFPE: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGPIPE: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGXFSZ: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGILL: [libjvm.so+0x90b880], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO



SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none



SIGUSR2: [libjvm.so+0x90b750], sa_mask[0]=00000000000000000000000000000000, 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:CentOS release 6.10 (Final)



uname:Linux 4.14.59-5553.el6.art.x86_64 #1 SMP Tue Jul 31 13:51:26 EDT 2018 x86_64



libc:glibc 2.12 NPTL 2.12



rlimit: STACK 8192k, CORE 0k, NPROC 22711, NOFILE 4096, AS infinity



load average:0.01 0.00 0.00



/proc/meminfo:



MemTotal: 5842992 kB



MemFree: 429972 kB



MemAvailable: 1392740 kB



Buffers: 22548 kB



Cached: 1107324 kB



SwapCached: 49196 kB



Active: 4226880 kB



Inactive: 988316 kB



Active(anon): 3404016 kB



Inactive(anon): 682048 kB



Active(file): 822864 kB



Inactive(file): 306268 kB



Unevictable: 0 kB



Mlocked: 0 kB



SwapTotal: 5242872 kB



SwapFree: 4177648 kB



Dirty: 120 kB



Writeback: 0 kB



AnonPages: 4003060 kB



Mapped: 25980 kB



Shmem: 740 kB



Slab: 118808 kB



SReclaimable: 93984 kB



SUnreclaim: 24824 kB



KernelStack: 4448 kB



PageTables: 23952 kB



NFS_Unstable: 0 kB



Bounce: 0 kB



WritebackTmp: 0 kB



CommitLimit: 8164368 kB



Committed_AS: 9167728 kB



VmallocTotal: 34359738367 kB



VmallocUsed: 0 kB



VmallocChunk: 0 kB



HardwareCorrupted: 0 kB



AnonHugePages: 2377728 kB



ShmemHugePages: 0 kB



ShmemPmdMapped: 0 kB



HugePages_Total: 0



HugePages_Free: 0



HugePages_Rsvd: 0



HugePages_Surp: 0



Hugepagesize: 2048 kB



DirectMap4k: 16320 kB



DirectMap2M: 6275072 kB



CPU:total 2 (initial active 2)



/proc/cpuinfo:



processor : 0



vendor_id : GenuineIntel



cpu family : 6



model : 45



model name : Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz



stepping : 2



microcode : 0x3b



cpu MHz : 2294.686



cache size : 30720 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 dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid ljmpq pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm uderef arat



bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass



bogomips : 4589.37



clflush size : 64



cache_alignment : 64



address sizes : 40 bits physical, 48 bits virtual



power management:



processor : 1



vendor_id : GenuineIntel



cpu family : 6



model : 45



model name : Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz



stepping : 2



microcode : 0x3b



cpu MHz : 2294.686



cache size : 30720 KB



physical id : 2



siblings : 1



core id : 0



cpu cores : 1



apicid : 2



initial apicid : 2



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 dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid ljmpq pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm uderef arat



bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass



bogomips : 4589.37



clflush size : 64



cache_alignment : 64



address sizes : 40 bits physical, 48 bits virtual



power management:



Memory: 4k page, physical 5842992k(429972k free), swap 5242872k(4177648k free)



vm_info: Java HotSpot(TM) 64-Bit Server VM (25.201-b09) for linux-amd64 JRE (1.8.0_201-b09), built on Dec 15 2018 11:35:59 by "java_re" with gcc 7.3.0



time: Wed Jan 23 16:02:07 2019



timezone: CST



elapsed time: 0 seconds (0d 0h 0m 0s)










java hotspot commit






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 23 at 22:59









Michael E. MallMichael E. Mall

11




11













  • Please format with code markers so it is (more) readable. That said, is the JRE in your $PATH, is $JAVA_HOME set, etc? What does which java report? Is it the same as the binary in ..../jdk_1.8.xx/bin/java ?

    – ivanivan
    Jan 23 at 23:10











  • My apologies for taking so long to respond. My PATH variable was "PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin". "which java" returned "/usr/bin/java". This is a symbolic link.

    – Michael E. Mall
    Jan 30 at 20:05











  • # ll /usr/bin/java lrwxrwxrwx 1 root root 22 Jan 22 11:28 /usr/bin/java -> /etc/alternatives/java This is also a symbolic link. # ll /etc/alternatives/java lrwxrwxrwx 1 root root 41 Jan 22 11:28 /etc/alternatives/java -> /usr/java/jdk1.8.0_201-amd64/jre/bin/java "java -version" returned "Segmentation fault" I added "/usr/java/jdk1.8.0_201-amd64/jre/bin/java" to the PATH variable, making it "PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.8.0_201-amd64/jre/bin/java". I still get "Segmentation fault" upon running "java -version".

    – Michael E. Mall
    Jan 30 at 20:05





















  • Please format with code markers so it is (more) readable. That said, is the JRE in your $PATH, is $JAVA_HOME set, etc? What does which java report? Is it the same as the binary in ..../jdk_1.8.xx/bin/java ?

    – ivanivan
    Jan 23 at 23:10











  • My apologies for taking so long to respond. My PATH variable was "PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin". "which java" returned "/usr/bin/java". This is a symbolic link.

    – Michael E. Mall
    Jan 30 at 20:05











  • # ll /usr/bin/java lrwxrwxrwx 1 root root 22 Jan 22 11:28 /usr/bin/java -> /etc/alternatives/java This is also a symbolic link. # ll /etc/alternatives/java lrwxrwxrwx 1 root root 41 Jan 22 11:28 /etc/alternatives/java -> /usr/java/jdk1.8.0_201-amd64/jre/bin/java "java -version" returned "Segmentation fault" I added "/usr/java/jdk1.8.0_201-amd64/jre/bin/java" to the PATH variable, making it "PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.8.0_201-amd64/jre/bin/java". I still get "Segmentation fault" upon running "java -version".

    – Michael E. Mall
    Jan 30 at 20:05



















Please format with code markers so it is (more) readable. That said, is the JRE in your $PATH, is $JAVA_HOME set, etc? What does which java report? Is it the same as the binary in ..../jdk_1.8.xx/bin/java ?

– ivanivan
Jan 23 at 23:10





Please format with code markers so it is (more) readable. That said, is the JRE in your $PATH, is $JAVA_HOME set, etc? What does which java report? Is it the same as the binary in ..../jdk_1.8.xx/bin/java ?

– ivanivan
Jan 23 at 23:10













My apologies for taking so long to respond. My PATH variable was "PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin". "which java" returned "/usr/bin/java". This is a symbolic link.

– Michael E. Mall
Jan 30 at 20:05





My apologies for taking so long to respond. My PATH variable was "PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin". "which java" returned "/usr/bin/java". This is a symbolic link.

– Michael E. Mall
Jan 30 at 20:05













# ll /usr/bin/java lrwxrwxrwx 1 root root 22 Jan 22 11:28 /usr/bin/java -> /etc/alternatives/java This is also a symbolic link. # ll /etc/alternatives/java lrwxrwxrwx 1 root root 41 Jan 22 11:28 /etc/alternatives/java -> /usr/java/jdk1.8.0_201-amd64/jre/bin/java "java -version" returned "Segmentation fault" I added "/usr/java/jdk1.8.0_201-amd64/jre/bin/java" to the PATH variable, making it "PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.8.0_201-amd64/jre/bin/java". I still get "Segmentation fault" upon running "java -version".

– Michael E. Mall
Jan 30 at 20:05







# ll /usr/bin/java lrwxrwxrwx 1 root root 22 Jan 22 11:28 /usr/bin/java -> /etc/alternatives/java This is also a symbolic link. # ll /etc/alternatives/java lrwxrwxrwx 1 root root 41 Jan 22 11:28 /etc/alternatives/java -> /usr/java/jdk1.8.0_201-amd64/jre/bin/java "java -version" returned "Segmentation fault" I added "/usr/java/jdk1.8.0_201-amd64/jre/bin/java" to the PATH variable, making it "PATH=/opt/safenet/protecttoolkit5/ptk/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.8.0_201-amd64/jre/bin/java". I still get "Segmentation fault" upon running "java -version".

– Michael E. Mall
Jan 30 at 20:05












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397676%2ftrying-to-run-java-commands-after-installing-java-produces-native-memory-alloca%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397676%2ftrying-to-run-java-commands-after-installing-java-produces-native-memory-alloca%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Probability when a professor distributes a quiz and homework assignment to a class of n students.

Aardman Animations

Are they similar matrix