NoSpawnChunks
NoSpawnChunks
What does it do?
Ever wished you could run more on less? Multiworlds taking up all your memory and noone visits them very often?
The solution is now simple: install this plugin! This plugin does one thing, and one thing only, prevents spawn chunks being loaded into memory for all worlds on the server.
What does this mean in practice?
It means you can run a 2 person server on as little as 32mb ram (including 8-10 lightweight plugins). It also means that the memory impact from having 10+ worlds enabled at once on your server is reduced to an absolute minimum.
How to install
There is no configuration, it is literally drag and drop. Just install the plugin, stop the server, and do a full restart; the plugin is now enabled, and you should notice a dramatic drop in memory footprint.
There are no known errors to using this plugin other than increased server performance ;)
Plugin conflicts
Not so much a conflict - but if you are trying to run in a low-memory situation, any plugin that force-loads chunks will ruin that for you.
@Mayhem777
@amsedal
Sounds a possibility.
I'll see if I can resolve incompatabilies - it shouldn't unload chunks from a world unless there's no players though.
2012-05-27 21:47:22 [INFO] [NoSpawnChunks] Enabling NoSpawnChunks v0.3 2012-05-27 21:47:22 [INFO] [NoSpawnChunks] Enabled 2012-05-27 21:47:21 [INFO] This server is running CraftBukkit version git-Bukkit-1.2.5-R3.0-b2203jnks (MC: 1.2.5) (Implementing API version 1.2.5-R3.0)
I have v0.3 working on latest version of CB .. seems to work alittle to well .. I believe its stopping my BlockDoors mod from working correctly. It seems to stop the script from triggering my doors open. Also I think it messes with wireless redstone and/or solar redstone torches...
dono.. anyone with any ideas .. I m wondering if this is something to do with the Authors note: "plugin that force-loads chunks will ruin that for you" ?
Need Update:
25.05 15:11:51 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
25.05 15:11:51 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
25.05 15:11:51 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:517)
25.05 15:11:51 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
25.05 15:11:51 [Server] INFO at de.bananaco.nospawnchunks.NoSpawnChunks$1.run(NoSpawnChunks.java:42)
25.05 15:11:51 [Server] INFO at org.bukkit.craftbukkit.CraftWorld.getPlayers(CraftWorld.java:637)
25.05 15:11:51 [Server] INFO at java.util.ArrayList$Itr.next(ArrayList.java:791)
25.05 15:11:51 [Server] INFO at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819)
25.05 15:11:51 [Server] INFO java.util.ConcurrentModificationException
25.05 15:11:51 [Server] WARNING Task of 'NoSpawnChunks' generated an exception
Thanks! it works great. Stopped getting lag messages in console soon as I installed this.
YAY!! UPDATE!!
@owenftw
I may also. The PR here stinks.
:( I removed this and installed Ptweaks
Sooo, nobody's going to address the tickets, then?
This is an amazing plugin, even though the new version bugs out the older version works well.
Please can you update this :P
@Crazy
Any clue if older versions work?
@NoelleMinuet
no new release yet. no clue when/if there will be one.
Has there been a fix for the animals yet?
@ThaSourceGaming
Ditto @thesourcegaming
Btw when i go near any Animals, NPC's, Monsters they just disapear... So thats one bug!
Keep this up to date
@nitr0burn
@Jadedwolfs
I know now and am working on a fix :)
@nitr0burn
I get the same error. So I just scrapped the plugin till a fix was released. Not sure if B knows.
Seems to keep my inactive worlds from wasting memory, but saw this in the log:
2012-01-09 13:43:16 [INFO] XXXXX lost connection: disconnect.quitting
2012-01-09 13:43:16 [INFO] [WorldInventories] Player XXXXX quit from world: dw
2012-01-09 13:43:16 [INFO] [WorldInventories] Saving inventory of XXXXX
2012-01-09 13:43:16 [INFO] [MCBans] XXXXX has disconnected!
2012-01-09 13:43:19 [SEVERE] java.util.ConcurrentModificationException
2012-01-09 13:43:19 [SEVERE] at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819)
2012-01-09 13:43:19 [SEVERE] at java.util.ArrayList$Itr.next(ArrayList.java:791)
2012-01-09 13:43:19 [SEVERE] at net.minecraft.server.ChunkLoader.a(SourceFile:122)
2012-01-09 13:43:19 [SEVERE] at net.minecraft.server.ChunkRegionLoader.a(SourceFile:84)
2012-01-09 13:43:19 [SEVERE] at net.minecraft.server.ChunkProviderServer.saveChunk(ChunkProviderServer.java:152)
2012-01-09 13:43:19 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.unloadChunk(CraftWorld.java:163)
2012-01-09 13:43:19 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.unloadChunk(CraftWorld.java:137)
2012-01-09 13:43:19 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.unloadChunk(CraftWorld.java:133)
2012-01-09 13:43:19 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.unloadChunk(CraftWorld.java:129)
2012-01-09 13:43:19 [SEVERE] at de.bananaco.nospawnchunks.NoSpawnChunks$1.run(NoSpawnChunks.java:43)
2012-01-09 13:43:19 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
2012-01-09 13:43:19 [SEVERE] at java.lang.Thread.run(Thread.java:722)
Never saw that before adding this plugin. Plugin list:
13:51:41 [INFO] Plugins: PermissionsEx, WorldInventories, Permissions, Multiverse-Core, Essentials, Spout, WorldEdit, LagMeter, EssentialsChat, Modifyworld, BananaCakeTown, mcbans, WorldGuard, SkylandsPlus, OKB3, XrayInformer, NoCheat, Multiverse-Portals, EssentialsSpawn, NoLagg, Register, VanishNoPacket, LogBlock, Factions