Insufficient Memory Error

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
howdoyouturn69
Posts: 38
Joined: Mon Apr 18, 2011 5:04 am

Insufficient Memory Error

Post by howdoyouturn69 »

Greetings.

Recently I've started to receive some memory error during the server running. Before some "dude" come to say you need more ram, is an i5 Processor with 8GB where I'm having those error.

Attach the error log after the server terminate due to memory

Code: Select all

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 463536 bytes for Chunk::new
# 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 (allocation.cpp:390), pid=4708, tid=0x000000000000031c
#
# JRE version: Java(TM) SE Runtime Environment (8.0_144-b01) (build 1.8.0_144-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.144-b01 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#

---------------  T H R E A D  ---------------

Current thread (0x0000000016282800):  JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=796, stack(0x0000000016e30000,0x0000000016f30000)]

Stack: [0x0000000016e30000,0x0000000016f30000]
[error occurred during error reporting (printing stack bounds), id 0xc0000005]

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


Current CompileTask:
C2:   3210 2487   !   4       sun.misc.URLClassPath$JarLoader::getResource (85 bytes)


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

Java Threads: ( => current thread )
  0x0000000018033800 JavaThread "GameTimeController" daemon [_thread_blocked, id=2808, stack(0x0000000019a00000,0x0000000019b00000)]
  0x00000000177f5000 JavaThread "HikariPool-1 connection adder" daemon [_thread_blocked, id=2796, stack(0x0000000019300000,0x0000000019400000)]
  0x00000000177f2800 JavaThread "GeneralSTPool-2" [_thread_blocked, id=912, stack(0x0000000019200000,0x0000000019300000)]
  0x00000000177f8000 JavaThread "GeneralSTPool-1" [_thread_blocked, id=4448, stack(0x0000000019100000,0x0000000019200000)]
  0x000000001789f000 JavaThread "HikariPool-1 housekeeper" daemon [_thread_blocked, id=4196, stack(0x0000000019000000,0x0000000019100000)]
  0x0000000017571800 JavaThread "Abandoned connection cleanup thread" daemon [_thread_blocked, id=2860, stack(0x0000000017c30000,0x0000000017d30000)]
  0x00000000162fb800 JavaThread "Service Thread" daemon [_thread_blocked, id=664, stack(0x0000000017030000,0x0000000017130000)]
  0x0000000016286800 JavaThread "C1 CompilerThread2" daemon [_thread_in_vm, id=4192, stack(0x0000000016f30000,0x0000000017030000)]
=>0x0000000016282800 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=796, stack(0x0000000016e30000,0x0000000016f30000)]
  0x0000000016281800 JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=720, stack(0x0000000016d30000,0x0000000016e30000)]
  0x000000001627f000 JavaThread "Attach Listener" daemon [_thread_blocked, id=728, stack(0x0000000016c30000,0x0000000016d30000)]
  0x000000001627d800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=724, stack(0x0000000016b30000,0x0000000016c30000)]
  0x000000001627a800 JavaThread "Surrogate Locker Thread (Concurrent GC)" daemon [_thread_blocked, id=4640, stack(0x0000000016a30000,0x0000000016b30000)]
  0x0000000016260000 JavaThread "Finalizer" daemon [_thread_blocked, id=2492, stack(0x0000000016820000,0x0000000016920000)]
  0x0000000016236800 JavaThread "Reference Handler" daemon [_thread_blocked, id=400, stack(0x0000000016720000,0x0000000016820000)]
  0x00000000030e0800 JavaThread "main" [_thread_in_vm, id=572, stack(0x0000000002fe0000,0x00000000030e0000)]

Other Threads:
  0x0000000016230800 VMThread [stack: 0x0000000016620000,0x0000000016720000] [id=644]
  0x0000000016314800 WatcherThread [stack: 0x0000000017130000,0x0000000017230000] [id=2804]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x000000000122e3a0] CompiledIC_lock - owner thread: 0x0000000016286800

Heap:
 par new generation   total 458752K, used 165197K [0x00000000c0000000, 0x00000000e0000000, 0x00000000e0000000)
  eden space 393216K,  42% used [0x00000000c0000000, 0x00000000ca153560, 0x00000000d8000000)
  from space 65536K,   0% used [0x00000000d8000000, 0x00000000d8000000, 0x00000000dc000000)
  to   space 65536K,   0% used [0x00000000dc000000, 0x00000000dc000000, 0x00000000e0000000)
 concurrent mark-sweep generation total 524288K, used 0K [0x00000000e0000000, 0x0000000100000000, 0x0000000100000000)
 Metaspace       used 25853K, capacity 26384K, committed 26608K, reserved 1073152K
  class space    used 3419K, capacity 3689K, committed 3736K, reserved 1048576K

