#folia-help
1 messages · Page 11 of 1
ok
No s at the end of thread.
nope
hmm. that also didn't seem to have worked, theres only one thread in the report
/spark profiler start --thread *
yeah thats correct. maybe it doesn't work in the Folia build? never tried it
Well I write this command and it says it's running
You're not using a VPS or a docker container or anything are you? It's a bare metal Debian install on the 7950X?
can g1c1 handle that much ram?
I mean, idk what that gen thing is
but my guess is that the gen system is just saturated
I also tried to allocate less and had the same problem. The only problem I have with Folia now is the generation of the chunks
prevent people from moving for a minute and see if the chunk system catches up 😄
but, idk, other people aren't reporting this issue, it's well documented that pregen is pretty much essential too
all the info I'd need and sus factors are unanswered so 🤷♂️
I remember doing tests with 250 bots and about the same gen rate on much weaker hardware, bit weird that it now suddenly locks up so much
How can I make a pregen 30 million blocks? I just don't have enough memory
you don't need to pregen 30 million blocks
you just need to pregen enough that not everybody is generating chunks as they move around
also, do you really need a world seven times larger than the earth?
On my server, players move all over the map and far enough away from the spawn
The bots are standing still
And with them standing still for a bit, like 10-15min or so, you still can't generate new chunks?
Just you, not all the bots.
I can, but it requires a long wait and if they were players, they simply would not be able to move around the server after the reboot
If the server reboots they'll be standing in an area where chunks are generated.
So the server doesn't need to generate new chunks for all of them.
If you have 150 players and all of them fly around trying to generate chunks that's definnitely gonna make stuff unhappy.
Are the bots walking or flying?
They don't fly and they don't walk
You start the server, have bots join, they teleport to one spot, and then they just stand there and do nothing?
They are scattered randomly across the map in a radius of 100,000 blocks
Just once? Or continually?
Once
keep looking at the gen rate thing
like, I'm placing bets that you just saturated the system
Now I'm alone on the server and the gen rate is 300
Yeah, part of the issue with using bots as a test.
Real players talk, not teleport.
Then when they get there and logout, they're on chunks that are generated. So when they login again they aren't going to new areas.
They aren't generating new chunks, just loading existing ones.
keep watching it
So if you gave 150 bots join and teleport at the same time you're basically hosing the system.
idk how the system handles cancelling existing chunk gen requests, theres a chance it doesn't too well, idk
see if it drops over time and shit loads in
or, try restarting the server and walking around lone
It's not getting any smaller
y not pregen
They've said several times.
It's too large of a map.
(For them)
I made a pregen map of 10 thousand blocks and spawn there bots, but the problem remained
not again this bug
If nothing else you should update. You're a few commits behind.
yea the lastest 💀
from version 1.19.4
Oh.
if i open for 10 time
6 time it closed for that bug
now 1.20.1
2 times
💀
tps should be fine but i hate the bug
The 1.20.1 build you're on isn't the most recent commit.
You should try to update.
alr
That's code from last week.
what you mean
Your build does not have the most recent code.
You need to update.
hmmm what you mean recent code
From the Folia repo.
does the lastest commit have any change?
Well your build doesn't have the latest code, so yes, there are changes.
I dont understand your question
Nevermind that, it's just some of my unusual questions
good gaming chair
Don’t shitpost in help channels please.
sorry
anyone know why when i try to run a gradlew build i get a 261 byte jar file?
i get errors when running gradlew applypatches
Task :getPaperUpstreamData FAILED
FAILURE: Build failed with an exception.
im pretty sure that isnt the entire error
[10:32:15 ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #467 centered at chunk [218, -831] in world 'world' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1695) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1533) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:360) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:385) ~[folia-1.20.1.jar:git-Folia-"6b978f2"
]
at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.Entity.dH()" because "entity" is null
at io.papermc.paper.chunk.system.entity.EntityLookup.getEntityStatus(EntityLookup.java:375) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at io.papermc.paper.world.ChunkEntitySlices.updateStatus(ChunkEntitySlices.java:191) ~[folia-1.20.1.jar:?]
at io.papermc.paper.chunk.system.entity.EntityLookup.chunkStatusChange(EntityLookup.java:316) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at io.papermc.paper.chunk.system.scheduling.NewChunkHolder.changeEntityChunkStatus(NewChunkHolder.java:1263) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at io.papermc.paper.chunk.system.scheduling.NewChunkHolder.handleFullStatusChange(NewChunkHolder.java:1372) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at io.papermc.paper.chunk.system.scheduling.ChunkHolderManager.processPendingFullUpdate(ChunkHolderManager.java:1543) ~[folia-1.20.1.jar:git-Folia-"6b978
f2"]
at io.papermc.paper.chunk.system.scheduling.ChunkHolderManager.processTicketUpdates(ChunkHolderManager.java:1521) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at io.papermc.paper.chunk.system.scheduling.ChunkHolderManager.processTicketUpdates(ChunkHolderManager.java:1474) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at io.papermc.paper.chunk.system.scheduling.ChunkHolderManager.tick(ChunkHolderManager.java:905) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
at net.minecraft.server.level.DistanceManager.purgeStaleTickets(DistanceManager.java:63) ~[?:?]
at net.minecraft.server.level.ServerChunkCache.tick(ServerChunkCache.java:442) ~[?:?]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:793) ~[?:?]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1676) ~[folia-1.20.1.jar:git-Folia-"6b978f2"]
... 6 more
anyone know why this would happen?
https://controlc.com/22cd6230 this is a paste of the stacktrace
Task :getPaperUpstreamData FAILED FAILURE: Build failed with an exception. * What - 22cd6230
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
Oops
happens on paper too
bros it keeps crashing randomly
there's no plugins in the stack trace just minecraft and folia
no plugins complaining before the crash
is it better if i make a github issue?
latest folia commit 6b978f2
made an issue https://github.com/PaperMC/Folia/issues/126
i went back to commit 801cff1 instead of latest to see if that stops the crashes
seams to have fixed it?
I assume you're joking.
A pi can barely run a regular paper server let alone the additional demands folia has.
yes, a pi can barely handle the demands of a minecraft server, folia has extra requirements on top of that to function okay-ish at a minimum
software is not going to fix hardware limitations
Folia demands more not less. It spreads load while also contributing to more overall load.
Also we are going to blame a Pi because it's a super awesome device for much lower demands, not something as intense as a MC server
getting this error when attempting to build folia
message.txt by @calm fable: https://pastes.dev/gW697Dsh3D
could some kind soul please direct me as to how to proceed
I was trying to build Folia, but after i ran "./gradlew applyPatches", it went wrong
- What went wrong:
Execution failed for task ':clonePaperRepo'.
io.papermc.paperweight.PaperweightException: Command finished with 128 exit code: git -c commit.gpgsign=false -c core.safecrlf=false fetch --depth 1 origin a226f44b452c8c75ca077b492ba4a957629ba489

