Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large restricted areas causing server bootup freeze #1852

Open
JulianBooleanLau opened this issue Nov 20, 2024 · 0 comments
Open

Large restricted areas causing server bootup freeze #1852

JulianBooleanLau opened this issue Nov 20, 2024 · 0 comments

Comments

@JulianBooleanLau
Copy link

Description of Issue

Reproducible bug. When large sections are specified in restrictedAreas.yml, the server takes an incredibly long time to start up, sometimes not being able to start up at all. Always paused at the same location right after "Loaded 8 titles".

Version Information

Jobs: 5.2.4.5 SqLite
CMILib: 1.5.2.2 
Server: 2329 1.21.1-R0.1-SNAPSHOT
EssentialsX Economy Vault: 1.7.3-b131

Errors

[02:51:26] [Server thread/INFO]: ------------- Jobs -------------
[02:51:26] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: jobsr [5.2.4.5]
[02:51:26] [Server thread/INFO]: PlaceholderAPI hooked.
[02:51:26] [Server thread/INFO]: Connected to database (SqLite)
[02:51:30] [Server thread/INFO]: Loaded 8 titles
[02:54:38] [HikariPool-1 housekeeper/WARN]: [com.zaxxer.hikari.pool.HikariPool] HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=1m46s165ms768µs89ns).
[02:54:38] [Minepacks-Connection-Pool housekeeper/WARN]: [at.pcgamingfreaks.MinepacksStandalone.libs.com.zaxxer.hikari.pool.HikariPool] Minepacks-Connection-Pool - Thread starvation or clock leap detected (housekeeper delta=1m46s617ms481µs562ns).
[02:54:38] [MarriageMaster-Connection-Pool housekeeper/WARN]: [at.pcgamingfreaks.MarriageMasterStandalone.libs.com.zaxxer.hikari.pool.HikariPool] MarriageMaster-Connection-Pool - Thread starvation or clock leap detected (housekeeper delta=1m35s553ms885µs420ns).
[02:54:38] [luckperms-hikari housekeeper/WARN]: [me.lucko.luckperms.lib.hikari.pool.HikariPool] luckperms-hikari - Thread starvation or clock leap detected (housekeeper delta=1m46s630ms856µs955ns).
[02:54:38] [Server thread/WARN]: java.lang.OutOfMemoryError: Java heap space
[02:54:38] [Server thread/WARN]: 	at java.base/java.util.Arrays.copyOf(Arrays.java:3482)
[02:54:38] [Server thread/WARN]: 	at java.base/java.util.ArrayList.grow(ArrayList.java:237)
[02:54:38] [Server thread/WARN]: 	at java.base/java.util.ArrayList.grow(ArrayList.java:244)
[02:54:38] [Server thread/WARN]: 	at java.base/java.util.ArrayList.add(ArrayList.java:483)
[02:54:38] [Server thread/WARN]: 	at java.base/java.util.ArrayList.add(ArrayList.java:496)
[02:54:38] [Server thread/WARN]: 	at Jobs5.2.4.5.jar//com.gamingmesh.jobs.container.CuboidArea.getChunks(CuboidArea.java:95)
[02:54:38] [Server thread/WARN]: 	at Jobs5.2.4.5.jar//com.gamingmesh.jobs.config.RestrictedAreaManager.recalculateChunks(RestrictedAreaManager.java:354)
[02:54:38] [Server thread/WARN]: 	at Jobs5.2.4.5.jar//com.gamingmesh.jobs.config.RestrictedAreaManager.addNew(RestrictedAreaManager.java:56)
[02:54:38] [Server thread/WARN]: 	at Jobs5.2.4.5.jar//com.gamingmesh.jobs.config.RestrictedAreaManager.addNew(RestrictedAreaManager.java:48)
[02:54:38] [Server thread/WARN]: 	at Jobs5.2.4.5.jar//com.gamingmesh.jobs.config.RestrictedAreaManager.load(RestrictedAreaManager.java:322)
[02:54:38] [Server thread/WARN]: 	at Jobs5.2.4.5.jar//com.gamingmesh.jobs.config.GeneralConfigManager.reload(GeneralConfigManager.java:293)
[02:54:38] [Server thread/WARN]: 	at Jobs5.2.4.5.jar//com.gamingmesh.jobs.Jobs.reload(Jobs.java:879)
[02:54:38] [Server thread/WARN]: 	at Jobs5.2.4.5.jar//com.gamingmesh.jobs.Jobs.startup(Jobs.java:559)
[02:54:38] [Server thread/WARN]: 	at Jobs5.2.4.5.jar//com.gamingmesh.jobs.Jobs.onEnable(Jobs.java:773)
[02:54:38] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288)
[02:54:38] [Server thread/WARN]: 	at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202)
[02:54:38] [Server thread/WARN]: 	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109)
[02:54:38] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520)
[02:54:38] [Server thread/WARN]: 	at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:655)
[02:54:38] [Server thread/WARN]: 	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:604)
[02:54:38] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:757)
[02:54:38] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:519)
[02:54:38] [Server thread/WARN]: 	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:366)
[02:54:38] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1230)
[02:54:38] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:333)
[02:54:38] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer$$Lambda/0x00007f5e20d122b0.run(Unknown Source)
[02:54:38] [Server thread/WARN]: 	at java.base/java.lang.Thread.runWith(Thread.java:1596)
[02:54:38] [Server thread/WARN]: 	at java.base/java.lang.Thread.run(Thread.java:1583)
[02:54:39] [Server thread/INFO]: Loaded 53 protected blocks timers
[02:54:40] [Server thread/INFO]: Loaded 1481 custom item names
[02:54:40] [Server thread/INFO]: Loaded 84 custom entity names
[02:54:40] [Server thread/INFO]: Loaded 2 custom MythicMobs names
[02:54:40] [Server thread/INFO]: Loaded 122 custom enchant names
[02:54:40] [Server thread/INFO]: Loaded 46 custom enchant names
[02:54:40] [Server thread/INFO]: Loaded 16 custom color names
[02:54:41] [Server thread/INFO]: Update shops items icon section and use 'ItemStack' instead
[02:54:41] [Server thread/INFO]: Loaded 4 shop items
[02:54:42] [Server thread/INFO]: Update Breeder jobs gui item section to use `ItemStack` instead of `Item` sections format. More information inside _EXAMPLE job file
[02:54:42] [Server thread/INFO]: Loaded 4 quests for Rancher
[02:54:42] [Server thread/INFO]: Loaded 2 quests for Florist
[02:54:42] [Server thread/INFO]: Loaded 5 quests for Fisher
[02:54:42] [Server thread/INFO]: Loaded 5 quests for Woodcutter
[02:54:42] [Server thread/INFO]: Loaded 5 quests for Digger
[02:54:42] [Server thread/INFO]: Loaded 7 quests for Miner
[02:54:42] [Server thread/INFO]: Loaded 5 quests for Smelter
[02:54:42] [Server thread/INFO]: Loaded 5 quests for Farmer
[02:54:42] [Server thread/INFO]: Loaded 5 quests for Hunter
[02:54:42] [Server thread/INFO]: Loaded 9 jobs
[02:54:42] [Server thread/INFO]: Loaded 0 boosted items

Relevant Config Sections

restrictedAreas.yml

restrictedareas:
  area1:
    enabled: true
    multipliers:
      Money: 0.2
      Exp: 0.2
      Points: 0.2
    world: resource_world
    point1: -30000;-65;-30000
    point2: 30000;300;30000
    jobs:
    - all-0-100
  area2:
    enabled: true
    multipliers:
      Money: 0.2
      Exp: 0.2
      Points: 0.2
    world: resource_world_nether
    point1: -30000;-65;-30000
    point2: 30000;300;30000
    jobs:
    - all-0-100
  area3:
    enabled: true
    multipliers:
      Money: 0.2
      Exp: 0.2
      Points: 0.2
    world: resource_world_end
    point1: -30000;-65;-30000
    point2: 30000;300;30000
    jobs:
    - all-0-100

Relevant Plugins

No response

@JulianBooleanLau JulianBooleanLau changed the title Extreme start up times for large restricted areas Large restricted areas causing server bootup freeze Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant