-XX:CMSInitiatingOccupancyFraction=90
@lpzen
in java there is something called the heap
when the program needs memory its taken from the heap
when a program is done with memory it is not released from the heap UNTIL the garbage collector runs
I had you turn on the incremental garbage collector, its the equivalent of grabbing the nearest candy wrapper and tossing it
the Parallel garbage collector runs only when you get to 90% of the max heap size, this one stops execution of the server and uses up to 4 threads to clean up, thats equivalent to ordering a dumpster for spring cleaning day
you can change the percent with this commandCode:-XX:CMSInitiatingOccupancyFraction=90
Thanks glass. Can't wait for the help.@lpzen
in java there is something called the heap
when the program needs memory its taken from the heap
when a program is done with memory it is not released from the heap UNTIL the garbage collector runs
I had you turn on the incremental garbage collector, its the equivalent of grabbing the nearest candy wrapper and tossing it
the Parallel garbage collector runs only when you get to 90% of the max heap size, this one stops execution of the server and uses up to 4 threads to clean up, thats equivalent to ordering a dumpster for spring cleaning day
you can change the percent with this commandCode:-XX:CMSInitiatingOccupancyFraction=90
@Ryat
I can help build a command later today but in the meantime you might want to look at this mod
http://forum.feed-the-beast.com/thr...le-entity-ticks-and-other-optimisations.6498/
also WOOOOOO UBUNTU
java -server -Xincgc -Xmx8G -Xms2G -Xmn1G -XX:NewRatio=2
-XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048
-XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -Xnoclassgc
-oss4M -ss4M -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=80
-XX:+UseConcMarkSweepGC -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection
-XX:ParallelGCThreads=4 -XX:+AggressiveOpts
-XX:+UseLargePages -XX:ReservedCodeCacheSize=1G
-cp your_jar_name_here.jar -jar your_jar_name_here.jar
Hi guys i was hoping i could get some help with speeding up my server too.
Model: HP Pavilion dv6 Notebook PC
Processor: AMD Turion(tm) II P520 Dual-Core Processor 2.3 GHz
Installed memory(ram): 4.00 GB(3.74 GB usable)
System type: 64bit Operating system
Java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04
java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
If you need any other information or if you can help it would be much aperciated.
Also i plan to run and play on this server with at most 5 other people, we will be running the dw20 mod pack, if theres something i need to upgarde or buy and add to help it run faster I would be interesed in doing that too if its not to expensive.
I added that mod to the server and used the java settings the recomened and it brought the tps up to 20 right away huge recomendation for people having trouble with lag on there server.
java -server -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=12 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+UseCompressedOops -XX:+AggressiveOpts -Xmx4096M -jar direwolf20.jar nogui
Thanks alot for your help! Ill be back with the result after some runtime =)
java -Xmx10G -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=80 -XX:+CMSIncrementalPacing -Xincgc -jar direwolf20.jar nogui -server -XX:+AggressiveOpts -XX:UseSSE=4 -XX:+UseFastAccessorMethods -XX:CMSFullGCsBeforeCompaction=1 -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:+UseParNewGC -XX:+DisableExplicitGC -XX:ParallelGCThreads=4
PAUSE
this is spaced out so I could read it
Code:java -server -Xincgc -Xmx8G -Xms2G -Xmn1G -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -Xnoclassgc -oss4M -ss4M -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseConcMarkSweepGC -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=4 -XX:+AggressiveOpts -XX:+UseLargePages -XX:ReservedCodeCacheSize=1G -cp your_jar_name_here.jar -jar your_jar_name_here.jar
java -server -Xincgc -Xmx8G -Xms2G -Xmn1G -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048-XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -Xnoclassgc -oss4M -ss4M -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseConcMarkSweepGC -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=4 -XX:+AggressiveOpts
-XX:+UseLargePages -XX:ReservedCodeCacheSize=1G -cp direwolf20.jar -direwolf20.jar
Not sure if there is more wrong but you atleast forgot a space here:
Code:-XX:SoftRefLRUPolicyMSPerMB=2048-XX:+CMSParallelRemarkEnabled
I found my problem!
Dynmap for Forge.... Uninstalled that one and now the server works perfect.
java -server -Xincgc -Xmx5G -Xms2G -Xmn1G -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -Xnoclassgc -oss4M -ss4M -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseConcMarkSweepGC -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=4 -XX:+AggressiveOpts -XX:ReservedCodeCacheSize=1G -cp your_jar_name_here.jar -jar your_jar_name_here.jar
this is spaced out so I could read it
Code:java -server -Xincgc -Xmx8G -Xms2G -Xmn1G -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -Xnoclassgc -oss4M -ss4M -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseConcMarkSweepGC -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=4 -XX:+AggressiveOpts -XX:+UseLargePages -XX:ReservedCodeCacheSize=1G -cp your_jar_name_here.jar -jar your_jar_name_here.jar