Card table byte_map: [0x00000000127a0000,0x00000000129b0000] byte_map_base: 0x00000000121a0000

Marking Bits: (CMSBitMap*) 0x00000000031200c8
 Bits: [0x0000000012ce0000, 0x00000000134e0000)

Mod Union Table: (CMSBitMap*) 0x0000000003120188
 Bits: [0x0000000001230000, 0x0000000001250000)

Polling page: 0x00000000011d0000

CodeCache: size=245760Kb used=9269Kb max_used=9296Kb free=236490Kb
 bounds [0x00000000031e0000, 0x0000000003b00000, 0x00000000121e0000]
 total_blobs=2960 nmethods=2479 adapters=392
 compilation: disabled (not enough contiguous free space left)

Compilation events (10 events):
Event: 3.132 Thread 0x0000000016282800 2487   !   4       sun.misc.URLClassPath$JarLoader::getResource (85 bytes)
Event: 3.137 Thread 0x0000000016281800 nmethod 2486 0x0000000003af7290 code [0x0000000003af73e0, 0x0000000003af7798]
Event: 3.158 Thread 0x0000000016286800 2488       3       org.eclipse.jdt.internal.compiler.parser.Parser::tAction (35 bytes)
Event: 3.158 Thread 0x0000000016286800 nmethod 2488 0x0000000003af3ad0 code [0x0000000003af3c40, 0x0000000003af3e50]
Event: 3.158 Thread 0x0000000016286800 2489       3       org.eclipse.jdt.internal.compiler.parser.Parser::ntAction (8 bytes)
Event: 3.158 Thread 0x0000000016286800 nmethod 2489 0x0000000003af3710 code [0x0000000003af3860, 0x0000000003af39d0]
Event: 3.158 Thread 0x0000000016286800 2490       3       org.eclipse.jdt.internal.compiler.parser.Parser::consumeRule (6686 bytes)
Event: 3.195 Thread 0x0000000016281800 2496       4       java.util.zip.ZipEntry::setExtra0 (360 bytes)
Event: 3.196 Thread 0x0000000016281800 nmethod 2496 0x0000000003af2e10 code [0x0000000003af2f40, 0x0000000003af2ff8]
Event: 3.197 Thread 0x0000000016281800 2497       4       java.util.zip.ZipFile::getZipEntry (251 bytes)

GC Heap History (0 events):
No events

