Junior Spellweaver
- Joined
- Aug 8, 2014
- Messages
- 164
- Reaction score
- 26
Hello, someone already tested in Linux I want to know if possible
(Sorry for my bad English)
(Sorry for my bad English)
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!DEFAULT_JVM_OPTS='"-DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector" "-server" [COLOR="#FF0000"]"-Xms12g" "-Xmx90g"[/COLOR]'
Wonderful response and help thank you very much the help I hope this works for others who want to use Linux, my box is 8GB that amount you recommend me put?You don't.
You run the shell files.
Login to the server using putty (if its remote)
You'll need to replace 2 files.
remove whateverfolderserverisin/gameserver/bin/gameserver <-- small shell file without extension
remove whateverfolderserverisin/loginsserver/bin/logins.sh <--- small shell file
download shellscripts.zip file from attachment
You might need to upload using WinSCP
upload to the linux box.
unzip the shellscripts.zip file (contains 2 shell scripts), command prompt type:
unzip shellscripts.zip
put appropriate file into the 2 above mentioned folders (where you removed the other 2)
while in the whateverfolderserverisin/gameserver/bin folder and at command prompt type:
chmod +rwx gameserver.sh
while in the whateverfolderserverisin/loginserver/bin folder and at command prompt, type:
chmod +rwx loginserver.sh
if you remote into the server:
at the command prompt:
cd whateverfolderserverisin/loginserver/bin
there is a period at the beginning of this command---> ./login.sh &
cd whateverfolderserverisin/gameserver/bin
there is a period at the beginning of this command---> ./gameserver.sh &
Once both stop spewing crap on your terminal window and you see the game server stating its running type:
type --> ps
(second field is PID or process id) we'll call it PID#1 and PID#2
(note that there will be 2 java processes in the output, note both PID#'s you will use them both on separate lines)
type --> disown PID#1
type --> disown PID#2
Now you can safely log out of the console window
Line 31 in the gameserver.sh file
You may need to edit the file and change the highlighted in red portion:
Code:DEFAULT_JVM_OPTS='"-DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector" "-server" [COLOR=#FF0000]"-Xms12g" "-Xmx90g"[/COLOR]'
Depending on the amount of ram your box has (just remember to leave enough ram for mongo, loginserver, and the operating system)
@sabracx
Hit refresh on this post.
:0)
There is insufficient memory for the Java Runtime Environment to continue
I have these problems with Java, had even the config of your patch apparently why the RAM error, thanksIf its only 8 gb ram and its in a virtual machine, probably wont happen.
If its only 8 gb ram and its the only operating system running, you could probably use 6gb (but expect a large hit to your cpu).
I've noticed that 1 player and the server being allowed to use only what it needs to, it sits around 10.5 to 11 gb ram.
Each machine used by yourself and others, may or may not handle the server running with those settings.
It wouldn't be fair to say you can or cannot get it to function, as I don't know the extent of how this server runs on other machine environments.
Side note:
If you run the client on the same machine ( the client uses around 3 gb ram +- )
You'll need to play it by ear, perhaps set it to 4 gb ram for gameserver and test.
That pretty much answered that question.
I already solve it correctly, my configuration had an error, thank you very much for the help.If you have not replaced the original 2 shell scripts, with the ones in the above attachment.
The original files use several incorrect command line options, that do not work.
You may still need to update your configs as well.
If its only 8 gb ram and its in a virtual machine, probably wont happen.
If its only 8 gb ram and its the only operating system running, you could probably use 6gb (but expect a large hit to your cpu).
I've noticed that 1 player and the server being allowed to use only what it needs to, it sits around 10.5 to 11 gb ram.
Each machine used by yourself and others, may or may not handle the server running with those settings.
It wouldn't be fair to say you can or cannot get it to function, as I don't know the extent of how this server runs on other machine environments.
Side note:
If you run the client on the same machine ( the client uses around 3 gb ram +- )
You'll need to play it by ear, perhaps set it to 4 gb ram for gameserver and test.
That pretty much answered that question.
Any bugs. Work on linux now use debian.