Recently, my server, after running 5-6 hours, starts to use a huge amount of RAM. In fact, it's using ALL of the allocated memory which is causing the server to be almost unresponsive to commands and such. There is no error at all, it just suddenly begins to use a huge amount of RAM out of nowhere. When it's been restarted however, it stays stable at around 2GB for a while until it kicks in. I'm wondering if this is a memory leak caused by bukkit or not. The server is running on OS: Windows Server 2008 R2 x64 CPU: 2x Intel Xeon X5620 2.4 GHz RAM: 16 GB DDR3 java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
I bet you it's that you don't have proper garbage collection. What do you start your server with? Also get Java 1.7 64bit
I'm running McMyAdmin, which has garbage collection set to default. What type of garbage collection would you suggest?
I use Code: jjava -server -Xincgc -Xmx2048M -Djava.net.preferIPv4Stack=true -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=8 -XX:+AggressiveOpts -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -Xnoclassgc -XX:UseSSE=3 -XX:PermSize=128m -XX:LargePageSizeInBytes=4m -jar craftbukkit.jar nogui
so im really stoned as its sunday , can someone explain to me this whole garbage collection thing? the issue has come up as my itemcraft server often runs out of heap space for no real reason. its launched from a standard batch file with the standard Xms Xmx line can i improve on this?
Thanks a lot! The RAM usage has been stable for the last two hours and haven't noticed much lag since either.
Don't forget my launch string is only 2gb, you may want to increase it! Also get Java 1.6, it's worth it
Yeah it's beta for legal reasons because of Oracle having bought Sun. Don't worry it's just as stable as 1.6.
Yes you can, he uses windows, read the op! They all deal with garbage collection and memory controls except for preferipv4stack.
Doesn't seem like the memory leak is fixed, it is now using even MORE memory than I have allocated. How is this even possible?
ur kidding right? OPENJDK has a 1.7 im useing it here try this one its what i use and with 20+ players online and like 20 plugins lag whats that again? java -d64 -Xshare:auto -jar craft.jar EDIT by Moderator: merged posts, please use the edit button instead of double posting.