I have an annoying issue with MineCraft, 64-bit Linux and garbage collection.
Some specs:
MineCraft 1.6.4
170 mods
Computer with nvidia graphics card and 8 gig memory
Java 7 64-but from Oracle
Ubuntu 13.04
Previously I was running this setup in Windows 7 and I had no issues. MineCraft worked perfectly. A few weeks ago I migrated to Linux and overall MineCraft performance is considerably better. So that's the good news. However, the bad news is that I seem to have a big issue after playing for a while. At some point the garbage collector starts to kick in and when that happens I'm getting EXTREME lag. And with extreme I really mean extreme. It means that I get about 10 seconds for every frame (not 10 frames per second, but 10 seconds per frame) and in addition it is not only MineCraft. My entire system crawls to a halt. All other applications in the background go slow as hell while MineCraft is doing its thing.
If I leave this long enough then it eventually clears (presumably when it did manage to finish its garbage collection).
This condition is triggered faster in some situations. For example running in Twilight Forest triggers it faster. Exploring a lot of new chunks triggers it faster. Publishing my world on LAN so that my son can play with me also triggers it faster.
I did some research on google and it appears that garbage collector freezes occur for other people as well but I didn't find a lot of things hinting to a solution. However, there are a lot of GC related flags for the Java VM and I'm guessing it might be possible to tune this to at least decrease this problem. Here are my current Java Flags for MineCraft:
There are many other GC related flags and also I'm not sure the above flags are correct or desired. Can anyone advice me on this problem and recommend me some other flags I can try to try to fix this problem?
Thanks a lot!
Rollback Post to RevisionRollBack
Author of RFTools, RFTools Control, RFTools Dimensions, Deep Resonance, Immersive Craft, CombatHelp, NICE, Aqua Munda, Ariente, XNet, Interaction Wheel, The Lost Cities, Lost Souls, Need To Breathe, EFab, The One Probe and co-author of Not Enough Wands and RF Lux.
Problem solved. Apparently it had nothing to do with garbage collection but with graphics texture memory. Removing the Opis mod (and mapwriter) solved the issue.
Rollback Post to RevisionRollBack
Author of RFTools, RFTools Control, RFTools Dimensions, Deep Resonance, Immersive Craft, CombatHelp, NICE, Aqua Munda, Ariente, XNet, Interaction Wheel, The Lost Cities, Lost Souls, Need To Breathe, EFab, The One Probe and co-author of Not Enough Wands and RF Lux.
Problem solved. Apparently it had nothing to do with garbage collection but with graphics texture memory. Removing the Opis mod (and mapwriter) solved the issue.
Yeah this is usually a graphics memory problem, this was going to be my recommendation. Great thinking!
Some specs:
If I leave this long enough then it eventually clears (presumably when it did manage to finish its garbage collection).
This condition is triggered faster in some situations. For example running in Twilight Forest triggers it faster. Exploring a lot of new chunks triggers it faster. Publishing my world on LAN so that my son can play with me also triggers it faster.
I did some research on google and it appears that garbage collector freezes occur for other people as well but I didn't find a lot of things hinting to a solution. However, there are a lot of GC related flags for the Java VM and I'm guessing it might be possible to tune this to at least decrease this problem. Here are my current Java Flags for MineCraft:
-Xmx3G -Xms2048M -XX:+UseConcMarkSweepGC -server -XX:+UseParNewGC -XX:PermSize=256M -XX:MaxPermSize=256M -XX:+OptimizeStringConcat -XX:+CMSClassUnloadingEnabled -Xnoclassg
There are many other GC related flags and also I'm not sure the above flags are correct or desired. Can anyone advice me on this problem and recommend me some other flags I can try to try to fix this problem?
Thanks a lot!
Author of RFTools, RFTools Control, RFTools Dimensions, Deep Resonance, Immersive Craft, CombatHelp, NICE, Aqua Munda, Ariente, XNet, Interaction Wheel, The Lost Cities, Lost Souls, Need To Breathe, EFab, The One Probe and co-author of Not Enough Wands and RF Lux.
YouTube Channel: https://www.youtube.com/channel/UCYMg1JQw3syJBgPeW6m68lA?view_as=subscriber
Support me at my Patreon page (http://www.patreon.com/McJty) or directly on my Paypal account (jorrit.tyberghein@pandora.be). Thanks
Author of RFTools, RFTools Control, RFTools Dimensions, Deep Resonance, Immersive Craft, CombatHelp, NICE, Aqua Munda, Ariente, XNet, Interaction Wheel, The Lost Cities, Lost Souls, Need To Breathe, EFab, The One Probe and co-author of Not Enough Wands and RF Lux.
YouTube Channel: https://www.youtube.com/channel/UCYMg1JQw3syJBgPeW6m68lA?view_as=subscriber
Support me at my Patreon page (http://www.patreon.com/McJty) or directly on my Paypal account (jorrit.tyberghein@pandora.be). Thanks
Yeah this is usually a graphics memory problem, this was going to be my recommendation. Great thinking!