Deoptimization events (10 events):
Event: 2.759 Thread 0x00000000030e0800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000039f5f10 method=com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanContent(Lcom/sun/org/apache/xerces/internal/xni/XMLString;)I @ 127
Event: 2.769 Thread 0x00000000030e0800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000039bca04 method=com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.checkBeforeLoad(Lcom/sun/xml/internal/stream/Entity$ScannedEntity;II)I @ 18
Event: 2.775 Thread 0x00000000030e0800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000003a5030c method=com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next()I @ 647
Event: 2.811 Thread 0x00000000030e0800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000003969598 method=com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.ensureCapacity(I)V @ 88
Event: 2.847 Thread 0x00000000030e0800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000003a97074 method=com.sun.org.apache.xerces.internal.impl.dv.xs.XSSimpleTypeDecl.normalize(Ljava/lang/Object;S)Ljava/lang/String; @ 51
Event: 2.847 Thread 0x00000000030e0800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000003a87f58 method=com.sun.org.apache.xerces.internal.impl.dv.xs.XSSimpleTypeDecl.normalize(Ljava/lang/Object;S)Ljava/lang/String; @ 51
Event: 2.851 Thread 0x00000000030e0800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000038c40b4 method=com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.checkBeforeLoad(Lcom/sun/xml/internal/stream/Entity$ScannedEntity;II)I @ 18
Event: 2.922 Thread 0x00000000030e0800 Uncommon trap: reason=predicate action=maybe_recompile pc=0x00000000036a4300 method=java.util.StringTokenizer.skipDelimiters(I)I @ 17
Event: 2.922 Thread 0x00000000030e0800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x000000000366a2c0 method=java.util.StringTokenizer.scanToken(I)I @ 96
Event: 2.941 Thread 0x00000000030e0800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000000034f7038 method=java.util.HashMap.putVal(ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; @ 203

Internal exceptions (10 events):
Event: 2.954 Thread 0x00000000030e0800 Exception <a 'java/util/zip/ZipException'> (0x00000000c87af308) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u144\9417\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 2.955 Thread 0x00000000030e0800 Exception <a 'java/util/zip/ZipException'> (0x00000000c87af890) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u144\9417\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 2.956 Thread 0x00000000030e0800 Exception <a 'java/util/zip/ZipException'> (0x00000000c87afc88) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u144\9417\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 2.957 Thread 0x00000000030e0800 Exception <a 'java/util/zip/ZipException'> (0x00000000c87b03a0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u144\9417\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 2.959 Thread 0x00000000030e0800 Exception <a 'java/util/zip/ZipException'> (0x00000000c87b0798) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u144\9417\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 2.965 Thread 0x00000000030e0800 Exception <a 'java/io/FileNotFoundException'> (0x00000000c87b2338) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u144\9417\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 2.966 Thread 0x00000000030e0800 Exception <a 'java/io/FileNotFoundException'> (0x00000000c87b32b8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u144\9417\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 2.966 Thread 0x00000000030e0800 Exception <a 'java/io/FileNotFoundException'> (0x00000000c87b3bf8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u144\9417\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 2.966 Thread 0x00000000030e0800 Exception <a 'java/io/FileNotFoundException'> (0x00000000c87b4520) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u144\9417\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 3.173 Thread 0x00000000030e0800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException': 5434> (0x00000000c95fbf98) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u144\9417\hotspot\src\share\vm\interpreter\interpreterRuntime.cpp, line 366]

Events (10 events):
Event: 3.182 loading class org/eclipse/jdt/internal/compiler/lookup/Scope$MethodClashException
Event: 3.182 loading class org/eclipse/jdt/internal/compiler/lookup/Scope$MethodClashException done
Event: 3.185 loading class org/eclipse/jdt/internal/compiler/lookup/MostSpecificExceptionMethodBinding
Event: 3.185 loading class org/eclipse/jdt/internal/compiler/lookup/MostSpecificExceptionMethodBinding done
Event: 3.187 loading class org/eclipse/jdt/internal/compiler/lookup/ImportBinding
Event: 3.187 loading class org/eclipse/jdt/internal/compiler/lookup/ImportBinding done
Event: 3.187 loading class org/eclipse/jdt/internal/compiler/lookup/ImportConflictBinding
Event: 3.187 loading class org/eclipse/jdt/internal/compiler/lookup/ImportConflictBinding done
Event: 3.188 loading class org/eclipse/jdt/internal/compiler/lookup/Scope$Substitutor
Event: 3.188 loading class org/eclipse/jdt/internal/compiler/lookup/Scope$Substitutor done


Dynamic libraries:
0x00007ff783920000 - 0x00007ff783957000 	C:\ProgramData\Oracle\Java\javapath\java.exe
0x00007ffbda2b0000 - 0x00007ffbda481000 	C:\Windows\SYSTEM32\ntdll.dll
0x00007ffbd7b90000 - 0x00007ffbd7c3b000 	C:\Windows\System32\KERNEL32.DLL
0x00007ffbd7570000 - 0x00007ffbd778d000 	C:\Windows\System32\KERNELBASE.dll
0x00007ffbda200000 - 0x00007ffbda2a2000 	C:\Windows\System32\ADVAPI32.dll
0x00007ffbd7840000 - 0x00007ffbd78de000 	C:\Windows\System32\msvcrt.dll
0x00007ffbd79f0000 - 0x00007ffbd7a49000 	C:\Windows\System32\sechost.dll
0x00007ffbd93b0000 - 0x00007ffbd94d1000 	C:\Windows\System32\RPCRT4.dll
0x00007ffbd94f0000 - 0x00007ffbd9655000 	C:\Windows\System32\USER32.dll
0x00007ffbd68f0000 - 0x00007ffbd690e000 	C:\Windows\System32\win32u.dll
0x00007ffbd79b0000 - 0x00007ffbd79e4000 	C:\Windows\System32\GDI32.dll
0x00007ffbd6ae0000 - 0x00007ffbd6c62000 	C:\Windows\System32\gdi32full.dll
0x00007ffbc8b00000 - 0x00007ffbc8d79000 	C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.14393.0_none_2d0f50fcbdb171b8\COMCTL32.dll
0x00007ffbd97c0000 - 0x00007ffbd9a87000 	C:\Windows\System32\combase.dll
0x00007ffbd6c70000 - 0x00007ffbd6d65000 	C:\Windows\System32\ucrtbase.dll
0x00007ffbd6d70000 - 0x00007ffbd6dda000 	C:\Windows\System32\bcryptPrimitives.dll
0x00007ffbd91e0000 - 0x00007ffbd920e000 	C:\Windows\System32\IMM32.DLL
0x00000000720b0000 - 0x0000000072182000 	C:\Program Files\Java\jre1.8.0_144\bin\msvcr100.dll
0x0000000071810000 - 0x00000000720ad000 	C:\Program Files\Java\jre1.8.0_144\bin\server\jvm.dll
0x00007ffbd91d0000 - 0x00007ffbd91d8000 	C:\Windows\System32\PSAPI.DLL
0x00007ffbc8f90000 - 0x00007ffbc8f99000 	C:\Windows\SYSTEM32\WSOCK32.dll
0x00007ffbd4a50000 - 0x00007ffbd4a73000 	C:\Windows\SYSTEM32\WINMM.dll
0x00007ffbd7a50000 - 0x00007ffbd7aba000 	C:\Windows\System32\WS2_32.dll
0x00007ffbcc590000 - 0x00007ffbcc59a000 	C:\Windows\SYSTEM32\VERSION.dll
0x00007ffbd48b0000 - 0x00007ffbd48db000 	C:\Windows\SYSTEM32\WINMMBASE.dll
0x00007ffbd77f0000 - 0x00007ffbd7832000 	C:\Windows\System32\cfgmgr32.dll
0x0000000071800000 - 0x000000007180f000 	C:\Program Files\Java\jre1.8.0_144\bin\verify.dll
0x00000000717d0000 - 0x00000000717f9000 	C:\Program Files\Java\jre1.8.0_144\bin\java.dll
0x00000000717b0000 - 0x00000000717c6000 	C:\Program Files\Java\jre1.8.0_144\bin\zip.dll
0x00007ffbd7cc0000 - 0x00007ffbd91c8000 	C:\Windows\System32\SHELL32.dll
0x00007ffbd6de0000 - 0x00007ffbd74ba000 	C:\Windows\System32\windows.storage.dll
0x00007ffbd67d0000 - 0x00007ffbd681c000 	C:\Windows\System32\powrprof.dll
0x00007ffbd7c40000 - 0x00007ffbd7c92000 	C:\Windows\System32\shlwapi.dll
0x00007ffbd67b0000 - 0x00007ffbd67bf000 	C:\Windows\System32\kernel.appcore.dll
0x00007ffbd74c0000 - 0x00007ffbd7569000 	C:\Windows\System32\shcore.dll
0x00007ffbd6820000 - 0x00007ffbd6834000 	C:\Windows\System32\profapi.dll
0x0000000071790000 - 0x00000000717aa000 	C:\Program Files\Java\jre1.8.0_144\bin\net.dll
0x00007ffbd60e0000 - 0x00007ffbd613c000 	C:\Windows\system32\mswsock.dll
0x0000000071770000 - 0x0000000071781000 	C:\Program Files\Java\jre1.8.0_144\bin\nio.dll

VM Arguments:
jvm_args: -Xmx1024m -Xms1024m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:+AggressiveOpts -XX:SurvivorRatio=6 -XX:TargetSurvivorRatio=4 -XX:ParallelGCThreads=2 -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -XX:+ScavengeBeforeFullGC -XX:+CMSScavengeBeforeRemark -XX:+UseFastAccessorMethods -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Dpython.cachedir=../cachedir 
java_command: l2jserver.jar
java_class_path (initial): l2jserver.jar
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Crucial\Crucial Storage Executive;C:\Users\XXXXXX\AppData\Local\Microsoft\WindowsApps;
USERNAME=XXXXXX
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel


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

OS: Windows 10.0 , 64 bit Build 14393 (10.0.14393.0)

CPU:total 4 (initial active 4) (2 cores per cpu, 2 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, erms, ht, tsc, tscinvbit, tscinv

Memory: 4k page, physical 8268732k(6724268k free), swap 8268732k(4232k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (25.144-b01) for windows-amd64 JRE (1.8.0_144-b01), built on Jul 21 2017 21:57:33 by "java_re" with MS VC++ 10.0 (VS2010)

time: Thu Aug 17 02:00:37 2017
elapsed time: 3 seconds (0d 0h 0m 3s)
As can be seem, there some facts like:

1- Is Windows x64. I'm know, but during the tests is the OS for now, later it will be Linux. Also Java x64 v8
2- The unit has 8G of ram, using with Java Xmx/Xms 1G (1024M). And the system has plenty of free ram, just rebooted.
3- Also MySQL is fine-tuned with InnoDB, using innodb_buffer_pool_size/max_heap_table_size with 256M
4- In total both system shouldn't not use more than 4GB in total, no GeoData. Is 6GB ram free, and still fail.
5- Happens in W7 & W10. Just formatted and running just those process db/java.

What could be wrong? :roll:

Thanks in advance. :wink:
HorridoJoho
L2j Senior Developer
L2j Senior Developer
Posts: 795
Joined: Sun Aug 14, 2005 11:27 am

Re: Insufficient Memory Error

Post by HorridoJoho »

Are you sure your system has sufficient memory when this crash happens? Because the cause is a failed native memory allocation from the internal workings of the jvm. Is there nothing else on that machine which consumes all the memory when that error happens?

I doubt it will help but try:

Code: Select all

-Xmx2048m -Xms2048m
User avatar
maneco2
Initiates
Initiates
Posts: 664
Joined: Sat Aug 24, 2013 7:10 am

Re: Insufficient Memory Error

Post by maneco2 »

Example with geodata anabled, minimum memory recommended, edit startGameServer.bat

Code: Select all

-Xms3072m -Xmx3072m
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: Insufficient Memory Error

Post by JMD »

My server runs fine with 2048 max and full geodata on ubuntu. Maybe something is leaking, have you tried running a fresh server on the same machine?
User avatar
KGB1st
Posts: 230
Joined: Sat Jul 26, 2014 5:58 pm

Re: Insufficient Memory Error

Post by KGB1st »

Code: Select all

[18/08 03:35:32] GameServer: Started, free memory 1508 Mb of 3186 Mb
[18/08 03:35:32] Connecting to login on 127.0.0.1:9014
[18/08 03:35:32] Registered on login as Server 1: Bartz
[18/08 03:35:32] GameServer: is now listening on: *:7777
[18/08 03:35:32] GameServer: Maximum numbers of connected players: 500
[18/08 03:35:32] GameServer: Server loaded in 66 seconds.
Geodata need minimum 3GB, even it use less than it can load in future..
and look into conf and check if geoengien loads data in memory, if true - try to disable it
howdoyouturn69
Posts: 38
Joined: Mon Apr 18, 2011 5:04 am

Re: Insufficient Memory Error

Post by howdoyouturn69 »

HorridoJoho wrote: Fri Aug 18, 2017 10:34 am Are you sure your system has sufficient memory when this crash happens? Because the cause is a failed native memory allocation from the internal workings of the jvm. Is there nothing else on that machine which consumes all the memory when that error happens?

I doubt it will help but try:

Code: Select all

-Xmx2048m -Xms2048m
Yes. I've tried with 1024, 2048, 4096 and nothing. And yes, is 1024M just in case somebody doubt about if I'm putting 1024G :lol:

maneco2 wrote: Fri Aug 18, 2017 1:39 pm Example with geodata anabled, minimum memory recommended, edit startGameServer.bat

Code: Select all

-Xms3072m -Xmx3072m
Also tried and still the same error. Windows is just fresh installed. No "virus" or any c.r.a.p. Windows, drivers and Java, still fails. :-1:

JMD wrote: Fri Aug 18, 2017 5:22 pm My server runs fine with 2048 max and full geodata on ubuntu. Maybe something is leaking, have you tried running a fresh server on the same machine?
I know that Linux has a different memory handing. But for your information (also in the first thread), is a Windows OS...

The funniest thing is the same unit was running previous server (old java + old core) without a problem. GeoData, 500p and just fine. Both Java & MySql was fine-tuned in configs. But is just that is not more working with those specs after update everything (Java, Core) :(

Any idea?
User avatar
maneco2
Initiates
Initiates
Posts: 664
Joined: Sat Aug 24, 2013 7:10 am

Re: Insufficient Memory Error

Post by maneco2 »

Send me pm on chat i give u help on team viewer
Post Reply