Memory Error

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
teris1994
Posts: 73
Joined: Sat Apr 30, 2011 1:15 pm

Memory Error

Post by teris1994 »

Hallo guys , when i use the geodata , path-nodes files i take this error . How i can fix that ? Need to change memory side from configs?

Code: Select all

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
	at com.sun.org.apache.xerces.internal.xni.XMLString.toString(XMLString.java:188)
	at com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.ignorableWhitespace(AbstractDOMParser.java:1274)
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.ignorableWhitespace(XMLSchemaValidator.java:841)
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.characters(XMLSchemaValidator.java:803)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:463)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:348)
	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
	at com.l2jserver.util.data.xml.IXmlReader.parseFile(IXmlReader.java:88)
	at com.l2jserver.util.data.xml.IXmlReader.parseDatapackFile(IXmlReader.java:62)
	at com.l2jserver.gameserver.data.xml.impl.NpcData$MinionData.load(NpcData.java:822)
	at com.l2jserver.gameserver.data.xml.impl.NpcData$MinionData.<init>(NpcData.java:815)
	at com.l2jserver.gameserver.data.xml.impl.NpcData.load(NpcData.java:73)
	at com.l2jserver.gameserver.data.xml.impl.NpcData.<init>(NpcData.java:67)
	at com.l2jserver.gameserver.data.xml.impl.NpcData$SingletonHolder.<clinit>(NpcData.java:867)
	at com.l2jserver.gameserver.data.xml.impl.NpcData.getInstance(NpcData.java:862)
	at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:263)
	at com.l2jserver.gameserver.GameServer.main(GameServer.java:467)
User avatar
Aikimaniac
L2j Inner Circle
L2j Inner Circle
Posts: 3048
Joined: Sun Aug 07, 2005 11:42 pm
Location: Slovakia

Re: Memory Error

Post by Aikimaniac »

Already first line says that you are out of memory... what server hardware specs you have and show me also your command line (parameters for java service to run..)
Image
teris1994
Posts: 73
Joined: Sat Apr 30, 2011 1:15 pm

Re: Memory Error

Post by teris1994 »

i use linux centos with 8gb ram (i think is good for l2j) .
That below is my GameServerLoop i have change some int but he dont work ..

Code: Select all

#!/bin/bash

# exit codes of GameServer:
#  0 normal shutdown
#  2 reboot attempt

while :; do
	[ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"
	[ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
	java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Dpython.cachedir=../cachedir -Xms2024m -Xmx3536m -jar l2jserver.jar > log/stdout.log 2>&1
	[ $? -ne 2 ] && break
#	/etc/init.d/mysql restart
	sleep 10
done
ฮฑ
User avatar
Aikimaniac
L2j Inner Circle
L2j Inner Circle
Posts: 3048
Joined: Sun Aug 07, 2005 11:42 pm
Location: Slovakia

Re: Memory Error

Post by Aikimaniac »

Set Xms to 1024 and Xmx to 6144 and try that out... Linux doesnt need more then 1GB of RAM imo but just to avoid issues if they could be any, lets keep it 2GB...
Image
teris1994
Posts: 73
Joined: Sat Apr 30, 2011 1:15 pm

Re: Memory Error

Post by teris1994 »

I do that but i have new error again in memory .

Maybe if i do a restart the computer maybe fix ?

Code: Select all

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
	at java.nio.HeapIntBuffer.<init>(HeapIntBuffer.java:57)
	at java.nio.IntBuffer.allocate(IntBuffer.java:335)
	at com.l2jserver.gameserver.pathfinding.geonodes.GeoPathFinding.LoadPathNodeFile(GeoPathFinding.java:458)
	at com.l2jserver.gameserver.pathfinding.geonodes.GeoPathFinding.lambda$new$233(GeoPathFinding.java:418)
	at com.l2jserver.gameserver.pathfinding.geonodes.GeoPathFinding$$Lambda$12/1987154353.accept(Unknown Source)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.Iterator.forEachRemaining(Iterator.java:116)
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
	at com.l2jserver.gameserver.pathfinding.geonodes.GeoPathFinding.<init>(GeoPathFinding.java:405)
	at com.l2jserver.gameserver.pathfinding.geonodes.GeoPathFinding$SingletonHolder.<clinit>(GeoPathFinding.java:477)
	at com.l2jserver.gameserver.pathfinding.geonodes.GeoPathFinding.getInstance(GeoPathFinding.java:60)
	at com.l2jserver.gameserver.pathfinding.PathFinding.getInstance(PathFinding.java:38)
	at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:258)
	at com.l2jserver.gameserver.GameServer.main(GameServer.java:467)
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Memory Error

Post by Zoey76 »

Are you loading pathnode files?

Try with CellPathFinding, if that work, then upload me somewhere the files you are using (it should be about 20mb) so I can test here.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
Post Reply