error on game server please help me fix it!!!

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
User avatar
disorder35
Posts: 700
Joined: Sat Aug 01, 2009 3:29 pm

error on game server please help me fix it!!!

Post by disorder35 »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: 3470M
L2JDP Revision Number: 6572


I had my server working fine on a windows xp machine. I went out and got a better machine (amd phenom X4 with 8 gb ram) but it come with windows vista. Since I moved the server to the new machine Ihave been getting this error witch make the server stop even know it shows on hopzone that the server is online nobody can log in after the error occur. I don't know what to do, I tried to update the database but it didn't work. Can someone please tell me what's going on and how to fix it and if it has anything to do with Vista.
Thanks

Edit it always happen around the same time in the afternoon and I only come from work late at night.

Code: Select all

  DayNightSpawnManager: Spawning Hellman raidbossOlympiad System: Data updated.SevenSigns: Data updated successfully.Exception in thread "EffectsSTPool-2" java.lang.OutOfMemoryError: Java heap spaceException in thread "General Pool-5" java.lang.OutOfMemoryError: Java heap space Exception in thread "Timer-0" java.lang.OutOfMemoryError: Java heap spaceException in thread "EffectsSTPool-9" java.lang.OutOfMemoryError: Java heap spaceException in thread "EffectsSTPool-11" java.lang.OutOfMemoryError: Java heap spaceException in thread "Thread-49" java.lang.OutOfMemoryError: Java heap spaceNPC 32335 class not foundjava.lang.reflect.InvocationTargetException        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)        at java.lang.reflect.Constructor.newInstance(Unknown Source)        at net.sf.l2j.gameserver.model.L2Spawn.doSpawn(L2Spawn.java:467)        at net.sf.l2j.gameserver.model.L2Spawn.doSpawn(L2Spawn.java:424)        at net.sf.l2j.gameserver.model.AutoSpawnHandler$AutoSpawner.run(AutoSpawnHandler.java:517)        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)         at java.util.concurrent.FutureTask.runAndReset(Unknown Source)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)        at java.lang.Thread.run(Unknown Source)Caused by: java.lang.OutOfMemoryError: Java heap space Exception in thread "EffectsSTPool-8" Exception in thread "EffectsSTPool-6" java.lang.OutOfMemoryError: Java heap spaceException in thread "EffectsSTPool-4" java.lang.OutOfMemoryError: Java heap spaceNPC 32335 class not foundjava.lang.reflect.InvocationTargetException        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)        at java.lang.reflect.Constructor.newInstance(Unknown Source)        at net.sf.l2j.gameserver.model.L2Spawn.doSpawn(L2Spawn.java:467)        at net.sf.l2j.gameserver.model.L2Spawn.doSpawn(L2Spawn.java:424)        at net.sf.l2j.gameserver.model.AutoSpawnHandler$AutoSpawner.run(AutoSpawnHandler.java:517)        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)         at java.util.concurrent.FutureTask.runAndReset(Unknown Source)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)        at java.lang.Thread.run(Unknown Source)Caused by: java.lang.OutOfMemoryError: Java heap space [Event] Smash The Pig Event FinishedAutoSpawnHandler: An error occurred while initializing spawn instance (Object ID = 268505635): java.lang.NullPointerException[Event] Teleporting Playersjava.lang.NullPointerException        at net.sf.l2j.gameserver.model.AutoSpawnHandler$AutoSpawner.run(AutoSpawnHandler.java:518)        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)         at java.util.concurrent.FutureTask.runAndReset(Unknown Source)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)        at java.lang.Thread.run(Unknown Source)FourSepulchersManager: Entry time: Fri Oct 30 19:55:45 EDT 2009DayNightSpawnManager: Deleting Hellman raidbossOlympiad System: Data updated.Exception in thread "EffectsSTPool-1" Exception in thread "AISTPool-3" java.lang.OutOfMemoryError: Java heap space[Event] Removing PigsException in thread "EffectsSTPool-7" java.lang.OutOfMemoryError: Java heap spaceException in thread "AISTPool-6" java.lang.OutOfMemoryError: Java heap spaceException in thread "GeneralSTPool-6" java.lang.OutOfMemoryError: Java heap spacejava.lang.reflect.InvocationTargetException        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)        at java.lang.reflect.Constructor.newInstance(Unknown Source)        at net.sf.l2j.gameserver.MonsterRace.newRace(MonsterRace.java:70)        at net.sf.l2j.gameserver.model.actor.instance.L2RaceManagerInstance.startRace(L2RaceManagerInstance.java:254)        at net.sf.l2j.gameserver.model.actor.instance.L2RaceManagerInstance.makeAnnouncement(L2RaceManagerInstance.java:179)        at net.sf.l2j.gameserver.model.actor.instance.L2RaceManagerInstance$Announcement.run(L2RaceManagerInstance.java:165)        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)         at java.util.concurrent.FutureTask.runAndReset(Unknown Source)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)        at java.lang.Thread.run(Unknown Source)Caused by: java.lang.OutOfMemoryError: Java heap spacejava.lang.reflect.InvocationTargetExceptionCould not store char base data: java.sql.SQLException: java.lang.OutOfMemoryError: Java heap spacejava.lang.reflect.InvocationTargetException        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)        at java.lang.reflect.Constructor.newInstance(Unknown Source)        at net.sf.l2j.gameserver.MonsterRace.newRace(MonsterRace.java:70) 
