Small Freezes on Sever

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

clayton wilson

New Member
Jul 29, 2019
14
0
0
On our MindCrack server, the other players and I have been getting random 3 second freezes about every minute or so. After those 3 seconds everything goes back to normal. Often times, after getting so many of the little freezes, the game will just crash all together. Besides this performance is fine.

Most of us are using Macs by the way. In fact, I think (not sure) everyone who is getting these freezes is on a mac.

What can I do to limit or fix this?
 

dedbbs

New Member
Jul 29, 2019
28
0
0
Does this happen completely randomly or is it more likely to happen if the server has been running longer? When you say the game crashes, does the server itself appear to go down for a short period, be briefly unavailable for connections, and then appear to recover? Does the server crash entirely and require a reboot? Or is it just an issue with the game clients? When it happens, does it happen to everyone at once, or just one person at a time? Do the PC/Linux users on your server ever have similar issues or related issues?

Sorry for all the questions, but it could be any number of possibilities. I'm unsure of how to view your running processes on a Mac, but if it happens often enough, you might want to leave a process monitor open and watch your top CPU consuming processes when it happens.

-Is Java's memory use spiking? If it is hitting its limit, you can allocate more RAM for FTB through the launcher.

-Is CPU use jumping up and nothing is going on in game to justify it? The version of the Java virtual machine you guys are running may just have a certain bug that causes this. Update if possible. If not, look into seeing if you can downgrade to a version a few months older than the one you currently run.
-Is another program suddenly jumping up on either measure and interfering with Minecraft? Stop the offending application!

-Does absolutely nothing register under CPU or memory? You may need to update your graphics drivers if that's a possibility. It could also be a problem with the connection or it could be a problem with the server. If it's a connection issue, a quick fix is to lower your render distance in your game client. This can smooth out some issues caused by connection problems. You also could modify the server.properties to change the max chunk rendering distance to a lower number than the default 10 if it seems that this is the cause.

If this doesn't fix or you don't like these options, the last thing I can think of of the top of my head is that you also may consider using the client mod OptiFine - in addition to allowing you to change advanced graphical settings, it also lets you specify how chunks are loaded from the server and also tweak a number of other performance and quality-realted settings that in some situations can completely fix or at least alleviate problems related to lag, low FPS and stuttering.

Good luck, whatever happens, and I hope I've helped .
 

clayton wilson

New Member
Jul 29, 2019
14
0
0
It is more likely to happen if the server is running longer, but it seems to vary more upon how long a particular user has been playing, however this is hard to isolate. When the game crashes, the sever itself is completely fine. The crashes do not happen for everyone at once either, just a particular person. I am almost certain this is only happening for mac users and not windows users at all.

The server window does show occasional large spikes, but they do not seem to correlate with the freezes. I will try the Java recommendation however.

Most players render distances are already lowered to normal. I don't understand the question "Does absolutely nothing register under CPU or memory?" I do not know what you are referring to.

I looked up optifine. I will try it, it looks like it may help. We are on MindCrack 8.1.1 by the way. For some reason Macs Always crash immediately on 8.2. I'm wondering if this version also is causing the crashing?

Thanks for reply and thanks for the help. I really appreciate it and hope this answers most of your questions.
 

dedbbs

New Member
Jul 29, 2019
28
0
0
Sorry for the confusion. Apparently on OSX the program I'm asking you to run is called Activity Monitor. This allows you to keep track of which programs are using what percentage of your CPU and memory. Running this concurrently with Minecraft will let you see if there's increased CPU or memory use going on when these issues crop up. That's what I meant by register. Run Activity monitor while playing Minecraft and see if anything is changing when this happens.

If nothing registers as happening on your computer in Activity monitor, then the problem is either in the way MindCrack's combination of mods interact with the JAVA Virtual Machine for OSX (which if this was the problem could possibly be fixed by using an older or newer version of Java, as I suggested in the prior post) or the problem is on the server you're just feeling the consequences on your computers. It's possible the server doesn't have enough RAM allocated based on how people are using it, and this is just the manifestation of that. You may want to allocate a bit more RAM to the server in this case. You could also try to find ways to reduce the amount of RAM your server needs - if people are using chunk loaders or world anchors or running lots of quarries, ask them to disable them for now and see if the problem disappears. If it does, gradually reintroduce them unt il you find a happy balance. If people are using a lot of BuildCraft pipes to move items, see if disabling them temporarily fixes the issue. If it does, look into replacing them with routers from the Factorization mod and/or Tesseracts from Thermal Expansion - those seem to cause a lot less lag on my server. You also may want to consider replacing BuildCraft energy pipe with Thermal Expansion's Redstone Conduit - it also seems to cut down on lag. Mob spawning also eats up a lot of CPU and memory - you may want to set the game on peaceful when you can.

I've noticed too on my server that a lot of times other people are often feeling the consequences of what one or two other people re doing and so lag spikes seem random if you don't immediately ask everyone what they're doing when one happens. If people are flying or using powered rail to go everywhere quickly and often, this can cause all kinds of lag - ask them to use linking books from Mystcraft instead and use a link modifier to enable intra-linking and following on the books - these are much faster and don't really cause noticable spikes.. If one person is exploring ungenerated territory then this can cause enormous lag spikes. I like to go on expeditions with everyone on the server when we're going to generate new territory, that way everyone is causing their own lag and we get to have fun in the process. And while linking books from Mystcraft can solve problems, the new worlds that Mystcraft generates can make some servers stop and kick everyone off until it finishes the initial world generation. Especially worlds that use the "Cave World" generation option.

You can also try running the "/debug start" command, allowing a few minutes of regular gameplay to pass, and then running the "/debug stop" command. You'll get a basic reply in the console saying how many ticks you got in what time. Divide the number of ticks by the number of seconds to get the ticks per second. The ideal is 20. Nobody gets 20, but that's the ideal. If it's extremely low, though, like 2 or 3 ticks/second, then something is generating a lot of lag on your server. You can view a more detailed output of your debug in your server's /debug folder. Looking at it can sometimes help you pinpoint where lag problems are coming from.

I know this reply was everywhere, but I'm just trying to think of anything that may help.

Oh, one other thing. I had a user who had this exact same problem and the culprit was Forestry backpacks. This is a long shot, but do you guys use those a lot? Try putting them in a chest and walking away and see if your issues suddenly disappear. It's definitely not something I would think of, but I know it solved the issue you're describing with someone else.