Problem with JAVA Allocated memory

Discussion in 'Bukkit Help' started by xLASTxSILENCEx, Aug 8, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    xLASTxSILENCEx

    Hiya I need some help with my minecraft bukkit server that i run off of GGServers hosting website. Im running the beta build of bukkit for 1.7.9 and My server crashes a lost when nobody is on it. Here is the error I get and note I have the most updated version of JAVA and I allocated 2 gigabytes of memory to the server out of the 5 gigabytes I have on it or the 16 gigabyte RAM on my computer.
    8.08 22:14:56 [Multicraft] Looks like a crash, check the server console. Return value: 1
    08.08 22:14:56 [Multicraft] Server shut down
    08.08 22:14:56 [Server] INFO # /hs_err_pid21278.log
    08.08 22:14:56 [Server] INFO # An error report file with more information is saved as:
    08.08 22:14:56 [Server] INFO # Native memory allocation (mmap) failed to map 1789394944 bytes for committing reserved memory.
    08.08 22:14:56 [Server] INFO # There is insufficient memory for the Java Runtime Environment to continue.
    08.08 22:14:56 [Server] INFO #
    08.08 22:14:56 [Server] INFO Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000755580000, 1789394944, 0) failed; error='Cannot allocate memory' (errno=12)

    And I dont know much about JAVA But here is the Error report


    # There is insufficient memory for the Java Runtime Environment to continue.
    # Native memory allocation (mmap) failed to map 1789394944 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:2718), pid=19657, tid=139963102693120
    #
    # JRE version: (8.0_05-b13) (build )
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 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

    And the Rest of the crap

    Current thread (0x00007f4bac008800): JavaThread "Unknown thread" [_thread_in_vm, id=19666, stack(0x00007f4bb2f48000,0x00007f4bb3049000)]

    Stack: [0x00007f4bb2f48000,0x00007f4bb3049000], sp=0x00007f4bb30473d0, free space=1020k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [libjvm.so+0xa2f43a] VMError::report_and_die()+0x2ca
    V [libjvm.so+0x4b2d5b] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b
    V [libjvm.so+0x89e443] os::Linux::commit_memory_impl(char*, unsigned long, bool)+0x103
    V [libjvm.so+0x89e999] os::pd_commit_memory(char*, unsigned long, unsigned long, bool)+0x29
    V [libjvm.so+0x89863a] os::commit_memory(char*, unsigned long, unsigned long, bool)+0x2a
    V [libjvm.so+0x909243] PSVirtualSpace::expand_by(unsigned long)+0x53
    V [libjvm.so+0x90a207] PSYoungGen::initialize_virtual_space(ReservedSpace, unsigned long)+0x77
    V [libjvm.so+0x90ab8e] PSYoungGen::initialize(ReservedSpace, unsigned long)+0x3e
    V [libjvm.so+0x2a4fc1] AdjoiningGenerations::AdjoiningGenerations(ReservedSpace, GenerationSizer*, unsigned long)+0x351
    V [libjvm.so+0x8bf5ce] ParallelScavengeHeap::initialize()+0x1ae
    V [libjvm.so+0x9fd783] Universe::initialize_heap()+0xe3
    V [libjvm.so+0x9fdbc4] universe_init()+0x64
    V [libjvm.so+0x5d45c5] init_globals()+0x65
    V [libjvm.so+0x9e44ad] Threads::create_vm(JavaVMInitArgs*, bool*)+0x24d
    V [libjvm.so+0x6659f4] JNI_CreateJavaVM+0x74
    C [libjli.so+0x703e] JavaMain+0x9e


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

    Java Threads: ( => current thread )

    Other Threads:

    =>0x00007f4bac008800 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=19666, stack(0x00007f4bb2f48000,0x00007f4bb3049000)]

    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 fd:00 263295 /usr/java/jre1.8.0_05/bin/java
    00600000-00601000 rw-p 00000000 fd:00 263295 /usr/java/jre1.8.0_05/bin/java
    009d1000-009f2000 rw-p 00000000 00:00 0 [heap]
    680000000-755580000 ---p 00000000 00:00 0
    7f4b9c5ff000-7f4b9cfff000 ---p 00000000 00:00 0
    7f4b9cfff000-7f4b9d000000 rw-p 00000000 00:00 0
    7f4b9d000000-7f4b9d270000 rwxp 00000000 00:00 0
    7f4b9d270000-7f4bac000000 ---p 00000000 00:00 0
    7f4bac000000-7f4bac023000 rw-p 00000000 00:00 0
    7f4bac023000-7f4bb0000000 ---p 00000000 00:00 0
    7f4bb0313000-7f4bb049e000 rw-p 00000000 00:00 0
    7f4bb049e000-7f4bb0854000 ---p 00000000 00:00 0
    7f4bb0854000-7f4bb0870000 r-xp 00000000 fd:00 266275 /usr/java/jre1.8.0_05/lib/amd64/libzip.so
    7f4bb0870000-7f4bb0a6f000 ---p 0001c000 fd:00 266275 /usr/java/jre1.8.0_05/lib/amd64/libzip.so
    7f4bb0a6f000-7f4bb0a70000 rw-p 0001b000 fd:00 266275 /usr/java/jre1.8.0_05/lib/amd64/libzip.so
    7f4bb0a70000-7f4bb0a7c000 r-xp 00000000 fd:00 1835418 /lib64/libnss_files-2.12.so
    7f4bb0a7c000-7f4bb0c7c000 ---p 0000c000 fd:00 1835418 /lib64/libnss_files-2.12.so
    7f4bb0c7c000-7f4bb0c7d000 r--p 0000c000 fd:00 1835418 /lib64/libnss_files-2.12.so
    7f4bb0c7d000-7f4bb0c7e000 rw-p 0000d000 fd:00 1835418 /lib64/libnss_files-2.12.so
    7f4bb0c7e000-7f4bb0ca8000 r-xp 00000000 fd:00 266241 /usr/java/jre1.8.0_05/lib/amd64/libjava.so
    7f4bb0ca8000-7f4bb0ea8000 ---p 0002a000 fd:00 266241 /usr/java/jre1.8.0_05/lib/amd64/libjava.so
    7f4bb0ea8000-7f4bb0eaa000 rw-p 0002a000 fd:00 266241 /usr/java/jre1.8.0_05/lib/amd64/libjava.so
    7f4bb0eaa000-7f4bb0eb7000 r-xp 00000000 fd:00 266274 /usr/java/jre1.8.0_05/lib/amd64/libverify.so
    7f4bb0eb7000-7f4bb10b7000 ---p 0000d000 fd:00 266274 /usr/java/jre1.8.0_05/lib/amd64/libverify.so
    7f4bb10b7000-7f4bb10b9000 rw-p 0000d000 fd:00 266274 /usr/java/jre1.8.0_05/lib/amd64/libverify.so
    7f4bb10b9000-7f4bb10c0000 r-xp 00000000 fd:00 1835421 /lib64/librt-2.12.so
    7f4bb10c0000-7f4bb12bf000 ---p 00007000 fd:00 1835421 /lib64/librt-2.12.so
    7f4bb12bf000-7f4bb12c0000 r--p 00006000 fd:00 1835421 /lib64/librt-2.12.so
    7f4bb12c0000-7f4bb12c1000 rw-p 00007000 fd:00 1835421 /lib64/librt-2.12.so
    7f4bb12c1000-7f4bb1344000 r-xp 00000000 fd:00 1835415 /lib64/libm-2.12.so
    7f4bb1344000-7f4bb1543000 ---p 00083000 fd:00 1835415 /lib64/libm-2.12.so
    7f4bb1543000-7f4bb1544000 r--p 00082000 fd:00 1835415 /lib64/libm-2.12.so
    7f4bb1544000-7f4bb1545000 rw-p 00083000 fd:00 1835415 /lib64/libm-2.12.so
    7f4bb1545000-7f4bb215f000 r-xp 00000000 fd:00 266279 /usr/java/jre1.8.0_05/lib/amd64/server/libjvm.so
    7f4bb215f000-7f4bb235e000 ---p 00c1a000 fd:00 266279 /usr/java/jre1.8.0_05/lib/amd64/server/libjvm.so
    7f4bb235e000-7f4bb2427000 rw-p 00c19000 fd:00 266279 /usr/java/jre1.8.0_05/lib/amd64/server/libjvm.so
    7f4bb2427000-7f4bb2468000 rw-p 00000000 00:00 0
    7f4bb2468000-7f4bb25f3000 r-xp 00000000 fd:00 1835020 /lib64/libc-2.12.so
    7f4bb25f3000-7f4bb27f2000 ---p 0018b000 fd:00 1835020 /lib64/libc-2.12.so
    7f4bb27f2000-7f4bb27f6000 r--p 0018a000 fd:00 1835020 /lib64/libc-2.12.so
    7f4bb27f6000-7f4bb27f7000 rw-p 0018e000 fd:00 1835020 /lib64/libc-2.12.so
    7f4bb27f7000-7f4bb27fc000 rw-p 00000000 00:00 0
    7f4bb27fc000-7f4bb27fe000 r-xp 00000000 fd:00 1835413 /lib64/libdl-2.12.so
    7f4bb27fe000-7f4bb29fe000 ---p 00002000 fd:00 1835413 /lib64/libdl-2.12.so
    7f4bb29fe000-7f4bb29ff000 r--p 00002000 fd:00 1835413 /lib64/libdl-2.12.so
    7f4bb29ff000-7f4bb2a00000 rw-p 00003000 fd:00 1835413 /lib64/libdl-2.12.so
    7f4bb2a00000-7f4bb2a17000 r-xp 00000000 fd:00 264535 /usr/java/jre1.8.0_05/lib/amd64/jli/libjli.so
    7f4bb2a17000-7f4bb2c16000 ---p 00017000 fd:00 264535 /usr/java/jre1.8.0_05/lib/amd64/jli/libjli.so
    7f4bb2c16000-7f4bb2c17000 rw-p 00016000 fd:00 264535 /usr/java/jre1.8.0_05/lib/amd64/jli/libjli.so
    7f4bb2c17000-7f4bb2c2e000 r-xp 00000000 fd:00 1835044 /lib64/libpthread-2.12.so
    7f4bb2c2e000-7f4bb2e2e000 ---p 00017000 fd:00 1835044 /lib64/libpthread-2.12.so
    7f4bb2e2e000-7f4bb2e2f000 r--p 00017000 fd:00 1835044 /lib64/libpthread-2.12.so
    7f4bb2e2f000-7f4bb2e30000 rw-p 00018000 fd:00 1835044 /lib64/libpthread-2.12.so
    7f4bb2e30000-7f4bb2e34000 rw-p 00000000 00:00 0
    7f4bb2e34000-7f4bb2e54000 r-xp 00000000 fd:00 1835374 /lib64/ld-2.12.so
    7f4bb2e59000-7f4bb2f40000 rw-p 00000000 00:00 0
    7f4bb2f40000-7f4bb2f48000 rw-s 00000000 fd:00 656008 /tmp/hsperfdata_mc609/19657
    7f4bb2f48000-7f4bb2f4b000 ---p 00000000 00:00 0
    7f4bb2f4b000-7f4bb304d000 rw-p 00000000 00:00 0
    7f4bb304e000-7f4bb3051000 rw-p 00000000 00:00 0
    7f4bb3051000-7f4bb3052000 r--p 00000000 00:00 0
    7f4bb3052000-7f4bb3053000 rw-p 00000000 00:00 0
    7f4bb3053000-7f4bb3054000 r--p 0001f000 fd:00 1835374 /lib64/ld-2.12.so
    7f4bb3054000-7f4bb3055000 rw-p 00020000 fd:00 1835374 /lib64/ld-2.12.so
    7f4bb3055000-7f4bb3056000 rw-p 00000000 00:00 0
    7fff7455b000-7fff74570000 rw-p 00000000 00:00 0 [stack]
    7fff745ff000-7fff74600000 r-xp 00000000 00:00 0 [vdso]
    ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

    VM Arguments:
    jvm_args: -Xmx5120M -Xms5120M -Djline.terminal=jline.UnsupportedTerminal
    java_command: /home/minecraft/multicraft/servers/server609/jar/craftbukkit_beta.jar nogui
    java_class_path (initial): /home/minecraft/multicraft/servers/server609/jar/craftbukkit_beta.jar
    Launcher Type: SUN_STANDARD

    Environment Variables:
    PATH=/usr/local/bin:/usr/bin:/bin

    Signal Handlers:
    SIGSEGV: [libjvm.so+0xa2fc90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGBUS: [libjvm.so+0xa2fc90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGFPE: [libjvm.so+0x89b4b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGPIPE: [libjvm.so+0x89b4b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGXFSZ: [libjvm.so+0x89b4b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGILL: [libjvm.so+0x89b4b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGUSR2: [libjvm.so+0x89cc50], sa_mask[0]=0x00000000, sa_flags=0x10000004
    SIGHUP: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGTERM: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGQUIT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000


    --------------- S Y S T E M ---------------

    OS:CentOS release 6.5 (Final)

    uname:Linux 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64
    libc:glibc 2.12 NPTL 2.12
    rlimit: STACK 10240k, CORE 0k, NPROC 579840, NOFILE 4096, AS infinity
    load average:19.50 10.84 7.85

    /proc/meminfo:
    MemTotal: 74237796 kB
    MemFree: 494836 kB
    Buffers: 16120 kB
    Cached: 111548 kB
    SwapCached: 405784 kB
    Active: 69513380 kB
    Inactive: 3243560 kB
    Active(anon): 69471444 kB
    Inactive(anon): 3157928 kB
    Active(file): 41936 kB
    Inactive(file): 85632 kB
    Unevictable: 0 kB
    Mlocked: 0 kB
    SwapTotal: 4194296 kB
    SwapFree: 312 kB
    Dirty: 38828 kB
    Writeback: 980 kB
    AnonPages: 72223648 kB
    Mapped: 19224 kB
    Shmem: 24 kB
    Slab: 196896 kB
    SReclaimable: 58964 kB
    SUnreclaim: 137932 kB
    KernelStack: 32920 kB
    PageTables: 204560 kB
    NFS_Unstable: 0 kB
    Bounce: 0 kB
    WritebackTmp: 0 kB
    CommitLimit: 41313192 kB
    Committed_AS: 109349988 kB
    VmallocTotal: 34359738367 kB
    VmallocUsed: 476616 kB
    VmallocChunk: 34359105620 kB
    HardwareCorrupted: 0 kB
    AnonHugePages: 51812352 kB
    HugePages_Total: 0
    HugePages_Free: 0
    HugePages_Rsvd: 0
    HugePages_Surp: 0
    Hugepagesize: 2048 kB
    DirectMap4k: 7040 kB
    DirectMap2M: 75481088 kB


    CPU:total 16 (4 cores per cpu, 2 threads per core) family 6 model 26 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht, tsc, tscinvbit

    /proc/cpuinfo:
    processor: 0
    vendor_id: GenuineIntel
    cpu family: 6
    model: 26
    model name: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz
    stepping: 5
    cpu MHz: 2266.786
    cache size: 8192 KB
    physical id: 0
    siblings: 8
    core id: 0
    cpu cores: 4
    apicid: 0
    initial apicid: 0
    fpu: yes
    fpu_exception: yes
    cpuid level: 11
    wp: yes
    flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida dts tpr_shadow vnmi flexpriority ept vpid
    bogomips: 4533.57
    clflush size: 64
    cache_alignment: 64
    address sizes: 40 bits physical, 48 bits virtual
    power management:

    Just Note I have no idea what im doing with any of this information and if you tell me to do something it must be in stupid terms

    Any help would be appreciated thanks anyone and all
     
  2. Offline

    jbaubs

    I'm not that experienced in Java, but it looks as if you are using a 32-bit Java. 32-bit OSes (even though it seems you have a 64-bit OS), along with Java, can only support 4GB RAM, so try upgrading to 64-bit, or going into the run.bat and allocate more RAM this way.
     
  3. Offline

    LHammonds

    I am highly confused by what you just said. 2GB out of 5GB or 16GB (that makes no sense)

    Are you running CentOS inside a virtual machines on your PC and trying to run Craftbukkit inside this virtual?

    Here are the key tidbits that I could gather from what you posted:
    Code:
    Java Error:
    There is insufficient memory for the Java Runtime Environment to continue.
     
    Server Startup Command:
    /usr/java/jre1.8.0_05/bin/java /home/minecraft/multicraft/servers/server609/jar/craftbukkit_beta.jar nogui -Xmx5120M -Xms5120M -Djline.terminal=jline.UnsupportedTerminal
     
    Operating System:
    CentOS release 6.5 - Linux 2.6.32-358.el6.x86_64
     
    Total Memory:
    74,237,796 kB
     
    Minecraft Server:
    Craftbukkit 1.7.9 BETA
    
    It seems like CentOS "thinks" it has 74 GB of RAM! Or is this hardware info from a hosting company that is sharing this server to many Minecraft server owners?

    You should know that "the latest Java" is NOT what you should be using to run Craftbukkit. There are issues with Java 1.8 since Minecraft/Bukkit were compiled against 1.7 and not optimized or made compatible with 1.8 yet.

    I recommend downgrading Java to Oracle Java JRE 1.7.0 Update 65 (make sure it is 64-bit by typing "java -version" at the command prompt or specifying the full path to java when starting the server)

    The startup parameters show 5120M (5GB) being given to Java to run the server. If Java is 32-bit, it will never work. It will only work if the Java you are calling is 64-bit (and it can be since your OS is 64-bit)

    If CentOS only has 5GB allocated to it, it cannot give 5GB to Java.

    As a test, change the startup line to only give 1024M to Java and see if it loads up. If that is not enough (e.g. you have tons of plugins) then try 1536M

    LHammonds
     
Thread Status:
Not open for further replies.

Share This Page