So What?????
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: error on game server please help me fix it!!!

Post by MELERIX »

OutOfMemoryError
User avatar
disorder35
Posts: 700
Joined: Sat Aug 01, 2009 3:29 pm

Re: error on game server please help me fix it!!!

Post by disorder35 »

and how do I fix this? Do I have to change the virtual memory? Please let me know what do I need to do. My pc has 8 gb of ram. Thank you
So What?????
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: error on game server please help me fix it!!!

Post by _DS_ »

Remove 32-bit operation system and install 64-bit. No other ways.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
disorder35
Posts: 700
Joined: Sat Aug 01, 2009 3:29 pm

Re: error on game server please help me fix it!!!

Post by disorder35 »

Vista is 64 bit Os .
So What?????
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: error on game server please help me fix it!!!

Post by _DS_ »

Then use 64-bit java and increase maximum memory in server batchfile.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
disorder35
Posts: 700
Joined: Sat Aug 01, 2009 3:29 pm

Re: error on game server please help me fix it!!!

Post by disorder35 »

What do I need to do to increase memory on the server's batchfile? And why I didn't have any problems with my other pc running 32-bit windows Xp?
Thanks
So What?????
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: error on game server please help me fix it!!!

Post by _DS_ »

In the server commandline. java -Dmx .... smth like this.
64-bit version consume more memory.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
iamcypher
Posts: 57
Joined: Thu Oct 22, 2009 3:13 pm

Re: error on game server please help me fix it!!!

Post by iamcypher »

And don`t play on the same computer your hosting.
User avatar
disorder35
Posts: 700
Joined: Sat Aug 01, 2009 3:29 pm

Re: error on game server please help me fix it!!!

Post by disorder35 »

I guess Vindows Vista is not good to run the server, too many out of memory errors when I got 8gb memory and i'm running 25mb vitual memory. It sucks because I get this error everyday now at around the same time and it's killing my server. It was running good on windows xp even when I had the server on a backup pc with only 2gb memory on it, I never had a problem. Now on Vista the server get the errors and then it get stuck and nobody can log in to play until I come home from work to restart it. Still haven't figure it out how to fix it.
So What?????
DeGato
Posts: 51
Joined: Wed Oct 28, 2009 4:49 pm

Re: error on game server please help me fix it!!!

Post by DeGato »

in GameServer_loop.sh or

Code: Select all

java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xms1024m -Xmx1024m -cp ./.
increase Xmx value:

Code: Select all

java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xms1024m -Xmx2048m -cp ./.
or in startGameServer.bat

Code: Select all

java -server -Xmx1536m -Xms1024m -Xmn512m
also increase Xmx value...
User avatar
disorder35
Posts: 700
Joined: Sat Aug 01, 2009 3:29 pm

Re: error on game server please help me fix it!!!

Post by disorder35 »

I did what you said, now let's wait and see if it fixed the problem.
Thank you very much for your help.


Ok since I did the changes I haven't got any errors so I guess the problem is solved. Thanks again my friend.
So What?????
Post Reply