GameServer.bat

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
L2GOT
Posts: 30
Joined: Wed Nov 05, 2014 9:56 pm

GameServer.bat

Post by L2GOT »

i have compile the last version of hi5 trunks,
everything ok till i press enter on start goameserver.
it appears me this messege :


Could not resolve enough space for 157921348KB object heap
server terminated and etc....



error ocurated during instalaziation of VM

but loginserver.bat works perfect, can you help me ?
User avatar
Zealar
L2j Veteran
L2j Veteran
Posts: 1236
Joined: Sun Jul 15, 2007 10:29 am

Re: GameServer.bat

Post by Zealar »

Show your GameServer . Also do you run 32bit?
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: GameServer.bat

Post by Sdw »

L2GOT wrote:Could not resolve enough space for 157921348KB object heap
server terminated and etc....
Sorry what ?
L2GOT
Posts: 30
Joined: Wed Nov 05, 2014 9:56 pm

Re: GameServer.bat

Post by L2GOT »

Zealar wrote:Show your GameServer . Also do you run 32bit?
WHAT do you mean to show my gameserver? , and i dont know what is 32bit? where i can see that ?
thanks in advance please help me
L2GOT
Posts: 30
Joined: Wed Nov 05, 2014 9:56 pm

Re: GameServer.bat

Post by L2GOT »

SERVER.PROPERTIES =


# ---------------------------------------------------------------------------
# Game Server Settings
# ---------------------------------------------------------------------------
# This is the server configuration file. Here you can set up the connection information for your server.
# This was written with the assumption that you are behind a router.
# Dumbed Down Definitions...
# LAN (LOCAL area network) - typically consists of computers connected to the same router as you.
# WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet).
# x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers.

# ---------------------------------------------------------------------------
# Networking
# ---------------------------------------------------------------------------

# Enables automatic port mapping for game server.
# If you have a router game server will request for port forwarding.
# Default: True
EnableUPnP = True

# Where's the Login server this gameserver should connect to
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: 127.0.0.1
LoginHost = 127.0.0.1

# TCP port the login server listen to for gameserver connection requests
# Default: 9014
LoginPort = 9014

# Bind address for gameserver. You should not need to change it in most cases.
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: * (0.0.0.0)
GameserverHostname = *

# Default: 7777
GameserverPort = 7777


# ---------------------------------------------------------------------------
# Database
# ---------------------------------------------------------------------------

# Specify the appropriate driver and url for the database you're using.
# Examples:
# Driver = com.mysql.jdbc.Driver (default)
# Driver = org.hsqldb.jdbcDriver
# Driver = com.microsoft.sqlserver.jdbc.SQLServerDriver
Driver = com.mysql.jdbc.Driver
# Database URL
# URL = jdbc:mysql://localhost/l2jgs (default)
# URL = jdbc:hsqldb:hsql://localhost/l2jgs
# URL = jdbc:sqlserver://localhost/database = l2jgs/user = sa/password =
URL = jdbc:mysql://localhost/l2jgs
# Database user info (default is "root" but it's not recommended)
Login = root
# Database connection password
Password =

# Default: 100
MaximumDbConnections = 100

# Default: 0
MaximumDbIdleTime = 0

# ---------------------------------------------------------------------------
# Misc Server Settings
# ---------------------------------------------------------------------------

# This is the server ID that the Game Server will request.
# Example: 1 = Bartz
# Default: 1
RequestServerID = 1

# True = The Login Server will give an other ID to the server if the requested ID is already reserved.
# Default: True
AcceptAlternateID = True

# Datapack root directory.
# Defaults to current directory from which the server is started unless the below line is uncommented.
# WARNING: <u><b><font color="red">If the specified path is invalid, it will lead to multiple errors!</font></b></u>
#Default: .
DatapackRoot = .

# Define how many players are allowed to play simultaneously on your server.
# Default: 100
MaximumOnlineUsers = 100

# Numbers of protocol revisions that server allows to connect.
# Delimiter is ;
# WARNING: <u><b><font color="red">Changing the protocol revision may result in incompatible communication and many errors in game!</font></b></u>
# Default: 267;268;271;273
AllowedProtocolRevisions = 267;268;271;273


# ---------------------------------------------------------------------------
# Misc Player Settings
# ---------------------------------------------------------------------------

# Character name template.
# Examples:
# CnameTemplate = [A-Z][a-z]{3,3}[A-Za-z0-9]*
# The above setting will allow names with first capital letter, next three small letters,
# and any letter (case insensitive) or number, like OmfgWTF1
# CnameTemplate = [A-Z][a-z]*
# The above setting will allow names only of letters with first one capital, like Omfgwtf
# Default .* (allows any symbol)
CnameTemplate = .*

# This setting restricts names players can give to their pets.
# See CnameTemplate for details
PetNameTemplate = .*

# This setting restricts clan/subpledge names players can set.
# See CnameTemplate for details
ClanNameTemplate = .*

# Maximum number of characters per account.
# Default: 7 (client limit)
CharMaxNumber = 7





GAMESERVER.BAT =



@echo off
title Game Server Console

:start
echo Starting L2J Game Server.
echo.

java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1536m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServer

REM NOTE: If you have a powerful machine, you could modify/add some extra parameters for performance, like:
REM -Xms1536m
REM -Xmx3072m
REM -XX:+AggressiveOpts
REM Use this parameters carefully, some of them could cause abnormal behavior, deadlocks, etc.
REM More info here: http://www.oracle.com/technetwork/java/ ... 40102.html

if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end

:restart
echo.
echo Admin Restarted Game Server.
echo.
goto start

:error
echo.
echo Game Server Terminated Abnormally!
echo.

:end
echo.
echo Game Server Terminated.
echo.
pause
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: GameServer.bat

Post by UnAfraid »

Image
L2GOT
Posts: 30
Joined: Wed Nov 05, 2014 9:56 pm

Re: GameServer.bat

Post by L2GOT »

Actually my error it says 1572864KB that's 1.5GB
but i cant understand where it helps me this ?
my problem is to understand why i got this error ? to resovle it
Please help me more
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: GameServer.bat

Post by Sdw »

Windows key + R -> cmd -> "java -version"

report.
L2GOT
Posts: 30
Joined: Wed Nov 05, 2014 9:56 pm

Re: GameServer.bat

Post by L2GOT »

C:\Users\fationa>java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode)


The weird thing , is that when im trying to open another server pack, the unstable from l2j then gameserver
works perfect.
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: GameServer.bat

Post by Sdw »

Seems like your java version is not a 64bits.

Try to change it.
L2GOT
Posts: 30
Joined: Wed Nov 05, 2014 9:56 pm

Re: GameServer.bat

Post by L2GOT »

but my pc is 32bit
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: GameServer.bat

Post by Sdw »

Outch,

Then in gameserver.bat, decrease Xmx to 1024 instead of 1536.

There have been issues in the past for java allocating 1.5Gb of contiguous memory.
L2GOT
Posts: 30
Joined: Wed Nov 05, 2014 9:56 pm

Re: GameServer.bat

Post by L2GOT »

witch one from 1500? there are three
L2GOT
Posts: 30
Joined: Wed Nov 05, 2014 9:56 pm

Re: GameServer.bat

Post by L2GOT »

problem solved thanks bro :)) i chnage it to 1024
Post Reply