After pruning files trying to figure out why server usage is so high even during idle and no players on, I discovered that the Mineshaft.dat file was the source of it.
Before deletion the file was 839KB vs 14KB for the next largest file, Strongholds.dat.
As for process usage before deletion the server will run at 60% usage on idle, after 20%. Running on a dual core@3GHZ that's a whopping 2.4GHZ of process generated permanently from the single file.
I've tested the server file and pruned the .dat file on another of my computers (x6core) and it showed the same results.
I may be wrong but I don't think the Mineshaft structure data file shouldn't be generating 2/3rds of a server's processes.
Attached Image is a before and after of resources while on idle.
Not sure what causes this (Process loop?) but I hope this report is helpful.
Linked issues
is duplicated by 1
Attachments
Comments 43
I have an issue with mineshaft.dat as well, It's not using all my CPU, but is eating my RAM. Deleting the file will help for a while, but it builds up again.
I have searched for a solution to my high RAM issue for a while. I started to believe that 1.6.4 contained a memory leak from how often I've seen it said. But after I deleted the mineshaft.dat file, the high RAM usage issue went away. My mineshaft.dat file was 18 MB in size due to the great size of the map I host. Additionally, doing a /save-all does not lock the server up for 20 seconds anymore. That issue started with 1.6.4 as well and was resolved with this fix. I thought I'd share my experience with this bug. Thanks.
Problem observed in 1.7.2.
Ok, I've broken down and decided to investigate if I should delete my dat files because Mojang has apparently abandoned us. I know, that's hyperbole, but it sure feels that way.
I have a 11MB mineshaft.dat file. It's been growing for weeks. The /save-all is taking longer and longer every day. Yesterday, the /save-all took 45 seconds. Today, it's up to 50 seconds. I've seen it spike up to 80 seconds.
So I'm going to bite the bullet and delete the mineshaft.dat file. I feel very strongly that this is not something I should have to do. I don't know what the file is for. I have a feeling it isn't important since there are no specific mobs that spawn in mineshafts. But in the future, if mineshaft mobs ever come along, these old mineshafts won't have them.
With no patch on the horizon, it's the only option left. I hope the save spikes at least subside.
I don't know. I haven't played in years, because you didn't respond for years. Maybe test it before marking it as resolved then asking if it's resolved?
@unknown, are you sure? I don't think mineshaft.dat is still created in 1.13; I vaguely recall structures being stored in individual chunks instead of all of the separate structure files which avoids having that whole thing loaded... but I'm not 100% sure.
I agree 100% My server was always on 100% usage no matter what plugin or slots filled I had. I did some searching with my host's live support(getnodecraft.net) they were a great help.With them, I found out Mineshaft.dat was the problem. Now I have to delete it every once in a while to make it less laggy.