Page 1 of 1

Memory Error

Posted: Wed Apr 29, 2015 3:13 pm
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)

Re: Memory Error

Posted: Wed Apr 29, 2015 4:05 pm
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..)

Re: Memory Error

Posted: Thu Apr 30, 2015 1:01 pm
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
α

Re: Memory Error

Posted: Thu Apr 30, 2015 1:23 pm
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...

Re: Memory Error

Posted: Thu Apr 30, 2015 1:36 pm
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)

Re: Memory Error

Posted: Sun May 03, 2015 2:16 am
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.