how to allocate more Ram to the gameserver

This is not a Support area, if you have a problem check the forum below. Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct

how to allocate more Ram to the gameserver

Postby Kamira » Fri May 18, 2012 11:46 am

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 5316:
L2JDP Revision 8812:

Hi, can anyone EXPLAIN me how to give the gameserver more Ram? I use Linux CentOS 6. i already used google but didnt found a good guide...
Kamira
 
Posts: 18
Joined: Sun Feb 20, 2011 2:44 pm

Re: how to allocate more Ram to the gameserver

Postby Sleek » Fri May 18, 2012 11:51 am

Kamira wrote:If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 5316:
L2JDP Revision 8812:

Hi, can anyone EXPLAIN me how to give the gameserver more Ram? I use Linux CentOS 6. i already used google but didnt found a good guide...


Edit your GameServer_loop.sh file inside the gameserver folder.
Sleek
 
Posts: 119
Joined: Tue Dec 28, 2010 2:11 pm

Re: how to allocate more Ram to the gameserver

Postby Kamira » Fri May 18, 2012 12:42 pm

but how?? i use winscp what i must do?
Kamira
 
Posts: 18
Joined: Sun Feb 20, 2011 2:44 pm

Re: how to allocate more Ram to the gameserver

Postby Kamira » Fri May 18, 2012 1:07 pm

i found it out :D all ok now ^^ thx
Kamira
 
Posts: 18
Joined: Sun Feb 20, 2011 2:44 pm

Re: how to allocate more Ram to the gameserver

Postby Micr0 » Fri May 18, 2012 1:15 pm

open file GameServer_loop.sh with some text editor and change this -Xms1024m -Xmx1024m

on line
java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*:l2jserver.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1


you can use
-Xms1024m -Xmx1024m >>>> 1GB RAM
-Xms2024m -Xmx2024m >>>> 2GB RAM
-Xms3024m -Xmx3024m >>>> 3GB RAM
-Xms4024m -Xmx4024m >>>> 4GB RAM
-Xms5024m -Xmx5024m >>>> 5GB RAM
-Xms6024m -Xmx6024m >>>> 6GB RAM
or
-Xms1g -Xmx1g >>>> 1GB RAM
-Xms2g -Xmx2g >>>> 2GB RAM
-Xms3g -Xmx3g >>>> 3GB RAM
-Xms4g -Xmx4g >>>> 4GB RAM
-Xms5g -Xmx5g >>>> 5GB RAM
-Xms6g -Xmx6g >>>> 6GB RAM
User avatar
Micr0
 
Posts: 107
Joined: Sun Sep 05, 2010 6:44 pm

Re: how to allocate more Ram to the gameserver

Postby shoko » Fri May 18, 2012 1:45 pm

My server has ram 8G

Can set ram ? for gameserver
-Xms4024m -Xmx4024m >>>> 4GB RAM
User avatar
shoko
 
Posts: 157
Joined: Sat Jul 28, 2007 12:46 pm

Re: how to allocate more Ram to the gameserver

Postby Micr0 » Sat May 19, 2012 1:02 am

yes
for windows xp/vista/7 etc edit gameserver.bat
for linux or etc edit file GameServer_loop.sh

only change this two line -Xms1024m -Xmx1024m
User avatar
Micr0
 
Posts: 107
Joined: Sun Sep 05, 2010 6:44 pm

Re: how to allocate more Ram to the gameserver

Postby MELERIX » Sat May 19, 2012 5:38 am

you don't need to increase -Xms like -Xmx, remember that Xms is initial heap size.

if you use 32 bits -Xms1204m should be enough.
if you use 64 bits -Xms2048m should be enough.

also you shouldn't assign whole system memory to -Xmx, because you share system memory with Windows and MySQL.
User avatar
MELERIX
DP Team Leader
DP Team Leader
 
Posts: 6741
Joined: Sun Sep 24, 2006 12:31 am
Location: Chile

Re: how to allocate more Ram to the gameserver

Postby valdaron » Mon Aug 06, 2012 6:08 pm

Hello.

I have Ubuntu and I can't set any of this:

-Xms2024m -Xmx2024m >>>> 2GB RAM
-Xms3024m -Xmx3024m >>>> 3GB RAM
-Xms4024m -Xmx4024m >>>> 4GB RAM
-Xms5024m -Xmx5024m >>>> 5GB RAM
-Xms6024m -Xmx6024m >>>> 6GB RAM

Machine have 16gb RAM

Finally I set -Xms1024M -Xmx1536M and it works but I'm afraid that is not enough.
Any idea how to put more ram?
User avatar
valdaron
Advanced User
Advanced User
 
Posts: 192
Joined: Mon Apr 18, 2011 4:11 pm
Location: Poland

Re: how to allocate more Ram to the gameserver

Postby jurchiks » Mon Aug 06, 2012 6:17 pm

-Xms2g -Xmx8g should be enough for you. Also, how do you know it's not set? You don't actually need l2j to allocate all 16 gigabytes of RAM on startup, that would be insane.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
User avatar
jurchiks
 
Posts: 5385
Joined: Sat Sep 19, 2009 5:16 pm
Location: Eastern Europe

Re: how to allocate more Ram to the gameserver

Postby valdaron » Mon Aug 06, 2012 7:08 pm

I have bad feelings, I'll check tomorrow at the morning and I'll let U know.
I tried many options like -Xms1g -Xmx5g, -Xms1024M -Xmx8192M, ..., and I had :

Invalid maximum heap size: -Xmx5g
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
User avatar
valdaron
Advanced User
Advanced User
 
Posts: 192
Joined: Mon Apr 18, 2011 4:11 pm
Location: Poland

Re: how to allocate more Ram to the gameserver

Postby midnex » Mon Aug 06, 2012 7:10 pm

install 64bit java/os
midnex
 
Posts: 19
Joined: Wed Aug 13, 2008 6:39 am


Return to Server Discussion

Who is online

Users browsing this forum: No registered users and 0 guests