Page 1 of 1

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

Posted: Sat Oct 31, 2009 1:50 am
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) 

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

Posted: Sat Oct 31, 2009 3:16 am
by MELERIX
OutOfMemoryError

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

Posted: Sat Oct 31, 2009 4:37 am
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

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

Posted: Sat Oct 31, 2009 7:15 am
by _DS_
Remove 32-bit operation system and install 64-bit. No other ways.

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

Posted: Sat Oct 31, 2009 2:08 pm
by disorder35
Vista is 64 bit Os .

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

Posted: Sat Oct 31, 2009 2:15 pm
by _DS_
Then use 64-bit java and increase maximum memory in server batchfile.

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

Posted: Sat Oct 31, 2009 3:12 pm
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

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

Posted: Sat Oct 31, 2009 3:15 pm
by _DS_
In the server commandline. java -Dmx .... smth like this.
64-bit version consume more memory.

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

Posted: Sat Oct 31, 2009 10:55 pm
by iamcypher
And don`t play on the same computer your hosting.

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

Posted: Thu Nov 12, 2009 5:41 am
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.

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

Posted: Thu Nov 12, 2009 6:27 am
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...

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

Posted: Fri Nov 13, 2009 5:56 am
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.