killerprojecte / Folia

A fork of Folia working to support more bukkit plugins
GNU General Public License v3.0
66 stars 9 forks source link

Folia cpu Load #6

Closed upchui closed 1 year ago

upchui commented 1 year ago

Profile link

https://spark.lucko.me/

Description of issue

When I start a new server with DirtyFolia it has extremely high CPU usage when new chunks are being generated. However, when I use DirtyKaiiju, I don't experience such high CPU usage.

Is the problem already known?

Plugin and Datapack List

pl [06:35:05 INFO]: Server Plugins (0):

Server config files

user@mc:~/data/FoliaMC-Server$ cat bukkit.yml settings: allow-end: true warn-on-overload: true permissions-file: permissions.yml update-folder: update plugin-profiling: false connection-throttle: 4000 query-plugins: true deprecated-verbose: default shutdown-message: Server closed minimum-api: none use-map-color-cache: true spawn-limits: monsters: 70 animals: 10 water-animals: 5 water-ambient: 20 water-underground-creature: 5 axolotls: 5 ambient: 15 chunk-gc: period-in-ticks: 600 ticks-per: animal-spawns: 400 monster-spawns: 1 water-spawns: 1 water-ambient-spawns: 1 water-underground-creature-spawns: 1 axolotl-spawns: 1 ambient-spawns: 1 autosave: 6000 aliases: now-in-commands.yml

user@mc:~/data/FoliaMC-Server$ cat config/paper-global.yml

This is the global configuration file for Paper.

As you can see, there's a lot to configure. Some options may impact gameplay, so use

with caution, and make sure you know what each option does before configuring.

#

If you need help with the configuration or have any questions related to Paper,

join us in our Discord or check the docs page.

#

The world configuration options have been moved inside

their respective world folder. The files are named paper-world.yml

#

Docs: https://docs.papermc.io/

Discord: https://discord.gg/papermc

Website: https://papermc.io/

_version: 28 chunk-loading-advanced: auto-config-send-distance: true player-max-concurrent-chunk-generates: 0 player-max-concurrent-chunk-loads: 0 chunk-loading-basic: player-max-chunk-generate-rate: 30.0 player-max-chunk-load-rate: 100.0 player-max-chunk-send-rate: 75.0 chunk-system: gen-parallelism: default io-threads: -1 worker-threads: -1 collisions: enable-player-collisions: true send-full-pos-for-hard-colliding-entities: true commands: fix-target-selector-tag-completion: true suggest-player-names-when-null-tab-completions: true time-command-affects-all-worlds: false console: enable-brigadier-completions: true enable-brigadier-highlighting: true has-all-permissions: false item-validation: book: author: 8192 page: 16384 title: 8192 book-size: page-max: 2560 total-multiplier: 0.98 display-name: 8192 lore-line: 8192 resolve-selectors-in-books: false logging: deobfuscate-stacktraces: true log-player-ip-addresses: true messages: kick: authentication-servers-down: connection-throttle: Connection throttled! Please wait before reconnecting. flying-player: flying-vehicle: no-permission: I'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error. use-display-name-in-quit-message: false misc: chat-threads: chat-executor-core-size: -1 chat-executor-max-size: -1 fix-entity-position-desync: true lag-compensate-block-breaking: true load-permissions-yml-before-plugins: true max-joins-per-tick: 5 region-file-cache-size: 512 server-mod-name: DirtyFolia strict-advancement-dimension-check: false use-alternative-luck-formula: false use-dimension-type-for-custom-spawners: false packet-limiter: all-packets: action: KICK interval: 7.0 max-packet-rate: 500.0 kick-message: overrides: ServerboundPlaceRecipePacket: action: DROP interval: 4.0 max-packet-rate: 5.0 player-auto-save: max-per-tick: -1 rate: -1 proxies: bungee-cord: online-mode: true proxy-protocol: false velocity: enabled: true online-mode: true secret: xxx scoreboards: save-empty-scoreboard-teams: false track-plugin-scoreboards: false spam-limiter: incoming-packet-threshold: 300 recipe-spam-increment: 1 recipe-spam-limit: 20 tab-spam-increment: 1 tab-spam-limit: 500 threaded-regions: threads: -1 timings: enabled: true hidden-config-entries:

user@mc:~/data/FoliaMC-Server$ cat config/paper-world-defaults.yml

This is the world defaults configuration file for Paper.

As you can see, there's a lot to configure. Some options may impact gameplay, so use

with caution, and make sure you know what each option does before configuring.

#

If you need help with the configuration or have any questions related to Paper,

join us in our Discord or check the docs page.

#

Configuration options here apply to all worlds, unless you specify overrides inside

the world-specific config file inside each world folder.

#

Docs: https://docs.papermc.io/

Discord: https://discord.gg/papermc

Website: https://papermc.io/

_version: 30 anticheat: anti-xray: enabled: false engine-mode: 1 hidden-blocks:

Folia version

[06:39:35 INFO]: This server is running DirtyFolia version git-DirtyFolia-"a017762" (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: a017762 on ver/1.20) You are running the latest version Previous version: git-DirtyKaiiju-"5c50d5b" (MC: 1.20.1)

[06:38:21 INFO]: This server is running DirtyKaiiju version git-DirtyKaiiju-"5c50d5b" (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: 5c50d5b on HEAD) You are running the latest version Previous version: git-DirtyFolia-"ab7a479" (MC: 1.20.1)

Other

No response

killerprojecte commented 1 year ago

Have you tested Origin Folia?

upchui commented 1 year ago

Yes with the original Folia I have the same CPU usage as with DirtyKaiiju

killerprojecte commented 1 year ago

Test commit 76dc823 build? If this problem does not occur in this version, it should be caused by an earlier update

killerprojecte commented 1 year ago

Commit 6667e11 Try to find out what is causing this problem

upchui commented 1 year ago

I have tested it now and it looks good, thank you for fixing the issue.

Are there any plans to add a donation button for the project? :)

killerprojecte commented 1 year ago

Maybe, the current project is supported with my ❤ (just kidding)