I m sure i can connect to Github
I try the method from https://github.com/PaperMC/paperweight/issues/50
But it still doesnt work
assuming you are on windows, you should clone the repo in the root of a drive
thanks
bruh i cloned again from github to C:\ but it crashed again
- What went wrong:
Execution failed for task ':clonePaperRepo'.
io.papermc.paperweight.PaperweightException: Command finished with 128 exit code: git -c commit.gpgsign=false -c core.safecrlf=false fetch --depth 1 origin a226f44b452c8c75ca077b492ba4a957629ba489
send the full output
PS C:\Folia> .\gradlew applyPatches
Task :clonePaperRepo FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':clonePaperRepo'.
io.papermc.paperweight.PaperweightException: Command finished with 128 exit code: git -c commit.gpgsign=false -c core.safecrlf=false fetch --depth 1 origin a226f44b452c8c75ca077b492ba4a957629ba489
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 21s
1 actionable task: 1 executed
Also my former 1.19.4 Folia is running on my server with 16 cores and 20GB but it crashes every 30 minutes. I havent changed Paper config. Should i just updated it to the latest version of Folia or configure something without updating?
( it crashes without any error.. )
1.19.4 had some crash issues that are fixed now
it sounds great, but now i cant build Folia 😦
nvm happens on latest folia commit and that old one
anyone know whats causing all these missing symbol errors, apologies for my ignorance.
message.txt by @calm fable: https://pastes.dev/qrV7ttCcpb
ok thank you!
@daring nimbus i cant seem to find that in the documentation is that just gradlew applyapipatches?
applyPatches
make sure you don't have an ide open or anything like that, just run that on the terminal alone
i have done that
it still errors
let me try a fresh clone
Task
applyServerPatches
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
Task :applyApiPatches
Creating Folia-API from patch source...
Applying patches to Folia-API...
...
Patches applied cleanly to Folia-API
Task :applyServerPatches
Creating Folia-Server from patch source...
Importing 25 classes from vanilla...
Importing 0 classes from library sources...
Applying patches to Folia-Server...
Applying: Build changes
Applying: MC-Dev fixes
Applying: Threaded Regions
Applying: Max pending logins
Applying: Add chunk system throughput counters to /tps
Applying: Make CraftEntity#getHandle and overrides perform thread checks
Applying: Disable mid-tick task execution
Applying: Throw UnsupportedOperationException() for broken APIs
Applying: Fix tests by removing them
Applying: Work around https://github.com/PaperMC/paperweight/issues/194
Applying: Require plugins to be explicitly marked as Folia supported
Applying: Lag compensate block breaking
Applying: Prevent block updates in non-loaded or non-owned chunks
Applying: Block reading in-world tile entities on worldgen threads
Applying: Skip worldstate access when waking players up during data deserialization
Applying: Do not access POI data for lodestone compass
Applying: Synchronize PaperPermissionManager
Applying: Fix off region raid heroes
Applying: Remove unused skyLightSources
Applying: fixup! Rewrite chunk system
Applying: Do not read tile entities in chunks that are positioned outside of the chunk
Applying: fixup! Rewrite chunk system
Applying: Sync vehicle position to player position on player data load
Patches applied cleanly to Folia-Server
BUILD SUCCESSFUL in 36s
4 actionable tasks: 4 executed
ok worked that time!
sigh java -Xms32000M -Xmx50000M -jar ./server.jar 1 ✘ samos@rabbitng
Error: Unable to initialize main class org.bukkit.craftbukkit.Main
Caused by: java.lang.NoClassDefFoundError: joptsimple/OptionException
forget that it was just a path issue
y is ur xms and xmx different
and y so much ram
what gc are u using
asking bc i keep crashing using shennandoah but i only tried 110gb i should prolly try like 60gb
on g1 tho u shouldn’t go above like 16 i thiught
only shennandoah
can u give it like 20+
16 gb is a small-medium paper server
the aikar blog tho
folia can handle hundreds of players (i dont think its limit has actually been reached on good hardware)
wouldn’t u get a massive lag spike on gc
g1 copes with large heaps just fine
The caveat is that large heaps is literally just a waste of memory for most MC servers
ic
was there a reason the tests used shennandoah or was it just to experiment with things
afaik they wanted to test generational shen
Yo how do I build the 1.19.4 jar instead of the 1.20.1 one?
you checkout the 1.19.4 branch assuming there is one
There's an example on jd.papermc Im just abit confused what to do
Oh nvm
assuming there is a branch for that called that
does anyone know how to use coreshader?
Nothing to do with folia
where i can download folia?
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
?
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
You have to build it from source. Use the instructions on the Paper repo, as Folia is a fork of Paper.
reclone
[15:40:08 INFO]: Server Health Report
- Online Players: 11
- Total regions: 9
- Utilisation: 149,0% / 400,0%
- Load rate: 77,53, Gen rate: 65,20
- Lowest Region TPS: 19,93
- Median Region TPS: 20,00
- Highest Region TPS: 20,00
Highest 3 utilisation regions - Region around block [w:'world',-393,80,407]:
100,0% util at 3 690,51 MSPT at 19,93 TPS
Chunks: 289 Players: 2 Entities: 8 879 - Region around block [w:'world_nether',7,80,7]:
20,5% util at 10,26 MSPT at 20,00 TPS
Chunks: 0 Players: 2 Entities: 8 560 - Region around block [w:'world',293767,80,-58809]:
9,7% util at 4,84 MSPT at 19,93 TPS
Chunks: 287 Players: 1 Entities: 66
?
Can you, please, help me with this error?
Hey, can the Geyser plugin be used in Folia?
ask geyser
Okay
Help?
Yes
did you apply patches
(if it doesnt work geyser standalone will work + its much more efficient imho)
I have it on my test server. Not the standalone, but the Geyser-Spigot and it works fine.
will i be better of with few dedicated cores or many virtual cores?
Folia is a fork of Paper that adds multi-threaded region support. Many plugins will require updating to support Folia. There is no ETA for publicly available builds.
For more information:
Folia will:
- NOT be backported to older versions <1.19.4
- NOT be merged into Paper
- NOT be ported to Fabric nor Forge
Stay tuned to #announcements for any further info about releases.
At least 16 cores, 32 threads
The things intended for running on bare metal hardware
^
You shouldn't run Paper on a VM either, FWIW.
But you can use a lot less cores with Paper.
hi
Do you need help with Folia?
i need help with folia
then you should say what you ned help with

