UserMap and memory issues?
L4BORG opened this issue ยท 7 comments
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
>ver
[20:04:38 INFO]: This server is running CraftBukkit version git-TacoSpigot-"758e09a" (MC: 1.8.8) (Implementing API version 1.8.8-R0.2-SNAPSHOT)
>ess version
[20:05:35 INFO]: CONSOLE issued server command: /ess version
[20:05:35 INFO]: Using locale en_US
[20:05:35 INFO]: Essentials reloaded 2.0.1-b370.
usermap.csv was only like 25kb and usermap1044003661783068220.tmp.csv was 7,7Mb with 167k usernames/uuids... updated to latest Ess and removed all usermap files, can't wait to see what happens now... :0
Also this was not the issue with "old" essentials, the one used before 1.9 came, https://www.spigotmc.org/resources/essentialsx.9089/update?update=67412 still worked fine iirc...
Cache max is controlled by this value:
Default is based off of allocated heap: https://github.com/drtshock/Essentials/blob/5187be5d0264622b7fec36d77b2dd1c309be6e16/Essentials/src/com/earth2me/essentials/Settings.java#L1153
Manually set the value or allocate less heap.
And if value is not set by config...
long count = Runtime.getRuntime().maxMemory() / 1024 / 96;
return config.getInt("max-user-cache-count", (int) count);
right?
We're running this on server with 6G of mem and between 100 and 250 (peaks only) players.
max-user-cache-count: 10000 would be a good start I assume?
Everyone else is using default? Because I've only found... https://www.reddit.com/r/admincraft/comments/2gspb7/does_anyone_elses_server_that_uses_essentials/ (1yr ago lol)
Edit: oh ok.