Multiverse-Inventories

878k Downloads

Heavy Timings - Lag

Portanna opened this issue ยท 7 comments

commented

Using Multiverse-Inventories (Build 439) and the latest Multiverse-Core (Build 734)

PaperSpigot 1.11.2

image

image

commented

Can you see if there are any large player data files? That is the only reason I imagine there being for any abnormal latency.

commented

How big is the largest single file you can find?

commented

In the Multiverse-Inventories/players/ folder there are 108951 files, in the Multiverse-Inventories/groups/ folder there are 37502 files, in the Multiverse-Inventories/worlds/ folder there are more than 90000 files. The total number of files is around 260000.

The biggest file inside the /players folder is 59 bytes, the biggest file inside the /worlds folder is 46Kb, the biggest file inside the /groups folder is 46Kb.

The total size of the /players folder is 430Mb, the total size of /worlds folder is 558Mb, the total size of /groups folder is 172Mb.

image

I wonder if there is any way to delete old player data, because that would surely solve many of my problems (like speeding up backups).

commented

Yes there is. Any way to delete old player data?

commented

Well, you don't have any abnormally large individual files so that shouldn't be the issue. I'll have to build in some special timings to figure out what part of the world change stuff is doing this. Don't expect anything soon.

Also, until I build in a purge feature you could look into something like this.

commented

image

Still having issues with lag generated by this event, even after reducing the Multiverse-Inventories database to just 15000 inventories, with a total size of 390 Mb

image

The biggest file inside the /players folder is 96 bytes, the biggest in /groups is 49 Kb, the biggest in /worlds is 49 Kb.

commented

I have a strong suspicion that the only way to resolve this is to have some kind of profile caching so they're not being read from the disk every time you change worlds.