because why the FUCK does viaversion have folia support
plugins have to specify that they work on folia for folia to even attempt loading them
viaversion is trivial to port to folia
I think it did like 2 things with the scheduler and does everything else at the packet level
What folia testing servers?
are u trolling
I think there was only one test server when it was first made public, pinned message said it hit 327 players
Other people have run their own, some for testing and others for trying to actually just run a server
Pretty sure they got more but no idea
how can i use folia or download an unofficial version
⚠️ Please do not share any links to builds of Folia at this time. We are intentionally not providing easy to find/obtain downloads right now - when the time is right, everything will be available through official PaperMC distributions.
Read the build instructions on the Paper repo, do them on Folia
same
I fix it, just use Java 17 instead of 20
how do I configure folia?
Where is this from BTW?
Do I just add -XX:ConcGCThreads=n to startup? Then change n = number of available threads?
this is from the github
I'm also reading this https://docs.papermc.io/folia/faq
Those are paper config settings. Chunk system workers, etc.
How many cores do you have? What CPU?
I have 6 available threads but I guess folia is only using 1 thread/core
I'm trying to test folia in a 6 threaded server to do some research.
6 threads is going to be slower than Paper
I understand but I'm only doing some tests
You’d have to experiment with the ConcGCThreads flag
Still pretty new so we don’t have a lot of data yet.
Can’t say I’d recommend doing any tests beyond seeing if a plugin will start if you only have 6 threads though.
this area should be 600% right since I have 6threads?
currently testing the vanilla aspect only. I'm only using Geyser to allow bedrock users to join.
hey
how i disable the dragon sound?
like when someone killed a dragon
my whole server hear that
how do I show this?
edit: is this done by a plugin?
if that's an older screenshot, it was probably just an older variant of the other commands
.
First i would like to thanks everyone in here for their incredible work, dedication and motivation 🙂
I have this question in my mind: is it possible to lower the distance used for each thread ?
(i use a AMD EPYC 9754 as a test for few days, 128 cores with 256 threads)
if i'm not clear enough:
how big the word is splitted up in a CPU ? like every how many chunk / distance will it use a new thread, and how to make so this is as low as possible ?
It’s not really configurable and Folia does it automatically.
oh okey thanks, when you say automatically, is there a way to know how he does that choice, it has to follow a rule / a guideline to do these choices.
Like if there is more thread will it split them even more or no
It’s based on player distance. They just sort of dynamically combine when players get close.
yes and based on my testing it will group them on a thread every few thousand of blocks (5k x 5k)
is there a documentation about this process ? i wasn't able to find any about that in detail
all of the documented stuff is in the linkables
the region size is pretty high but that's because it's finding a balance performance wise
while smaller would be ideal for isolation, it creates havock on the system used for actually managing the regions
The server is using your CPU cores/threads for GC, JIT, networking, chunk IO, and chunk generation so there are none left to have multiple regions ticking in parallel
I see, so it's automatic. Glad to know, thank you!
Now I know why 16threads or core is recommended.
still configurable in paper-global yml
is there a way to show each individual region profiler when using spark profiler ? --threads * still shows Region Scheduler Thread (xN)
I doubt Spark would have a way to know which region a thread is ticking
I just want to show the data of each thread in the thread pool
pretty sure the gui has an option for whether to merge thread pools
but it wont be much use anyways, it's a thread pool not a thread per region
--thread * --not-combined is what you'd use, see https://spark.lucko.me/docs/Command-Usage
how do I build folia and where is the compiled jar file
Use the instructions in the Paper repo to build it.
I did but it builds a file with 250 bytes
with no manifest
let me try it again
nvm it worked
tysm
Folia use one core or all 16 cores?
Because i have 10-13 tps on each region with 30 people online
Do you have enough of hardware to support it? If so, provide a spark report.
Otherwise, no one can really help you
Yeah, i installed server on xeon E5-2697A v4, it should be enough
That is quite an old cpu
that thing can barely run modern Minecraft lol
So which processor would be ideal for running Folia?
Modern processors with >= 16 physical cores seems to be the ideal minimum
Dpeends on how many players you're expecting
I expecting 70 players in total
Then Paper is the right choice for you; unless you have so much money you can afford a Ryzen 5900+ for your 70 player server.
even then, your player HAS to be very far apart in order to take advantage of Folia
by very far I mean atleast 1000 blacks away from each other
May i ask, how far folia is away from a usable state, or has it already reached that?
Paper will be the right choice for 70 player server imo. Using Folia will require more resources as it has more overhead
Unless there's a very specific need for Folia, eg. each player building their own lag machine
It's quite stable for vanilla gameplay as we already have some 1000+ test and there was no major issues. It's a matter of finding rare bugs and optimize how it operates.
Do you guys really get 70 players on paper without compromising gameplay with optimizations? 🤔
Compromises will have to be made at 70 players, unless you have a REALLY good hardware or a specific usecase eg. minigames, short-lived events
well the 1k players was unplayable
imo: you'll need folia to get more than 30 players without destroying the view/sim distance & mobcap
what?
how much has minecraft changed jesus
i used to get 100-ish players on a vanilla server working fine on 1.8
realistically, paper can't handle more than 20 players if there's a lot of farms & no compromises
and the hardware wasnt even anything special
that was all due to bad planning
I mean 1.8 has like 10% of gameplay feature of current Minecraft
Sculk sensors go brr
?
current minecraft is just 1.8 with a million times more blocks
1.8 was almost 8 years ago. minecraft has recived continuous updates during that time. a lot will change in any project if it keeps getting big updates for 8 years
they have clearly messed up performance wise somewhere else
they have added far more than just blocks
name something
dont say elytra because i can probably run a 1.9 server the same too
not much has changed that would cause more lag
i dont get how pillagers mean you now cant run a server on normal hardware
so its just bad code now
You’re talking about a version of Minecraft that is fucking 12 versions ago
12 versions and yeah about 12 years too
the entire datapack system to dynamically add or change certain game content such as structures, world generation, block/item behavior, and a lot more
alr more like 8
I mean to be completely fair, they could've optimized the game more. All in all, it's about features vs performance.
its clear they have messed up somewhere
1.12 -> 1.13 had a huge performance penalty
i mean how have they still not fixed the client yet, optifine is legit a given now
I mean they’ve achieved their goal perfectly. “Messed up is relative”
the game has gotten more complex than you seem to be able to belive though
people take it for granted to literally install optifine to play the game
Optifine is also outdated
you cant run a client and even meet your monitor refresh rate on a great computer without it
Uhhh I play on vanilla and I get 60fps just fine
yeah true you have fabric and sodium and that bull
When’s last time you check Minecraft lol
Fr lmao
Although I'm unsure how this conversation is related to Folia
we were talking about the fact somebody cant run a 30 player paper server now on a normal machine
And folia help for that matter
thats horrendous
Yeah that has nothing to do with folia
ah you lack the context
imo: you'll need folia to get more than 30 players without destroying the view/sim distance & mobcap
I mean yeah I saw that.
This channel is for asking for help with folia. It’s not for ranting about how bad the mojang developers are
i mean with a really bad single threaded server with a laptop with a pentium cpu and 4gb of ram allocated i was able to get 100ish players in the past just fine, didnt even take a toll on my network
ok? Folia is for being able to play Minecraft though, not just join a server that provides keep alive packets LUL
Using the same argument, Windows 98 used to be able to run on hardware with barely any processing power and ram
Look where we're at today.
windows 98 had no functionality
Applications require more resources as time goes on, and resources become more affordable too.
Welcome to the world of tech
Man it’s ironic you say that. A certain Minecraft 1.8 also has literally nothing compared to latest
yeah but even windows 7 is modern enough and it made sense, more features more hardware demand
Newer technologies and more powerful hardware -> companies caring less about performance
And you can still run a modern Linux on old hardware without issues
fully featured version of the game it was
ye like what
litteraly everything?
1.20.1 is the only fully features version of Minecraft
Broski I already answered you. Stop trolling
Fucking clown
what new concept was even added to the game since 1.8
...
you have entities, blocks, ?
..???
Also “fully featured” is a relative statement. Fully featured compared to what?
are you stupid
w/e, I ignored that troll lmao
Sorry if this is a dumb questions
Where can I download the server files? (Or how do I build it)
Use Paper's readme instructions but with the Folia repo
BukkitRunnable's runTaskLater is broken. Is there any other method to run a task after a few seconds?
Read the documentation
Folia is a fork of Paper that adds multi-threaded region support. Many plugins will require updating to support Folia. There is no ETA for publicly available builds.
For more information:
Folia will:
- NOT be backported to older versions <1.19.4
- NOT be merged into Paper
- NOT be ported to Fabric nor Forge
Stay tuned to #announcements for any further info about releases.
ok
If regions that are adjacent eventually merge, say two big groups of players are dounf stuff 1k blocks from each other. One of them takes a minecart to the other group. Does that risk the regions joining together?
No, that player will go to the other region. Oversimplified, but it won’t combine them
Because they’re still too far.
If all the players take a cart then he’s.
I mean, if the players movements causes a region to grow so big they they join, they’ll join
(Players 1k away from each other are likely to already be in the same region, btw, as that's a relatively low distance)
As they break away, the regions should split up again
A section of a Folia region is 512x512 I believe and there will be a buffer around that
interesting, thank you
Hey why is generation load on folia only like 35. I have Ryzen 5 3600 and 20gb ram fully dedicated to the server
Is it the cpu or?
It's running 4.2 ghz atm
Utilisation: 3.8% / 100.0% Plus this
Folia automatically figures out that a Ryzen 3600 is below the minimum recommended requirements (16 cores/32 threads) and assigns just one thread for region ticking, as many more will have to be used for other tasks, which's why the utilization is at 100%
I think you can change that in the config, but I'm not familiar with it
O
I assume it would be in the paper global config
chunk-system:
gen-parallelism: default
io-threads: -1
worker-threads: -1
I assume it's this?
Ig Ill put it to 12 ryzen 5 3600 has 12 threads
are you going to use this for a public server
Nope just want to load a 100k world fast.
just use paper
Why?
Why use a single thread when I can use 12? Plus speed went from 50 to 300.
paper also uses multiple threads for chunk gen iirc
folia’s minimum core count is 16
Ah rip
cores not threads
how/where do i get notifs about folia's next test?
We've only done one test so far. If we do another one we'll announce it in #announcements
If someone else does one I'm not sure where they'll announce it.
Not sure if/when we'll do another test.
It would be cool if there could be a role just for Folia pings
Probably not enough stuff happening to warrant that, but shrug
fair enough
I think I stand for a lot of people who care a lot about folia updates and not so much normal Paper, velocity, and waterfall updates
Okay
There's a lot more people using Paper than Folia. Folia's not really geared towards most servers.
Keeping an eye on the Github is probably the best way to keep track of Folia progress.
Hi
So I wanna use folia
To hold more players
On a server
Is there a wiki on how to set it up
Or anything
Read all the pins in this channel, the Readme and the FAQ on the repo. You have to compile it yourself to use it. And you need proper hardware and a server type to support all. All info in the aforementioned places.
Ok so now where do I download it
Did you read all of the info I mentioned?
Yeah I don’t see a download link
Look I’m not tying to be that guy but if you’re asking then you didn’t really read everything I said you should read.
I know there are no public builds that’s why I’m here
I want to make some of my plugins compatible with it
@fair merlin so is there a build I can download
Good luck, I spent a lot of time trying to figure out how to do it
I am actually baffled
What’s the point of having a help channel
Etc
If u can’t use it
You can compile it yourself. Not sure why you are baffled
I think he want to know ho to compile it from repo
for users who have already managed to get folia to work
Folia is experimental pre release software, it's intentionally gatekeeped at the moment, we provide minimal help compiling it, but, if you're not a dev or don't have a dev team, folia probably isn't for you in general
#folia-help message What about 8 cores? What does "It will boot on less but it won't sustain players" mean?
Paper may run better if you do not have enough of hardware to support Folia
I'm using an AMD EPYC 7713. The dedicated server we have has 8 cores of that CPU
Would it handle 300 players on a single server?
Well, no, ofc not
not unless you go crazy with the thing
but, we can't vouche for the performance of folia on random hardware either
What do you mean?
Paper is constrained to a single thread for the tick loop, so it's generally not scalable
If only MC Java wasn't single threaded
Folia spreads work across cores, but introduces many overheads in the process
I mean, if only concurrency was easy
There is a reason why pretty much 99% of games use a single threaded tick loop
also by definition you don’t really have a dedicated server if you only have part of a whole cpu. You at most have dedicated cores
Yeah, dedicated cores
A dedi usually mean the whole deal
it's not because it's cool that way, it's because, when you want solid determinate behavior, multithreading is generally impossible
So... you're saying game servers that are multi-threaded are buggy? I'm just trying to understand
No, what I'm saying is that making something multithreaded while retaining proper behavior is complex
that's why folia is region based, it's the only way to retain behavior over a sizable area; that's why stuff like redstone can still work
region based is not a new concept, but idk anybody whose really doing it dynamically in a manner which isn't fixed regions and doesn't have gaping timing concerns
Alright
I will try and go for Paper first
If I'm not happy with it (server performance), then I don't know
Folia will work on the hardware above, just, how it will scale especially in a "shared" environment, nobody here can say
300 players is gonna be sadger regardless 
if you wanna use folia, you really wanna be running on bare metal
Paper will not come close to 300 players without heavily cutting down the server
You’d be playing with 3 view distance and 5 mob per player regardless of Paper or any fork
I'll disable natural mob generation
hi, i have questions about performance
I am using 5950x and the above is the btop stats when i have this /tps picture on folia
folia shows 210.9% utilisation, what does that actually means? And how does the 400.0% number comes from?
I see my CPU is not close to 20% load, if I want to fully use up all my server performance (if I really have that many players), should i host 2 folia and hook with waterfall? (assume 400% is double, and two folia becomes 80-90% cpu on btop
it's based on the utilisation of the region threads
you'd want to see how you can increase the # of region threads
but, I mean, load factor is not an issue here
Does that mean there is some way to increase the 400.0% number to even higher? so that more players can get into single folia server.
afaik, yes
you'd need to see the configuration options for folia, idk what all is exposed
paper globals config > regionized threads
folia does not support 1.20 yet right? is there any date yet on when it will be supported?
it supports 1.20
sweet
Is it plausible to run Folia on a Ryzen 9 7950X3D?
i only saw
threaded-regions:
threads: -1
or
chunk-system:
gen-parallelism: default
io-threads: -1
worker-threads: -1
Are you mentioning these ? Does -1 means that it will automatically use all core/threads?
-1 means default setting
what number should I modify or should I use the -1 default setting?
I have read the FAQs, are these thing mentioning relating to these paper-global settings? How should I tune it
I mean it literally tells you
Are scoreboards still not supported? I just need to assign teams to people. Are there libraries that can do that with packets?
not supported yet.
After the tests I found that this CPU is enough for about 120 people for an SMP server with default spawn-rate settings
Stable 20 tps
is a fork worledit?
Elo, why placeholderapi didn't work in folia core?
It is not supported yet
Thx, I will wait for support
Not all plugins are supported by Folia. In fact, most aren’t. You can try and see if they work or you can look for specific mentions of them working or not.
Initially, the Tab plugin did not work for me, after I deleted its config, it worked. And here placeholderapi completely refuses to work
If the plugin says it works on Folia then for help with it you should go to their respective discord or support channel.
If it doesn’t then you need to find another or wait for it to support Folia.
I understand. Will have to wait for updates then.
I also have a question. Which permission is responsible for entering the command /tps
I want my friends to have access to it too
You can compile spark from github and give permision with LuckPerms
have someone a fork of worldguard?
same question xd
You an check amount of regions and player amount in /tps
As for specifically player locations, Idk
So how do I get it to work
Ohhh all I have to do is compile it 0-0
is there a folia-dev channel?
why not? wouldn't a i9 efficiency core still be better than an epyc core for example?
Probably not
I mean you can try it
but it will be great for running paper, right? because of the p core performance?
I mean, if you deactivate the e cores, sure. but at that point you might as well use another cpu
Theres no way to ensure that a region tick thread runs on the P cores, and that makes them kinda bad
i don't think any regular datacenter cpu will have a better single core performance than a i9 13900 p core
https://www.techpowerup.com/review/intel-core-i9-12900k-e-cores-only-performance/2.html
According to this (closest data I could find), E cores of a 12900K are a weaker than cores on a mid range 6th gen i7 (2015)
the reason folia "requires" 16 p cores is because it actually makes use of them to all hell
or, rather than makes use, demands
There are too many models from these lines
i could also get a ryzen 9 7950X3D server
That's going to be much more suitable
that should have pretty much the same single core performance, but actually 16 usable cores
alright, i'll try that one then, thanks
since it is 16c/32t, default settings will work fine, right?
It depends on the server usage (generation etc..)
chunks are pregenerated up to 25k in all dimensions so i think it should be fine
are there recommended GC settings or can i just leave them at default?
Could just leave them at defaults, tbh
I'd only worry about it if you start getting bad GC times
server has 128gb of ram so i imagine gc times would not be that great
g1 handles large heaps fine
Just FYI we'd rather people not share jars here. Don't want to normalize people downloading stuff and risking a potential malware/etc incident.
Uplink isn’t going to matter as much as the server hardware.
And how many depends on what the players are doing and what plugins there are, how much data is being sent, etc.
Ohhh I’m sorry! Thanks for letting me know.
@fair merlin can you compile a jar and send it? I don’t really know how to do that but I want to try out folia.
Follow the instruction here
Thx
can i patch folia to paper version 1.19.3 ? if yes, woh i do dis 😄
okay, how i can do dis
bruh
ok
Caused by: java.lang.RuntimeException: Could not load plugin 'BingoReloaded v1.5.0' as it is not marked as supporting Folia!
uhm
now
who needs to add the plugin ? the developer (with the api or something) or you as a fork developer?
plugin developer
okay
the majority of plugins are not going to work on folia out of the box
we're gonna ping a discord server with around 130k members today. i run folia on the server with specs i attached. uplink is 1 gbit. what is a sensible player limit to set? it's a 2b2t like smp server but with no hacks allowed.
Make it wide open and when you start having problems you can tell us what a sensible limit is!
how i can se wich plugins are supportet ?
thanks
Have a look at https://cubxity.dev/blog/folia-test-june-2023
They used the same CPU, there's some findings and recommendations in there
oh wow, that's the exact same server i use
although i don't have a 10 gig uplink. should i get one?
i think peak was something like 2Gbps? it's somewhere in the article
something like 5 gig uplink would be enough but hetzner only has 1 gig and 10 gig
it hovers at around 1 gig so i think it should be fine
we'll have a more gradual increase of players anyway
let us know how it goes :)
for some reason this furnace runs infinitely without fuel. is this a known bug?
Can you reproduce the issue on the latest Folia with no plugin? if so, open an issue with reproduction steps
Uhh
Check block logs if you have that, maybe someone put a lava bucket and then took it away?
hmmm it's out now but i also restarted the server so maybe it reloaded the state
but it was definitely infinite
idk how to reproduce it though sadly
@loud estuary how many players did you get?
Unfortunately it did not play out like planned and we were only allowed to ping about 8k people. We had a peak of about 50 players which was obviously no problem at all. Then the ddosing began lmao
But it was good to be prepared, and who knows, maybe we can use the extra slots sometime
How should I optimize can someone know? My Tps always fluctuates 5-20
I even gave it 64G****
More threads and spread players out more
Well, I try to separate them, they always form small groups
what CPU are you using?
Is i9 13900K not suitable for Folia?
I don't know how well it works with heterogeneous CPUs
All right
Production? No, because this cpu has e-cores
Now my players keep telling me that the server is stuck, but I can't do anything about it. I have optimized it step by step according to "https://github.com/YouHaveTrouble/minecraft-optimization".
So this CPU is suitable for Folia right?
Maybe I should try to open the second district server to share the pressure from the players.
Did you read my message?
For production? No
For testing it's fine
Ok, I understand now, is it better to use Folia with more CPU cores?
anyway thanks for your answer
Is high allocation rate (8gb/s) that much a problem, as stated in hackernews problem?
You know, idk if java anyhow can perform better
Folia recommends at least 16 cores
hackernews comments aren't a trusted source of information
13900K can perform good with paper too because of 6ghz single core boost
but folia supports more players iirc
big take
?
ok ok thank u
Bro, do you think I should switch to paper?
Fair
well if your plugins support foila then keep foila
because 13900KF is a very powerful cpu
I am not 13900KF I am 13900K
Okay, but now the tps is very low, and the player's game experience is very bad...
with foila or paper
I am folia now
idk
This cpu has e-cores ...
Well you have 100+ players on one region
What do you expect
Well, that should be my problem, I try to keep them separate instead of together
anyway thanks for your answer
100+ on one region shouldn't be as issue depending on what they are doing.
If they are all pvping ofcourse your TPS will die
Try to change this option in paper-global.yml
Shouldn't be an issue on proper hardware
Depends as long as they are not on one chunk
Depends on the GC you're using, the amount of heap and hardware
Your gc has to be able to collect faster than it allocates
Otherwise you risk the server stalling/long pauses
changing the region threads won't help them at all
literally all their players are in one place
MC has a high allocation rate on vanilla
combine that into effectively running multiple smaller servers at once and it's kinda gonna suck ass
thankfully though, the fact that regions ar emostly smaller, and the fact that it's no longer bound to a single thread, the newer java collectors are bound to look a bit more interesting
especially now that shen has generational
shen won't be generational until Java 22 at least
oof, I thought somebody had tested that or something
Not read up on all the latest tests cos having functional eyes is overrated
it was targeted for 21 but they decided to delay it

"when they are there"?
I mean, you truncated info
work out why the region is lagging
i don't want the region
see what is in the region
the line below what you cut off shows important info
that seems wrong lol
6.6k entities though
can bukkit plugins work on folia?
What does this option control, I am now the default "threads: -1"
how do i get a list of the entiti in nether?
directly? no
or paper plugins, at least
can? theoretically, yes
plugins need to declare that they support folia
huh?
so will extra code be needed for bukkit plugins to work with folia?
[17:46:16 INFO]: Total Ticking: 2484, Total Non-Ticking: 703
[17:46:16 INFO]: 1870 (378) : minecraft:wither_skull
[17:46:16 INFO]: 380 (264) : minecraft:item
[17:46:16 INFO]: 76 (54) : minecraft:wither
[17:46:16 INFO]: 65 (0) : minecraft:end_crystal
[17:46:16 INFO]: 28 (0) : minecraft:piglin
[17:46:16 INFO]: 17 (4) : minecraft:strider
[17:46:16 INFO]: 15 (2) : minecraft:zombified_piglin
[17:46:16 INFO]: 12 (0) : minecraft:piglin_brute
[17:46:16 INFO]: 7 (0) : minecraft:player
[17:46:16 INFO]: 3 (1) : minecraft:minecart
[17:46:16 INFO]: 2 (0) : minecraft:boat
[17:46:16 INFO]: 2 (0) : minecraft:experience_orb
[17:46:16 INFO]: 2 (0) : minecraft:fireball
[17:46:16 INFO]: 2 (0) : minecraft:zombie
[17:46:16 INFO]: 1 (0) : minecraft:item_frame
[17:46:16 INFO]: 1 (0) : minecraft:pig
[17:46:16 INFO]: 1 (0) : minecraft:wolf
[17:46:16 INFO]: * First number is ticking entities, second number is non-ticking entities
Then what do you think I should do?
once again, you need to spread players out more
OK!
depends on the plugin
This is only happening to this region and not for the first time
i really have no idea how/if that command works properly in folia
best advice is probably gonna be to see if sparks folia branch updated
or just find a way to butcher all the entities in there
@safe plover yes
I have 8,000 entities in another region and he's fine
Oh, sorry about the ping.
For an average of 200+ players, is it reasonable for me to set foliage to 64G? Or do I give too much
depends on the entities
all I can tell you is that region is shitting the bed
the entity count is the most likely suspect
otherwise, grab a profiler
I am increasing from 12G to 64G, and I find that it will always be full quickly, can you recommend how much running memory I need to set?
like this
idk how much memory you need
OK, thanks
Java will always maximize its memory usage and only selectively prune the amount of freed objects only when it needs to
What may improve your performance instead is more core allocations
I used generational shen
OK I think I should understand, thx
This is how many threads will be active for server. For example i have 16 core processor, and i indicate 32 threads
No pls dont do that
Please read the folia doc before giving incorrect info @vale osprey we understand you are trying to help but you are not helping.
Can I use a velocity proxy for a folia server? Or what is recommended
Yes, you can
Unless you have hundreds of friends that want to play simultaneously, Paper is enough
Otherwise go for it
Ok
I if because my cpu max clock speed only 3.5Ghz
But i want high world gen speed
just use paper
Folia for more players
i don't think that u will have on your server 100+ friends)
Yes but i want faster world gen😭
Paper with right cpu can go up to 380 cps using chunky
Folia can reach 400-500 but the cpu is not obtainable for normal people
Folia can reach 1.4k CPS from my testing
I was able to get around 950 cps w chunky on mine
Where is my screenshot 
I gotta test folia at some point it sounds realy promising
It’s pretty cool if it meets your use case and system requirements.
bro what
i was talking to pauhull (who just moved his server to folia) and when he was genning chunks it was on a vm and it was on paper and it was like 50 to 90 cps
depends on hardware and config
paper by default intentionally limits stuff
and the defaults are generally pretty low
the chunky wiki says how to tweak the settings for fast pregen
it was on a vps to be fair
single core performance was bad
yea i know, but thats way better than what i was getting on my host (13 cps)
Also Minecraft runs very poorly in a VM.
yes i know
The whole point of Folia is to be able to take advatange of higher core counts. So you'll get faster generation than Paper. But only if you actually have the hardware to support it.
yep
its actually very interesting how it works, now only if u can change the amount of threads of certain things (like netty io or chunk gen) on the fly
bro, My current CPU is i9 13900K, with 8 cores and 16 threads, so should I fill in 16?
You can try to test but you're under the recommended core/thread limit.
I currently have an E5 2667V2*2, and an i9 13900K can be used, can u recommend what machine should I use to run folia?
Probably neither
Relatively speaking, which one is more suitable?
E52667V2* 2 16 cores and 32 threads I913900K* 1 8 cores and 16 threads
Recommendation is >16 physical cores.
Also most cores on 13900k are efficiency cores, so It’s not ideal
Well, maybe E52667V2*2 is more suitable
Thank u for your answer that cleared my doubts!
It’s still under minimum recommendations but sure
is it normal for you to be recieveing over 40mbps loading chunks from a folia server but like nothing on paper?
sounds like either a compression issue, view distance, or the server sends chunks multiple times
I run a network based around one main SMP server with 2 minigame servers to accompany it. Scaling past 150 is pretty much impossible without sacrificing the gameplay a lot. Will it be feasible for an SMP server to run on folia with ~50 plugins (assuming they abide by folia standards)?
Yes
That is assuming your hardware can handle it
Whatever hardware that may be
7950x3D. Also will i be able to run multiple folia instances on the same machine? or would one folia instance using 16 cores be at basically max capacity?
i run a 7950x3d amd i run 1, it performs well and uses all cores during peak times to about 20 percent
correcton: i work with someone who runs one and we dont have any issues during peak times
and tps is always a stable 20
If you actually have a need/benefit from Folia vs Paper then you won't be able to run two on that machine
Is it possible to use an existing Paper 1.20 map on a Folia server?
yes
Whats your server
That's crazy
Paper can already make use of a few threads
Both Paper itself and the JVM (JIT, GC, etc)
So you need to account for all of that then add in the threads for running multiple regions in parallel
And since a Folia server is expected to be larger you'll want more GC threads and want all those things to be dedicated cores. You don't want your server to be stalled because the kernel had to pause your region threads to make room for your GC threads or something
And you'll need more networking threads since you have a higher player count
Unless your server is small enough to not need to worry about those things but then it's almost certainly small enough that just using Paper would be more efficient
Fair enough then
How is folia development going?
yes
Is there like a roadmap of things that need to be done? Maybe re-enabling the things that have been disabled?
there are to-dos on the github
there is no roadmaps or timelines, this is a volunteer project done by people on their free-will for free
https://opencollective.com/papermc or you can find your favorite developers on the project and donate to them individually as well. (they are on the right hand side or a full list here https://papermc.io/team
For Folia, the devloper that works on majority of it is @tranquil epoch
Well I don't want to donate to papermc
Just to folia
Isn't there like an opencollective thing for all the folia developers?
in that case, that will be SpottedLeaf
Is folia literally just their project? I thought it was something bigger because papermc has it on their front page
Alright I guess i'll just donate to spottedleaf then for now
But don't you guys wanna get more devs on it?
it's just leaf for the entire thing before release yeah.
I don't think i can
There's no sponsor thing on spotted leaf's github
There's one on the folia repository but it just takes me to papermc
I was gonna donate like 20 euros or something, nothing much
I think he only has PayPal right now and the handle is @tranquil epoch
DISCORD MOMENT
@spottedleaf is the handle.
Aight
Paypal worked
@tranquil epoch You should probably make an actual donations thing.
btw is there a config file somewhere?
for which item?
wdym item? I mean for folia
Folia uses all existing Paper configs
the difference is that it has a threadpool for regions.
So I edit paper-global.yml?
Would it be wrong to allocate more threads than needed if I have them available?
Could that slow things down?
as long as it is available, it should be ok
it will only slow things down if you overlocate to what your system can offer.
Ah ok
Thanks
And if I don't set it to anything will it just figure out how much it needs or will it default to one?
it just do system core /2/2/2 
it is just using a very conservative amount
in your case 4
out of curiosity, what happens when u travel between region's and the own threads, like how does it hand off
im not sure this is a dev question
so i dont wanna waste peoples times in there lmao
You cannot cross region on tick, if the server think you are going to step into another region, those two regions will merge before you do
so do they split after your practically through the region or do they stay merged?
They stay merged until the region logic think it can spreate
magic smoke must not be released
the technical details will just be you reading through the patches
Will Paper/Spgiot Plugins work fine on folia? (besides of the region/chunk management)
no, see the readme
almost no plugins will work without any changes, and folia will only attempt to load plugins that say they run on folia
I'm too lazy to build the folia all the time, is there a build list?
no
You could set up for it to generate artifacts on a forke
just pull changes and it build
We've published builds to the api since day 1
i get 200+ on paper
so... depending on your hardware you might wanna fiddle with the threads a little
im on an i9-11900 tho
i platinum 8168
??
I set workthread to 100
lmao
does rcon work in folia
lol
how many cores do you have
probably need to configure the threads correctly then
I upscale to pregenworld
how?
look in the paper configs
You can just use a flag
Can give me?
Ok thank
Maybe not work
I used remote
Sorry for large photo
I got 300cps++ per tick now thank
Wait chunky works on folia?
yes
One of the first plugins that had support for it, yeah.
Is it not officially supported yet?
I really don't understand where i'm supposed to find the download/compile it
I think there’s a branch or PR for it.
Check the Github repo.
Lots of Folia stuff is still a work in progress. Including Folia!
the version for bukkit based servers supports folia
yes well it was a dev build for a while but its part of the latest release now so it should just work
Sweet.
So I’m unsure about this but is it possible to use folia on multiple computers (like a raspberry pi cluster)?
Pi is not powerful enough to take advantage of folia
Also, no, it's not designed for clustering.
Thx
But yeah a Pi is way underpowered for Minecraft.
Strongly not recommended.
Unless it's just you testing some stuff.
Do people already use folia in production? If so, which servers?
We kinda frown on people just advertising links to their servers in here
Not sure if anyone is running a large scale server with a lot of active players. Hardware makes it kinda tricky for some.
I have to say this channel is comedy gold
Hi does anyone know what are the best start arguments for my server? (I have 8 cores and 16 threads) 4.5 GHz
Just use Aikar's flags
do I have to worry about that?
do note, the minimum recommend amount of cores is 16
You're well below the minimum recommended amount of cores anyway
Yeah I know
I just used flags.sh, is that okay? Because it also mentions that it uses Aikar's Flags.
Yes
is there an optimization Plugin for the view distance? Or sth. like that
View distance is either set to something high or something low, the lower the less work the server will (especially simulation distance)
I suggest you to advice player to use fabric mod such as farsight or Bobby to cache client side
is anti xray recommended for folia?
any reason why gradle builds for folia are failing on my end?
not with that information
applyServerPatches
