Linie startowe serwera nie działają

Pytania i problemy
hadesiak
hadesiak
hadesiak
hadesiak

Plik start.sh wygląda tak: image|690x221

devon
devon

na koću brakuje - przy jar

-jar silnik.jar nogui

hadesiak
hadesiak

image|370x23

devon
devon

tutaj nie ma - więc..? Na załączonym zdjęciu

hadesiak
hadesiak

Dodałem - i cały czas że nie ma takiej komendy.

devon
devon

java -version co pokazuje po wpisaniu

hadesiak
hadesiak

image|640x62

devon
devon

skopiuj dokładnie to co poniżej i odpal

java -Xms2G -Xmx2G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar silnik.jar nogui

hadesiak
hadesiak

image|609x163

devon
devon

Masz w tym skrypcie znaki w jednym ciągu czy enter i nowa linia?

hadesiak
hadesiak

tak jak wysyłałem wyżej image|690x144

devon
devon

trzymaj start.zip|attachment (458 bajtów) w środku plik sh Edit: Działa>?

hadesiak
hadesiak

wyrzuciło mi error w plikach

hadesiak
hadesiak

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

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

Possible reasons:

The system is out of physical RAM or swap space

The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap

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:2922), pid=3994, tid=3995

JRE version: (11.0.10+9) (build )

Java VM: OpenJDK 64-Bit Server VM (11.0.10+9-Ubuntu-0ubuntu1.18.04, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)

No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

Takie cos u i dużo więcej.

hadesiak
hadesiak

Można do ciebie jakiś kontakt na dc? Będzie szybciej i sprawniej.

Timo
Timo Moderator forum.lvlup.pro

hadesiak:

The system is out of physical RAM or swap space

Nie masz na VPS tyle dostępnej pamięci, ile chcesz dać serwerowi. Sprawdź zużycie w top bądź htop, być może serwer chodzi gdzieś w tle.

Możesz też zrestartować VPS.

system
system

Ten temat został automatycznie zamknięty 32 dni po ostatnim wpisie. Tworzenie nowych odpowiedzi nie jest już możliwe.