Getting error on linux debian:
"Exception in thread "main" java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
at java.base/java.lang.Thread.start0(Native Method)
at java.base/java.lang.Thread.start(Thread.java:803)
at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:937)
at java.base/java.util.concurrent.ThreadPoolExecutor.prestartAllCoreThreads(ThreadPoolExecutor.java:1597)
at net.sf.l2j.commons.concurrent.ThreadPool.init(ThreadPool.java:58)
at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:174)
at net.sf.l2j.gameserver.GameServer.main(GameServer.java:143)"
And all VPS crashes.
Tried to launch with xmx 4gb, with jdk 8 and 11 - doesn't work. Any suggestions ?