#folia-help

1 messages · Page 17 of 1

inner swift
#

Can't really guarantee that there'll exist a good solution for this kind of setup, Spark has a Folia branch you can compile to try and get some more details

fair merlin
#

That's the kind of behavior you'll see with underpowered resources. Not enough cores means it's going to choke out, basically.

finite hinge
#

I wonder if it could hit 100% if GC threads starved it from actually getting any CPU time

#

Or chunk IO threads, etc

tired snow
#

I'm building a server, would the host benefit from high caches or would simply having as many cores as possible get the best results for a large folia player base?

lofty magnet
#

what do you mean by "high caches"? CPU caches? And yes, core count plays a significant role if you can actually manage to spread your players into lots of regions

tired snow
#

large caches, sorry

viral stone
#

I don't think anybody has generally cared to bother benchmarking how much CPU caches matter for MC, especially given the whole "ticking an object with a few gigs of memory" type stuff and the game not being catered to take advantage of locality, etc

tired snow
#

density it is then

umbral tusk
#

how well will folia run on a AMD 7950x

finite hinge
#

It'll run

west lily
#

probably wont crash if you put more than 20 people on it

finite hinge
#

I think that's basically the minimum CPU to use if want to ensure it'll actually be an improvement over Paper

#

Assuming you can spread your players over large enough area or over enough worlds

west lily
#

I dont even know how much of a difference the higher clocks will make; might just be worth it to run a few paper instances or choose a cheaper 16 core xeon

finite hinge
#

Well, each region still wants all the single core perf you can provide

west lily
#

oh thats interesting

finite hinge
#

But if you can get your regions small enough (like 20 players or less in each) then you can get away with a slower CPU that has more cores

west lily
#

that'll be good for something like a minigames server id imagine

#

spread the maps out a bunch

finite hinge
#

Think of it like each Folia region is a Paper server plus some overhead for the threading minus some overhead because they're all sharing IO and GC threads

west lily
#

ah

#

that's actually quite incredible

finite hinge
#

Unfortunately the plus overhead is on single core perf and the minus is on multicore so...

west lily
#

i wonder how GC runs on all that RAM

finite hinge
#

Modern JDK G1GC, ZGC, or Shenandoah chews through dozens of gigabytes of heap with no problem

#

They aren't O(1) with respect to heap size but it's some logarithm that makes the overhead scale very slowly

#

Well, that's mainly true for ZGC and Shenandoah and they also have such a large fixed overhead that they don't make sense for anything less than like 10GB unless you have CPU cores sitting idle and want as little GC pausing as possible

umbral tusk
#

so I would say so

tranquil epoch
#

yeah you should be able to handle quite a few players

paper siren
jaunty atlas
#

<@&748618676189528155>

jagged ether
#

huh

jaunty atlas
#

Wait I am dumb he deleted it

jagged ether
#

nvm see it

lone stratus
jagged ether
#

thanks for reporting

next bloom
#

Smh. I just get the push notification for that ping 1.5 hours later

subtle lion
#

Hey!

#

Is Folia stable?

tawdry gullBOT
#
Folia

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.

subtle lion
#

I didn't really understand. I was asking is it stable or not?

#

I don't think this message answers my question

jaunty atlas
#

How stable do you want it to be? It works, but it’s not so stable/finished that a public release has been made

viral stone
#

I mean, we're still not offering publically available builds, soooo

oblique topaz
#

Could someone explain why intel’s efficiency cores don’t work well with Folia? I read that 2 e-cores roughly equals 1 p-core, so an i9-14900K (8P+16E) should have the equivalent of 16 cores with more flexibility to place them where needed? Could they potentially work well in the future?

Also a question for Folia or Paper, I’m wondering if e-cores could be prioritized when 0 players are online to reduce power consumption.

livid crag
#

You can’t decide what thread uses score

timid grotto
#

so with that cpu, youd have 16 good threads (the p-cores), and 32 "bad" threads

oblique topaz
#

Ohhhhk thank you!

finite hinge
#

An e core is probably good for a couple people though

#

So if you were doing a skyislands server and for some reason wanted to make it a single giant server instead of using velocity they might actually work out

#

Of course you'd have a player count limit of like 100...

fallow stone
#

I was building folia and

#
Invalid maximum heap size: -Xmx4G
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
silver sierra
#

you need 64 bit java

finite hinge
#

They still make 32-bit versions?

humble mesa
#

Is there an eta for folia release? I don't mean an official release date, just a ballpark guess.

fair merlin
humble mesa
#

thats fair, its hard to guess anything like that anyway

fair merlin
#

Folia's still in active development. You can use it, but you kind of need to know what your'e doing and be able to get plugins working properly.

To be honest there's a good chance it'll be a very long time before it's "mainstream released" like that.

#

Because plugin compatibility is very particular.

humble mesa
#

Fair enough. thanks for the update

fair merlin
#

But you can build it now and run it if you want to update stuff, run a server, experiment, etc.

#

A bunch of people are running it in production.

#

Depends a lot on what your use case is.

humble mesa
#

Yeah, i have a semi-anarchy server that averages around 25 players. This would be a game changer, so i am just exited. haha

#

we may run a test server useing folia, but it would be nice to have a few more bugs worked out first

fair merlin
#

If they players are generally pretty spread out past 1500 blocks and you have the server resources to run it, definitely worth a shot. You'd have to look at the open bugs and see if any of the existing bugs are actually showstoppers for you.

#

Most of the issues are plugin compatibility.

humble mesa
#

yeah, we already use a Ryzen 7900x, it would be easy to switch to a 7950x

humble mesa
fair merlin
#

You can definitely spin up a test instance on less cores and check for plugins working and stuff and test with 1-2 players.

humble mesa
#

alright. We might do that just to see how it goes

#

does folia require any funding, or is everything covered atm?

fair merlin
#

Donating through Github or Open Collective is always welcome.

humble mesa
#

kk

polar bloom
#

Hi, does anybody know if there is a folia 1.20.2 support?

jaunty atlas
#

Snipped

tawdry gullBOT
#

⚠️ 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.

jaunty atlas
#

Hmm, not the right one

tawdry gullBOT
#
Folia

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.

jaunty atlas
#

Thought there would be a github link in those nvm

polar bloom
#

Readme link is transferring to github

#

But I am not sure where can I find the 1.20.2 folia jar there

jaunty atlas
#

You would need to build it yourself

void elbow
#

Hi all. Who can make me FoliaForge for 1.19.2?

#

I'm ready to pay. I will fix the compatibility of the mods myself, I only use 2 mods, but I really need Folia Forge.

arctic tapir
#

no one

#

not the place

tawdry gullBOT
#
Folia

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.

void elbow
viral stone
#

This is not the place for solicitation

#

Nor is there any interest in our team porting it to forge

#

especially for an outdated version

void elbow
#

tell me how much it will cost

viral stone
void elbow
#

I'm not asking for free. This is a commercial offer.

feral hazel
#

that doesn't matter

void elbow
#

I have a project for 10,000+ online.

viral stone
#

Rule 4

void elbow
#

!rules

#

/rules

viral stone
feral hazel
#

If you are looking for someone to work for you, hire an empoloyee or find a freelancer. This is not a marketplace!

void elbow
#

I understand. I just thought maybe one of the developers would want to earn extra money.

#

No problem

feral hazel
#

Surely someone wants that. But you're not looking for it here!

void elbow
arctic tapir
#

not here

feral hazel
foggy blaze
#

I mean you could ask in helpchat, but like seriously that'd be a pretty big project I don't think anyone would actually want to hastle with it

#

plus unless it was Leaf doing it, they'd prolly find some way to fuck it up

void elbow
#

Leaf will never do this

foggy blaze
#

plus Folia breaks tons of plugins

#

it will also break tons of mods

void elbow
#

yes i know

foggy blaze
#

if you did this, literally half your mods would explode of not all of them

void elbow
#

But I only use 2 mods, I can fix them

foggy blaze
#

that's not as bad at least

foggy blaze
# void elbow Leaf will never do this

yeah, thats my point. Leaf would prolly be the only one who could do it without screwing it up and they certainly aren't so it's not even worth trying to get done.

scenic sky
#

if you only have 2 mods i cant imagine it being impossible to replicate with plugins

fair merlin
# void elbow Leaf will never do this

You really don't want mods working together with plugins. If you only have two mods you should find someone to rewrite them as plugins, which would be FAR easier than finding someone to cobble together mod support in Folia.

fair merlin
# void elbow IC2 Classic

Not sure what those are. Like I said, you'd be better off finding someone who can re-write those as plugins, or find existing plugins to cover that gap.

#

I would not even remotely try to use Paper or a Paper fork with mods.

feral grotto
#

why it called folia

gentle raven
#

i think folia is latin for leaf and since spottedleaf created it it was called that i guess

feral grotto
#

ill take it

#

cause folia is tinfoil in polish

#

and other languages

gentle raven
#

lol

odd storm
#

My guess was it's like paper but folded

finite hinge
#

folio is what you use to contain a bunch of papers

#

Having a similar word also mean leaf just seems like it was meant to be

gentle raven
#

<@&748618676189528155>

marsh mapleBOT
#

(656b7b8d42b7936e54a59f69) // @supple berry (@cboy7202 / 828254022779142174) has been banned by @wise epoch (1098722699116810331)
Reason: spam ads

gentle raven
#

pog

raw talon
#

hello, i havent found anything related to building info on github, how can i build the jar file?

fair merlin
raw talon
fair merlin
raw talon
grim slate
#

Could anyone help me with this error when I try to build the jar?

viral stone
#

Do not build on onedrive

#

and try a shorter path

grim slate
#

I hadn't even noticed, it was github that put me there. thanks

uneven walrus
#

Is folia sufficend stable for a in production server?

gentle raven
#

i mean it depends on what kind of server you have

uneven walrus
inner swift
#

There are not many "common plugins" in Folia

gentle raven
#

well i am unsure of the current state of this but afaik plugins won't load unless allowed in plugin.yml so you will have to edit that

inner swift
#

The huge majority of plugins need a rewrite, so changing the plugin.yml will not be enough to make them work

#

30 players sounds like it can be ran with modest hardware in Paper

severe quartz
#

Hello! I'm getting this error when attempting to import world folders:

java.lang.UnsupportedOperationException: null
        at org.bukkit.craftbukkit.v1_20_R2.CraftServer.createWorld(CraftServer.java:1271) ~[folia-1.20.2.jar:git-Folia-20]
        at net.minecap.SurvivalCore.lambda$initializeWorlds$0(SurvivalCore.java:193) ~[SurvivalCore-1.0-SNAPSHOT.jar:?]
        at java.util.LinkedHashMap.forEach(LinkedHashMap.java:721) ~[?:?]
        at net.minecap.SurvivalCore.lambda$initializeWorlds$1(SurvivalCore.java:170) ~[SurvivalCore-1.0-SNAPSHOT.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[folia-1.20.2.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[folia-1.20.2.jar:?]
        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293) ~[folia-1.20.2.jar:git-Folia-20]
        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[folia-1.20.2.jar:git-Folia-20]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.2.jar:git-Folia-20]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.2.jar:git-Folia-20]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]```
The line of code causing the issue is a simple world creator (in a global region scheduler):
```java
new WorldCreator(worldId).environment(config.getDimension()).createWorld();```
Has anyone gotten this error as of updating to 1.20.2 and know how to fix it?
sly elm
severe quartz
severe quartz
#

Okay thank you for the help!

sly elm
#

Was the plugin written for folia

severe quartz
#

Not originally, it was later modified for Folia, has been so for approximately a year.

sly elm
#

Yeah probably need to just update it then

bold osprey
#

so you could use datapacks

#

you just won't be able to unload the world/load them later than server startup

odd storm
#

yea datapacks works

narrow tangle
#

My folia map size with vanilla border radius 30000 full rendered is around 140GB, is there anyway to make the map file size smaller? or ways to make it better?

sly elm
#

Basically unrelated to folia

narrow tangle
#

ok 🥹

sly elm
#

Aside from deleting stuff yeah

#

Big world has big size

thorny snow
#

If there is none, you could fork Folia and add it yourself

#

Aparently this fork has it, and looks really stared

timid grotto
#

ah yes, the fork with a config option to make the server slower than paper

timid grotto
#

kaiiju

thorny snow
viral stone
#

it's a dumb hack to fix a dumb issue that they themselves induced

thorny snow
#

that is dumb

viral stone
#

like, bearing in mind that we identified years ago that such a hack would cause the risk for deadlocking in any plugin trying to be smart over how it handles cross region/thread stuff

#

but, that's the only way to stand a chance of letting bukkit plugins work without blowing up all the time

thorny snow
viral stone
#

It wasn't known by folia as such

#

it was a concern we discussed literally years before folia existed

tawdry gullBOT
#

⚠️ 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.

bold osprey
# thorny snow But if they themselves induced, how was it known by Folia? Did you guys fix and ...

https://github.com/PaperMC/Paper/issues/1001
it was interesting for me to read, you may also read this and see how everything started

GitHub

Goal This issue is to serve as a note holder and idea registry for an idea I had today on being able to tick entities in a parallel fashion, safely (at least, safe enough) - Please read entire issu...

mystic shard
#

When will the first version be available in the public domain?

#

Sorry for the mistakes if anything, I use a translator.

timid grotto
#

i assume your asking for when you will be able to download it

tawdry gullBOT
#

⚠️ 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.

tawdry gullBOT
#
Folia

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.

#
__There Is No ETA__

Updates to Paper do not have any sort of estimate for when they release, ever. Any and all updates will arrive when they are ready, and the only thing to do is wait for them patiently along with everyone else.

polar bloom
#

Hi, our team was using folia for hosting an SMP factions server for players with peaks up 100-200 players at the same time. But we are slowly realizing that folia is causing some problems and it is getting harder to came up with work arounds. Is there any other way to host a server that will provide a reasonable performance to players than folia?

jagged ether
#

We don't make server software other than Paper and Folia

viral stone
#

I mean, there is a reason why we're not recommending folia for production yet, and, generally, no, hosting large numbers of players on a server without basically hampering players is generally not too much of a thing

#

forks exist which can help shave off time here and there but, no magical solutions here

#

(we, ofc, do not provide support for, nor recommend any forks)

naive fable
#

If you report the problems they will probably get fixed eventually

timid grotto
#

i could be wrong, but afaik folia doesnt have many bugs that a player would notice just playing in survival. most issues come from missing some vanilla commands (notably /worldborder) or (lack of) plugin support

fair merlin
unkempt harbor
#

@viral coral ^ sry ping but u were online green

viral coral
#

what

unkempt harbor
#

soemone send nsfw dc invite

fair merlin
unkempt harbor
#

aight didnt know role ping work here ty

fair merlin
#

Mostly just that one.

#

For exactly those sorts of cases.

polar bloom
fierce knotBOT
polar bloom
#

It might be somehow related to this thing: [10:41:53] [Tuinity Chunk System Worker #0/ERROR]: Hanging entity at invalid position: BlockPosition{x=147, y=169, z=-166}
but idk

fair merlin
polar bloom
#

it is VM, Linux, I am not sure about the CPU, but we have at least 16 cores

feral hazel
#

A VM is not a good hardware for folia!

#

you should have full hardware access

fair merlin
#

Yeah if you're on a VM and aren't sure about the CPU then you aren't meeting the hardware requirements.

finite hinge
#

A VM is fine, it just usually doesn't make sense for folia as I doubt you have a server with enough cores to make it worth splitting it up like that

#

64 core server? Sure, use VMs to split it up. 16 core server? That's a dedicated folia server, no need for a VM when it uses 100% of the machine

fair merlin
#

VMs are fine for some stuff. Just not great for Minecraft in general and not recommended for Folia.

finite hinge
#

VMs are fine for Minecraft in general

#

CPU overhead for a VM is basically 0 and Minecraft isn't IO bound

#

Unless your VM is pretending to be some CPU from 2012 to make it easy to migrate onto a wide range of machine types/ages, then the JVM will avoid some optimizations with newer SSE and AVX stuff. Although I don't know that MC does anything that would really benefit from any of that either

#

The only time VMs are no good for Minecraft is if you're oversubscribing (telling 4 VMs they all have 4 cores when your host only has 8) but that's true for running on bare metal or in containers too

fair merlin
#

I think you'd be hard pressed to find many hosts in Minecraft that aren't over-allocated.

finite hinge
#

Sure but who is running folia on shared hosting?

fair merlin
#

Back to my original point: Don't use Folia on a VM.

#

And make sure the hardware you're using meets the recommended requirements.

finite hinge
#

I suppose this is just one of those "if you know what I said is wrong you don't need this advice" things

fair merlin
#

:)

pastel musk
#

I don't know how to compile folia

arctic tapir
#

then folia is not for you

limpid fable
#

is it impossible to use player.getBedSpawnLocation() on Folia? whatever I try I get a off-main scheduler error.
Which scheduler would be the correct one, to get the main thread scheduler?

subtle oriole
#

player.getScheduler() I think

limpid fable
#

I tried using that (or well, scheduler.runAtEntity(player, () -> { var loc = player.getBedSpawnLocation(); System.out.println(loc.toString()); }) from FoliaLib)

#

but it returns the same error

#

looking at the Folia code for tick thread checking refers to the chunkX and chunkZ, which I don't even know how to get since that's exactly what I want to figure out 😂

limpid fable
#

alright, thank you

#

but we got past the thread check

#

also getting the bed position across worlds doesn't work, it throws java.lang.IllegalStateException: World mismatch: expected world but got world_nether in net.minecraft.world.level.Level.getCurrentWorldData(Level.java:219) (I'm trying to write a /home bed command)

timid grotto
finite hinge
#

Sounds like a bug, it should be the entity scheduler

#

The tree gen error happens when you try to use the async or global scheduler for something that is supposed to be in a region-specific one

#

And the entity schedulers are basically region-specific ones that keep in sync with the region of the entity

mystic shard
#

How many percent is Folia ready?

tacit tartan
#

There's no number. It's still at a point where we're deliberately gating access behind knowing how to build it as a result of it's relative stability.

pastel musk
tawdry gullBOT
#

⚠️ 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.

tacit tartan
#

We are for most things, but Folia is intentionally made difficult to use due to the instability and potential bugs of it.

pastel musk
#

just curious, why is it made difficult?

tacit tartan
#

It's still a quite experimental software. There's several systems that haven't been implemented yet, plugins have to explicitly support folia, and it's likely there's still some serious bugs that haven't been found yet. By gating access behind the knowledge of how to build folia, it's assumed you would then also possess the knowledge of the risks you're taking, how to update any custom plugins to work with it, and just in general you know what you're doing

pastel musk
#

oh, ok

#

then, I tried to follow a video to compile folia, https://www.youtube.com/watch?v=oTh9DjFgmTM, but this happend

Folia is a Paper fork adding regionalized multithreading to the server to support large amounts of players playing on the same server without the need for BungeeCord.

It works by grouping nearby chunks to form an "independent region."

Each independent region has its own tick loop, which is ticked at the regular Minecraft tick rate (20 TPS). T...

▶ Play video
paper siren
#

You‘re most likely running in the path length limit, move the repository to a less nested directory or enable long paths

round birch
#

I've got a domain setup with an SRV record since I don't have a dedicated ip
sometimes the players report having some other server in their server list,
which just so happens to be the server with the same ip, but 25565 as the port

#

is this a dns problem?

fair merlin
#

Yes.

round birch
#

how does it work most of the time, then?

#

I've had the same dns config for years, only now when I changed the ip/port and kept everything else the same it started happening

#

oh sorry I just realized this was a folia channel, they look pretty similar

fair merlin
#

@prime juniper if someone can’t figure that out then we’d prefer not tell them. Since Folia’s still under active development only people who know how to build/fetch it should be using it right now.

pastel musk
fair merlin
pastel musk
#

Oh, like c\users\whatever my name is\folia

arctic tapir
#

do it directly on C:

pastel musk
#

I am at music school so I don't have my pc with me. i will enable long file paths. What else should I do?

#

My username folder is 20 characters long

arctic tapir
#

ok

lofty magnet
#

just move it somewhere else?

arctic tapir
#

do it C:/

pastel musk
#

Isn't it dangerous

lofty magnet
#

wat

pastel musk
#

Putting Minecraft stuff directly in the c drive

arctic tapir
#

3 options, use WSL, try long path, on top of the c drive

pastel musk
#

Wdym wsl

lofty magnet
#

could also just use a completely different partition

arctic tapir
pastel musk
#

Yeah. I have a e drive

#

Can put it directly there

lofty magnet
#

but no, nothing is more "dangerous" in creating a folder in C: directly than having it anywhere else on your system

#

access to files/resources are not determined by where it is but by permissions on the file itself

pastel musk
#

It may ruin bill gates when I restart pc

#

I would probably put it in e drive

gentle raven
pastel musk
#

I know

#

I probably will use the. E drive to store folia. Btw, what caused that error?

gentle raven
#

probably the path length

lofty magnet
#

windows gets dumb with long paths

gentle raven
#

why do they even have that limit?

arctic tapir
#

becuase windows

gentle raven
#

makes sense

lofty magnet
#

legacy reasons probably

pastel musk
#

I probably will fail wsl

gentle raven
pastel musk
#

Oh

gentle raven
#

i use windows for it aswell

#

just disable the path length limit or put it at head of c

pastel musk
#

Then how should I proceed after moving folia tone drive

gentle raven
#

follow the build instructions on the paper repo

pastel musk
#

Ohb i will tell you when I have another errorn thanks

pastel musk
#

I was using GitHub to clone the respiratory but some files say their resource is unavailable

limpid fable
#

read the entire error

timid grotto
#

or just use git from command prompt

solid mirage
#

I have an EPYC 7B13 server with 128c256T and System is Windows Server 2022 How can I set JVM startup parameters to make the best use of Folia,I want Folia make full use of my CPU core

#

But the server looks very sluggish

#

I don't know what the problem is

fierce knotBOT
solid mirage
#

java -Xms100G -Xmx100G -XX:ActiveProcessorCount=256 -jar server.jar

fierce knotBOT
solid mirage
#

JDK:zulu21

fair merlin
solid mirage
#

No, this is a physical machine

#

but the system is windows server 22

#

It has 128cores and 256Thread

fair merlin
#

Ah gotcha. I don’t know that CPU as well.

I would really recommend running in Windows, for starter

solid mirage
#

I am a dual CPU server. one cpu 64cores and double 128cores

fair merlin
#

Oh yeah. NUMA is not supported.

#

You probably want to disable a CPU.

solid mirage
#

Do you mean that I should turn off NUMA to improve Folia performance?

#

I dont want to disable a CPU,should i disable it?

fair merlin
#

I would.

solid mirage
#

ok i would try to turn of numa soon

solid mirage
fair merlin
#

Yes, but Folia isn't designed for multiple CPUs

fair merlin
#

Not sure if/when NUMA will be supported.

viral stone
#

Folia uses more cores, but

  1. It's still ticking individual regions just like it would tick many other servers
  2. Java does not have support for NUMA awareness inside of applications, and that's an architectual issue that you would want to design an app for, not try to bodge into down the line
timid grotto
#

well its on 2 cpus, not 1. as discussed, that is a source of slowdowns

viral stone
#

10x, no; not unless you get some really bad luck I guess

solid mirage
#

ThankU very much !!! I found the plugin.

#

But It seems that folia use not more than 64 Thread? Whats the problem?

fierce knotBOT
solid mirage
#

When my Folia server is high stressed only CPU(Thread) 0~63 is full,others mostly Empty

#

but paper global threaded regions I set 200, so should i use linux to run folia?

#

netty io :32 work thread:30 io thread: 10

inner swift
#

You should use Linux to run large scale MC stuff

#

Well, how many loaded regions out of these 200 do you have?

solid mirage
#

my server have 300+ players and over 200 regions

#

simulation distance 4

inner swift
#

Looks about right then, region threads aren't guaranteed to be put in different CPU cores

solid mirage
#

Yes, a large number of regions cannot run on more CPU cores, so there is no other way besides replacing windows with the Linux system, right?

inner swift
#

Windows should be able to use more than 64, it's just not doing that because it feels like it doesn't need to

solid mirage
#

Sure,I have found that it is a plugin issue yet, but the funniest thing is that the plugin causing MSPT 1000 is Spark. I deleted the spark and then the server has never been stuck

bold osprey
solid mirage
#

Will the 64 thread limit problem be related to the memory channel? Epyc supports 8 channels, but currently I only setup 2 channels

solid mirage
bold osprey
solid mirage
#

very healthy

#

but in plugin, I get method Runtime.getRuntime().availableProcessors();,,,then it only return 64,,,,,,

bold osprey
#

it's perfect 20 tps

#

that means that 1 thread can tick several regions

solid mirage
#

okay when tommorow i got 300+ players and then i will give a screenshot to you

solid mirage
#

public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (command.getName().equalsIgnoreCase("gg")) {
for (Player player : Bukkit.getOnlinePlayers()) {
player.getScheduler().run(this, scheduledTask -> {
while (true) {
for (int i = 0; i < Integer.MAX_VALUE; i++)
Math.sqrt(i);
}
},null);
}
return true;
}
return false;
}

snow bronze
#

what permissions plugin works with folia?

minor dagger
#

womp womp crypto

snow bronze
#

i just loaded it and it failed to load

#

If I could find the ubuntu command to compile luckperms I have the github repo cloned to my server. I do this all the time with maven, but I've never done it with gradle

#

I've been searching google, but I haven't found anything straight forward yet

snow bronze
#

i figured it out

livid crag
livid crag
#

So I can expect it tomorrow? enrolledchatting

pastel musk
viral stone
#

your setup is screwed

#

something is wrong with git and your OS environment or something

pastel musk
#

what should I do???? 😦

viral stone
#

No idea

pastel musk
#

let me try reinstalling github

#

and git

pastel musk
#

I tried a complete reinstall and it still shows missing files

#

when i clone folia

fair merlin
#

You’re going to run into a bunch of other issues debugging and writing plugins

pastel musk
daring nimbus
#

Building on Windows can be tricky. Would recommend using WSL at least

pallid plume
#

java.lang.NoSuchMethodError: 'void net.minecraft.world.phys.shapes.VoxelShapeArray.initCache()'
at net.minecraft.world.phys.shapes.VoxelShapeArray.<init>(VoxelShapeArray.java:30)
at net.minecraft.world.phys.shapes.VoxelShapes.lambda$static$0(VoxelShapes.java:23)
at net.minecraft.SystemUtils.a(SystemUtils.java:387)
at net.minecraft.world.phys.shapes.VoxelShapes.<clinit>(VoxelShapes.java:18)
at net.minecraft.world.level.block.Block.a(Block.java:136)
at net.minecraft.world.level.block.BlockFireAbstract.<clinit>(BlockFireAbstract.java:26)
at net.minecraft.server.DispenserRegistry.a(DispenserRegistry.java:70)
at net.minecraft.server.Main.main(Main.java:135)
at org.bukkit.craftbukkit.Main.main(Main.java:324)
at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:42)
at java.base/java.lang.Thread.run(Thread.java:840)

#

keep getting this error

#

have tried reinstalling folia and java

#

idk if this is the place to put errors and if not could you direct me to the right place

#

i have only had this problem on my server and not on my regular pc

server is running a fresh install of windows 128gb ram dual cpu and the actual folia files are located on the (E:) drive

fair merlin
#

I wouldn’t run Windows for Folia and dual CPUs aren’t supported by Folia either.

#

Not sure what your server setup it but if it runs on your PC then it sounds like your server is the issue.

lone sand
#

anyone with a tpa plugin for folia? cba to make it

pseudo ibex
#

If you go on Hanger there should be some

#

What does cba mean?

timid grotto
#

cant be asked

#

means "i am too lazy to do it myself"

pseudo ibex
#

Ohhh

viral stone
#

assed*

pallid plume
lone sand
viral stone
#

do note that spigot removes plugins which don't work on their software

lone sand
#

(forgot to push a fix for aikar commands framework, i'll push when i get home)

pastel musk
#

I just want to be able to survive a lag machine

#

and explore with the new technology of folia

#

but I saw someone ran folia on their pc in a video

#

so exactly how should I use

#

WSL

livid crag
#

This isnt really a channel to teach you how computer / OS works

pastel musk
#

currently doing wsl --install

livid crag
#

his point is that if you do not have such knowledge, you should not be isung Folia because it requires way more knowledges to run because it is not released yet

#

Do you know that all plugins wont work with Folia?

pastel musk
#

and why would part of folia not get downloaded. I know all plugins fail

livid crag
#

are you running a server with zero plugin? or a very limited selection that has Folia support?

pastel musk
#

no plugins

#

why it is not released yet? just curious

livid crag
#

We do not want people with no deep knowledge of the eco system to run it and come here to complain that it doenst work.

#

or worse yet, go to plugin developers and demend them to provide support for Folia

warped tulip
#

Is there any documentation for the best way to allocate the threads?
I currently have a AMD Ryzen 9 5950X @ 3.4 / 4.9Ghz with 16 cores aka 32 threads and instead of testing what is the best is there anyone that uses a similar thread number and found the most optimized allocation

vestal urchin
tawdry gullBOT
#

⚠️ 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.

pastel musk
#

I read the github error and it says that cygwin.dll is probably missing and that there is an error with child process with exit code 11

tawdry gullBOT
#

⚠️ 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.

pastel musk
#

sry for accedentally turning on the bit

#

bot

bold osprey
#

try reinstalling it

pastel musk
#

ok

#

which java version?

pastel musk
#

java 21 or java 17?

pine gull
#

Is there a supported plugin that you recommend to prevent players from breaking blocks in spawn?

craggy quail
#

Assuming you only have a vanilla spawn location, I think you can just use spawnProtection in server.properties

pine gull
pastel musk
pine gull
#

17

pastel musk
#

oh, I thought 21

#

why gamble on java versions?

#

they each have their pros and cons

#

@primal quail

viral coral
#

21 is fine

#

17 is the officially used version by minecraft and paper

#

pick your poison

pine gull
#

I personally use 17

pastel musk
#

I tried, but the errors still ocurr

fierce knotBOT
pastel musk
#

that is the exact error

craggy quail
# pastel musk I tried, but the errors still ocurr

The error isn’t to do with folia IMO. It’s not even related to Java. Looks like the Cygwin install is broken and git cannot function, so GitHub and gradle both fail.
You should probably

  1. follow whatever instructions the error messages are giving you
  2. search for those error messages if you are still having issues
  3. seek help from the Cygwin community
    Once you get your git/cygwin situation sorted:
  4. successfully build Paper from source. You should only start trying to get folia after you have a machine setup that can build Paper from source. Until then your issues are very specific to your setup, and the solutions will be documented in a bunch of places other than the folia channels.

Troubleshooting techniques you should try to focus on:

  1. Read error codes. They are there to help you solve problems. If you don’t understand every term in them, then look up the terms.
  2. work to understand the system. Often, you can figure out the solution to problems simply by reading up on the how the system you are working with works.
  3. isolate the problem. There are a bunch of tools that you are interacting with if you want to successfully build the jar file. Ideally, when you are testing a problem you only want to test the broken parts and keep things simple. In this case, you can test if your git command is broken by cloning any public repository from GitHub.
pastel musk
#

thanks for the advice

#

so would I need to install cygwin?

pseudo ibex
daring nimbus
#

idk if building on Cygwin even works tbh. If you need to build on Windows, I would recommend just using WSL

pine gull
#

Is this what you're talking about?

pseudo ibex
pine gull
#

I already have a working worledit fork

pine gull
pseudo ibex
pseudo ibex
pine gull
#

Is it possible that it is not up to date?

pseudo ibex
pseudo ibex
warped tulip
pastel musk
#

probably my pc has a big error

#

which i am not responsible for

#

since I did not make it happen

pseudo ibex
limpid fable
#

I have the same issue, generally with mob spawning...
if I disable per player spawn caps my metrics tell me that I'm usually at ~4k entities, but people report that there's nothing spawning
if I leave per player spawn caps enabled, I shoot up to 50k entities and the entire ocean is filled with squids and land is filled with animals... and I've already reduced mob limits so I have 0 clue what the actual issue is...

#

oh, and mob (like, bad guy) spawning is way too low for some reason

viral stone
#

there is an issue on the tracker, I think leaf was having issues reproducing it however

limpid fable
#

our mc project is open for registration if he wants it reproduced lul

viral stone
#

I mean, that's useless

#

Cool, we can see that people are having issues, that's literally already documented on the issue tracker

#

We have no means of reproducing it in a controlled environment at the moment, however

limpid fable
#

what I've figured out: have ~30 people on a server, in the same region, with default mob spawning rules and be near an ocean

#

the ocean will entirely fill with squids and fish in a matter of minutes

viral stone
#

then document that on the issue tracker

limpid fable
#

could you link me the issue?

viral stone
#

idk what all is documented there, for all I remember people where generally just reporting that it was borked, if theres certain conditions that people can identify which make it occur, then he needs to know so that he can look into it better

limpid fable
#

I'm not on a PC rn

viral stone
#

I don't have a link

warped tulip
#

its all i need

limpid fable
viral stone
#

wat

limpid fable
#

the heck? I swear, it wasn't showing the commit on my side

#

well alright then, I'm gonna rebase my changes

#

Yep, nope, we have that patch already in our Folia build

#

so that patch doesn't seem to fix it

#

well, Imma have fun debugging this

pseudo ibex
timid grotto
#

<@&748618676189528155> ^

marsh mapleBOT
#

(657b3f7342b7936e54a59f8e) // @latent pine (@zstzbxn / 245240991269912576) has been banned by @jagged ether (451779815415218177)
Reason: crypto scam

timid grotto
prime juniper
#

pplease put more support for folia!

arctic tapir
#

what

gentle raven
young burrow
#

hey

fair merlin
#

Hi.

brisk dragon
#

Sorry if this is a stupid question but i have been coding with bukkit/spigot/paper for like 10 years now so ud THINK i know what im doing but idk. What OS do you recommend for folia as I plan to buy a local machine to run a dev server till a release in 6/7 months. Also is there any documentation on how to build it or code with it? If this has been answered else where linking it is fine but i didnt see it tyyy <3 (PLEASE @ ME WITH REPLY)

#

Also another question thats a bit more generic, when i locally hosted servers in the past people in the UK would get same ping as if i hosted it with a company but when i do it local people elsewhere (in the US for eg) they get WAY better ping from a uk hosting company (compared to local) is there any glaring reasons why and is there any sort of tech i can do to help it? If local hosting was possible for release id love to go down the server rack route

void elbow
#

Hi all. When is 1.20.4 folia?

fair merlin
fair merlin
brisk dragon
#

i was thinking cent os too but idk

livid crag
#

That’s a hell no on that one

#

Just use Ubuntu if you are unsure

brisk dragon
brisk dragon
#

ah okay simple enough, idk why i assumed it would be different from paper

#

yeah i guess that makes sense

finite hinge
#

CentOS is kind of just a bad Arch these days, no?

#

It's not compatible with RHEL and is a rolling release thing so never "stable"

slate lynx
#

I got a bad arch on my back these days

tawdry gullBOT
jagged ether
#

We intentionally don't provide downloads

#

You can build it yourself

prime juniper
#

hi

pine gull
#

Is there a permission plugin you recommend for folia?

arctic tapir
#

there's a luckperms pr/branch

pine gull
#

I couldn't run luckperms in the latest version.

arctic tapir
#

did you use the one from the pr

pine gull
#

nope

#

can you post a link?

arctic tapir
#

no

#

its on the luckperms github

pine gull
#

thats?

arctic tapir
#

looks like luckperms

pine gull
#

I already built the source code on github but it didn't work.

arctic tapir
#

did you use the correct branch

pine gull
#

I used gradlew via cmd. Let me try Intelliji now.

arctic tapir
#

did you use the right branch

pine gull
#

i think so

pseudo ibex
#

I am using it on the latest version of Folia and it works fine.

young burrow
#

startup flags same as paper ?

arctic tapir
#

yes

pine gull
pseudo ibex
pseudo ibex
pine gull
#

im tryingg

pine gull
young burrow
#

if i have some custom patch files which one do i put them under @primal quail

pseudo ibex
prime juniper
lofty magnet
#

easy: write them/get your/some devs to write them (e.g. with money, which you seem to have if you think that folia is a valid solution for your setup)

prime juniper
viral stone
#

Plugins existing has literally nothing to do with us

finite hinge
#

Folia only potentially makes sense for you if you have hundreds of players

#

If you have that you should either be milking your whales with stupid microtransations or have some devs in the community that help run the server

#

So you have either devs or money to hire devs

proud marlin
#

Good night, do I need anything else to compile Folia by taking the zip file from github?

fair merlin
proud marlin
fair merlin
proud marlin
#

I only came to know if it was possible without cloning the repository, thank you very much for the support ^^

fair merlin
#

It should be, but since it's in active development you'd really want to clone it. Especially if you need to switch branches and stuff.

finite hinge
#

Pretty sure you have to clone

placid pelican
#

Hi! if I want to use Folia, can I only build it myself? or there's a build i can download

arctic tapir
#

build yourself

lapis igloo
lofty magnet
#

wasn't it one of the paperweight tasks one needs to run to build stuff with it? not entirely sure, haven't messed with forks in a long time

jagged ether
#

yeah that's not the command to build a working jar

lapis igloo
#

Ops

#

./gradlew createReobfBundlerJar

young burrow
#

how do i change the core usage from 6 cores

#

to 24

#

for all the stuff

#

i have a xeon server

paper siren
#

that's not how it works, while you can increase the threads used for region ticking, you really don't want to have too many threads trying to get cpu time

young burrow
#

oh ok

#

so the default 6 should be good enough for an anarchy server that i want to hold 800 players ?

#

im paying some guy to join with 500k subs so i wanna make sure everythings good

tawdry gullBOT
#
Folia

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.

young burrow
#

im very new to this

viral stone
#

there is a whole list of documentation to read there

paper siren
#

probably not, but then a xeon also probably isn't a good choice

young burrow
#

alr thanks

#

yeah id assume an i9 13th gen would do better which i intend to goto

viral stone
#

This software is not ready for prime time, and so documentation is still all over the place, but, generally describes stuff well enough

young burrow
marsh mapleBOT
#

(6582084142b7936e54a59f9e) // @short imp (@yeetusthyself / 743670340475027567) has been banned by @viral stone (126975485493248000)

gloomy vault
#

Hello!, Is there a way to enable arena dupes within my server?, i has been try with plugins but no one works 😦

livid crag
#

What is arena dupes?

gloomy vault
livid crag
#

The only plugin that works are for Paper that can dupe “sand blocks in item form” via end portal

#

It’s called gravity control

#

I am not sure if it works on folia you will need to check

gloomy vault
#

i try that plugin

#

it don't work with folia

fair merlin
#

Then no luck.

jaunty jewel
#

`* What went wrong:
Execution failed for task ':paper:patchCraftBukkit'.

io.papermc.paperweight.PaperweightException: Command finished with 128 exit code: git -c commit.gpgsign=false -c core.safecrlf=false clone --no-hardlinks C:\Users
37069\projektai\wexhost\sistemos\minecraft\building\folia\Folia.gradle\caches\paperweight\upstreams\paper\work\CraftBukkit C:\Users\37069\projektai\wexhost\sistemos\minecraft\building\folia\Folia.gradle\caches\paperweight\upstreams\paper.gradle\caches\paperweight\taskCache\patchCraftBukkit.repo

`

anyone know how to fix this error?

viral stone
#

Use a shorter path

jaunty jewel
#

tnx

jaunty jewel
#

The Daemon will expire immediately since the JVM garbage collector is thrashing.
The project memory settings are likely not configured or are configured to an insufficient value.
The memory settings for this project must be adjusted to avoid this failure.
These settings can be adjusted by setting 'org.gradle.jvmargs' in 'gradle.properties'.
The currently configured max heap space is '512 MiB' and the configured max metaspace is '384 MiB'.
For more information on how to set these values, please refer to https://docs.gradle.org/8.4/userguide/build_environment.html#sec:configuring_jvm_memory in the Gradle documentation.
To disable this warning, set 'org.gradle.daemon.performance.disable-logging=true'.

FAILURE: Build failed with an exception.

  • What went wrong:
    Gradle build daemon has been stopped: since the JVM garbage collector is thrashing

this something. Is it something with ram or what and how do I fix it?

daring nimbus
#

yes. the linked page tells you how to give it more

fluid cradle
gloomy vault
#

ty

gloomy vault
#

Thanks you very much blobheart

#

Btw, does anyone know of a plugin that can be used to control the worldborder? I realized that the /worldborder command does not exist for some reason and I suppose the only alternative is a worldborder control plugin? but I can't find any that work with Folia

fair merlin
#

Folia plugin support is still nascent.

#

You may want to make sure there are plugins that support what you need, along with having enough system requirements and the correct use case to use Folia to begin with.

#

Players 1500 blocks apart, etc etc.

fluid cradle
# fair merlin Players 1500 blocks apart, etc etc.

I use 10000x10000 worldborder, and Folia works better than Paper for my project, the only thing that is poorly optimized in folia is the spawning of mobs, they cannot be properly limited and there are some bugs with "triggered mobs" and mob-spawning

fair merlin
#

I was talking to the person above you.

gloomy vault
#

Ty!

fluid cradle
fair cloud
#

paper plugins support folia?

hexed ice
#

paper plugins don't automatically support folia

fair cloud
#

how can i learn folia?

viral coral
#

you look at the readme

sick bane
#

hello I can't compile folia, I'm on a codespace on java 21

./gradlew applypatches

> Configure project :
paperweight-patcher v1.5.9 (running on 'Linux')

> Configure project :paper
paperweight-core v1.5.9 (running on 'Linux')

> Task :paper:decompileJar FAILED
> Task :getPaperUpstreamData FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':paper:decompileJar'.
> io.papermc.paperweight.PaperweightException: Execution of 'org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler' failed with exit code 143. Log file: /workspaces/Folia/.gradle/caches/paperweight/upstreams/paper/.gradle/caches/paperweight/taskCache/decompileJar.log Classpath: /home/codespace/.gradle/caches/modules-2/files-2.1/net.minecraftforge/forgeflower/2.0.627.2/e7434db4306e8dd6cc81c2a72a5d700caefca09/forgeflower-2.0.627.2.jar:/home/codespace/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/20.1.0/2fcd1f3225bca0c4a7bc931142076f8c1e80993f/annotations-20.1.0.jar

* 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 1m 31s
2 actionable tasks: 2 executed
viral stone
#

the fuck is exit code 143

#

See the log file, I guess

#

The code 143 indicates that the pod was terminated gracefully by the signal SIGTERM. and the Kubernetes cluster needs to reclaim those resources.

sick bane
#

ok so my github codespace is not powerful enough x)

#

I will try on my pc
edit: I've managed to compile folia on my pc thanks

gloomy vault
#

Because thats what im looking for

#

I want do a "Battle royale" event in my server and i want to close the worldborder

timid grotto
#

the vanilla worldborder is (effectively) disabled, so youd need a plugin that reimplements most of its functionality

vagrant monolith
#

Hello,
I am fairly new to plugin development and converted my Plugin (just for some friends) to work with folia (it was straight forward). But now I am stuck at the point of changing the time with world.setTime(0). It tells me that is it not globally possible to change time.
Then I tried to run the command time set day as the server via plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(), "time set day");. But it gives me an error that is is asynchronous an thus not working.

I intentionally do not share the error log, because I think I am at a dead end either way. Is there a know, yet simple way of changing the time/skip night. (It does not need to be efficient)

Thanks :)

timid grotto
#

"just for some friends" sounds like paper would be better, but theres a "global" region that you probably need to use for that

gloomy vault
#

oh i found one

fair merlin
hearty grail
#

I want to test some stuff with folia, but where do I find the compilation guide?

viral stone
#

paper readme, clone the folia repo instead

hearty grail
#

Thx

hearty grail
arctic tapir
#

github

hearty grail
#

Ah was looking at the wrong docs, found it

simple summit
#

I was looking to the build guide too but I havent found anything...

arctic tapir
#

scroll up

warped tulip
#

Is there a supported plugin that changes the player nametag above their player?

warped tulip
#

Yo can you slide me that protocllib support?

pseudo ibex
warped tulip
#

Thanks for the response

pseudo ibex
humble raft
#

hi ! I have a question, folia is use for server with a lot of CPU thread ? for a better multi-threading ?

#

I have dual Intel® Xeon® CPU E5-2689 with a total of 32 thread at 2.60 Ghz

sudden tusk
#

I mean, already answered that 😂

It's for wanting hundreds on one server in specific setups. Needs ridiculously powerful CPU.

sudden tusk
humble raft
#

I want to test it but I don't understand how to compile that

#

when I test to compile that I have this error :

viral stone
#

first step is to clone the repo

humble raft
#

yes I do that with Github Desktop

#

and I have this error when I do gradlew.bat applyPatch

viral stone
#

other than that, try a shorter path, i guess

humble raft
#

oh thank's that work x)

#

I have a question can I compile that on my windows computer and after copy that on my server ?

viral stone
#

if you mean, can you copy the compiled jar, yes

#

if you mean, can you copy the source folder to a server, generally a bad idea

humble raft
#

ok thank's

#

with folia I can use all standard plugins ?

finite hinge
#

If your players aren't really spread out folia won't do anything for you

#

No, Folia is not compatible with any Spigot/Paper plugins

#

Some plugins support both but they have to explicitly support Folia

humble raft
#

ok folia is good for faction server or survival server ?

finite hinge
#

It can be, yeah, so long as your factions are very spread out

#

Like more than 1500 blocks from each other, the more the better

humble raft
#

ok thank's 🙂

inner swift
#

Your specific CPU will not be suitable for this kind of server, by the way

finite hinge
#

If any players are within 1500 blocks of each other they're in the same region, that means if A is 1200 blocks from B, B is 1200 blocks from C, and A is 2400 blocks from C they're in a single region because there is no large enough gap between them to get a split

finite hinge
#

Well, it's borderline

#

I'd worry the CPU is just bad for MC no matter what

inner swift
#

The single threaded perf of that CPU is really low, it'll struggle if a group decides to get near each other which tends to happen sometimes

#

I'd worry that it'd choke on a particularly heavy isolated player's base, as well

viral stone
#

at the end of the day, each region is basically a small MC server with some small amount of overhead to manage that

humble raft
#

what is the max of CPU thread I can use on folia ?

viral stone
#

you still need a CPU capable of handing that

#

there is no max

#

just, aspects like crossing silicon is slow

humble raft
#

oh ok

sudden tusk
mystic zenith
#

Sounds like this would be better served by a standard Paper server (assuming you don’t have a playerbase already and need the grunt performance + have the money to employ devs)

finite hinge
#

Most servers are better off with Paper

livid crag
#

Most sane server kept player max around 60 and make extra servers

calm fable
#

ive got a rather decently largish server, that im trying to optimize to hit the 200+ player mark, what flags should i be using on the start script and what are some kernel tweaks i should put in place, if anyone knows, any help is greatly appreciated

#

also is there a way to tell folia to be liberal on the region threads instead of making regions so large

fair merlin
#

The regions are dynamic, so no.

viral stone
#

the region size requirements are hardcoded due to vanilla behavioral concerns and performance

calm fable
#

my current issues is theres a lot of people near spawn, sim distance is 16 and 1 core gets a bit loaded at times and was wondering how to alleviate taht

viral stone
#

there is no way to aliviate that which isn't basically having multiple spawns

calm fable
#

ok cool, is there any known recommended startup flags and options for java for best optimization?

viral stone
#

No

#

We generally just point to aikars flags as a general good basis

calm fable
calm fable
#

so for anyone who asks in the future, i set these settings and it helped the server with performance noticeabley ```echo kernel.pid_max = 4194303 >> /etc/sysctl.conf # not really needed but good to have
echo net.ipv4.netfilter.ip_conntrack_max = 196608 >> /etc/sysctl.conf
echo net.netfilter.nf_conntrack_max = 1048576 >> /etc/sysctl.conf
echo net.core.rmem_max = 65536000 >> /etc/sysctl.conf
echo net.core.wmem_max = 65536000 >> /etc/sysctl.conf
echo net.core.wmem_default = 262144 >> /etc/sysctl.conf
echo net.core.rmem_default = 262144 >> /etc/sysctl.conf
echo net.ipv4.tcp_rmem = '32768 87380 65536000' >> /etc/sysctl.conf
echo net.ipv4.tcp_wmem = '32768 87380 65536000' >> /etc/sysctl.conf
echo net.core.netdev_max_backlog = 30000 >> /etc/sysctl.conf
echo net.ipv4.tcp_congestion_control = htcp >> /etc/sysctl.conf
echo net.ipv4.conf.all.rp_filter = 2 >> /etc/sysctl.conf
echo vm.swappiness = 0 >> /etc/sysctl.conf
echo net.ipv4.tcp_mtu_probing=1 >> /etc/sysctl.conf #only if using jumbo frames.

viral coral
#

that seems very doubtful

#

seems more like something that would be the result of "optimized sysctl parameters for performance" on google, practically none of these have anything to do with server performance

balmy meadow
#

idk much about linux kernel n shit, but yeah it's mostly all network related

viral coral
#

it's very likely to be more of a placebo than actual noticable performance improvements

fair belfry
#

why would you set the max pid to one below the default...

scenic sky
#

if there was a meaningful way to get more performance without impacting anything important, it would probably be default

#

this shits been tuned for years

timid grotto
viral coral
fair belfry
#

i guess its a distro thing

#

i checked on arch and ubuntu 23.10 and its both 4194304

viral coral
#

distros changing it to 4194304 is nice but yeah the default is still 32768

prime juniper
#

hey i got a question about folia.
on github folia recomends the cpu to have at least 16 cores but what are the downsites on running it on a 12 core 24 thread cpu?

fair merlin
#

It'll either run slower than Paper or it'll run so slow it crashes. Depending on the use case.

#

Folia isn't for everyone. It has a lot of specific scenarios in mind.

prime juniper
#

ok thanks

#

its for an anarchy server

#

i plan on buying a 16 or 18 core xeon next year

#

it currently runs on paper on a 6 core 2.6GHz WM

#

well thanks for the tip ill be looking for e5-2698 v3 or 99

prime juniper
#

ye i can just test folia on diferent hardware and see what it does

tawdry gullBOT
#

⚠️ 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.

livid crag
#

I mean it’s been months since 2b2t deployed it and if there are huge issues, we’d known it seeing that server has 300 players daily actively trying to dupe and exploits

tawdry gullBOT
#
Folia

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.

#

⚠️ 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.

fair merlin
#

For now we stick with our recommendations. But I don’t think it’s smart to tell people to use NUMA without warning them first about the possibility of large unexpected issues.

If it runs on fewer cores as a test, sure. But multiple CPUs are definitely unsupported and an unknown quantity.

#

Would much rather be cautious with people so they don’t run have issues

#

If they want to take the risk then at least they are informed.

finite hinge
#

4 cores or less, I bet it'll be slower 100% of the time. 8 cores or less, there might be cases where it's an improvement but they'll be niche. Past that it depends

sly elm
#

there is some overhead which can't be ignored, may or may not be a bit exaggerated but the point is mostly not to try running folia if you do not have the hardware and means to support yourself on it

#

for the average server paper is going to be a good choice

calm fable
#

the box im running folia on a 5950x with 64gb of ram and twin 2tb nvme's in mirror, which is async mirroring to an iscsi volume from my nas. its a pretty good setup i think, folia running nicely

pallid plume
#

is there a setting that starts to remove objects from the ground, because on my server dropped items are staying there forever and mobs wont despawn

timid grotto
#

dropped items despawn after 5 minutes

dawn hawk
#

how do I resolve this please?

#
threaded-regions:
  threads: 12
hybrid shore
#

Players MUST be at least ~ 1500 blocks apart so server can create new regions.

hybrid shore
dawn hawk
#

about 9x6k @hybrid shore

hybrid shore
dawn hawk
hybrid shore
#

your world?

dawn hawk
#

yes

hybrid shore
#

💀

dawn hawk
#

players are roughly evenly distributed

dawn hawk
#

they are more than 1500 blocks apart in many cases

#

there's 4 distinct islands, they're all 1500 blocks apart

hybrid shore
dawn hawk
hybrid shore
dawn hawk
#

well yeah, that's the issue

#

I haven't ran into that issue

hybrid shore
#

cuz players are too close to each other

dawn hawk
#

they're definitely not though, feel free to come and take a look

hybrid shore
#

Those "islands" how far apart they are

dawn hawk
#

roughly 2k apart

#

with borders, so players can't go into the spaces between them

naive fable
#

You included?

hybrid shore
hybrid shore
#

This is the issue

dawn hawk
#

so, what else can I do to troubleshoot this

#

during testing before this event, we didn't run into this issue

hybrid shore
dawn hawk
#

yes, we had 3500

#

peaked at around 6000 at one point

#

usually we use multipaper, but thought we'd give folia a fair shot

naive fable
#

"distinct groups" arent enought, there should be no players in between the regions

dawn hawk
#

there is no players between the regions

#

at all

#

as I say, I triple checked, in fact the plugin we wrote for the event teleports players out of the spaces between each region

hybrid shore
#

If a player from one island will come to the border of the island and second player from island that is near will come to the border too then regions will be as one.

#

That's probably what's happening to you

paper siren
#

I mean as you can see you have >400 players in a region

dawn hawk
#

I kicked players except for the two regions on opposite ends of the map

#

there's still 1 thread

#

I think there's something else interfering

paper siren
dawn hawk
#

oh yeah, but we need roughly 10x that

#

and the 10 day event just started today

#

youtubers have hit record, so I gotta fix this live somehow

naive fable
#

Do you have some kind of map with players`?

hybrid shore
#

red dots are players, if that happen then regions will merge into one

dawn hawk
#

I know how it works

dawn hawk
naive fable
#

What is the view distance?

dawn hawk
#

I have gone so far to turn off chunk generation and delete the region files between each team's area

#

currently, 6

naive fable
#

What is the event called?

hybrid shore
#

If I was you I would create island every ~ 5-10k to be 100% sure regions wouldn't be merged.

paper siren
#

as one region contains 24k chunks, players doesn't seem to be separated enough to allow the region to split

inner swift
#

1500 is pretty borderline, and actually might be below the minimum depending on your setup

dawn hawk
#

yeah the two groups remaining after I kicked everyone were roughly 5-6k apart

#

I'm almost certain it's nothing to do with regions merging together with that logic

#

I'm thinking it's likely something to do with another plugin we're running

#

perhaps grimac/viaversion would interfere somehow

#

or, it's just a misconfiguration that's snuck in

inner swift
#

Hm, I guess it could be a plugin

dawn hawk
#

that's what I was thinking too, but it's too late to trial it without, and the setup hasn't changed in any meaningful way since the tests

#

normally, we'd have a change freeze between testing and the event, but some config changes snuck in

#

where in the source is that 1500 value before they merge together, I'll rebuild folia to see if that logic holds up

naive fable
#

Not really

inner swift
#

That value is tightly coupled with the inner workings of the chunk system

dawn hawk
#

egh, so there's not really anything we can do other than hard cut to multipaper or something mid-event, this blows

naive fable
#

Move the islands further apart

dawn hawk
#

thing is, on day 8 I'll just have to put them back together again, so that's gonna be too much hassle

#

the borders are supposed to come down and the remaining people (roughly 500 or so) will be able to interact with each other

#

I know we can deal with that many people on a single thread, but for the next 8 days we were supposed to whitelist 10k more people

#

so unless i can just get someone to magically whip me up a plugin that will translate the coordinates in everyone's player data by a specified offset and move the regions on those two checkpoints, this just seems like a crazy workaround

finite hinge
#

Folia pretty eagerly merges regions (it has to choice, things would explode otherwise) but it doesn't split them back up as eagerly to avoid ping ponging

#

So once they're merged people have to be even further apart to get it to split again

dawn hawk
#

any suggestions how we can do that

#

we're locked into folia now

finite hinge
#

Restart the server, maybe

#

But next time someone manages to merge them you're stuck again

dawn hawk
#

wonderful lmao

tawdry gullBOT
#

⚠️ 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.

finite hinge
#

iirc you might be able to drop that to 5 with the cost just being extra locking but any lower and you run in to crashes

tranquil epoch
#

some basic math here is going to be very useful

#

at around 1500 blocks radius for each player means that they need (2*1500+1)^2=9 million blocks^2 of area

#

you have a world of 9000x6000 blocks, or 54 million blocks^2

#

this isn't even the right shift to adjust

#

it can't be adjusted either it will break the server

daring nimbus
#

easiest and safest might be simply moving the players further apart. and if you do it by just adding two empty regions inbetween

fair merlin
#

I mean if Leaf says “don’t do that” I think it’s best if we don’t recommend people do that.

#

Also a reminder that bot testing isn’t a great representation of real players.

#

There's still a difference between "don't do that" and "be wary".

livid crag
#

Done sorry leaf fixed it Clue

fierce knotBOT
tranquil epoch
#

the ticket shift grid size is critical as it determines the range of ticket levels that are usable

#

I would highly suggest trying to read the code that uses it rather than simply playing around with it

viral coral
#

should also be noted that there's a config option to change the region shift @dawn hawk

#

instead of manually patching it with the above

tranquil epoch
#

wont help him

#

still too small for the number of players he has

#

for 440 players you need a much larger world

#

I would suggest trying a 60,000x60,000 sized world

fair merlin
tranquil epoch
#

folia's current region recalculation logic is set to recalculate a region if 16% of its marked chunks are dead (i.e unloaded)

inner swift
#

To be fair, their situation read to me like they had 4 islands near the corners of the world, which should be their own 4 regions with all the player groups exclusively confined in each

fair merlin
#

And then said it probably won't help you and that he recommends you use a 60kx60k world or something.

finite hinge
#

Hey we're down to ~900 blocks now though instead of ~1500

pallid plume
#

there is a very low enderman spawnrate on my server is that Folia related or a player skill issue

#

for an enderman farm i mean

livid crag
#

is farm made at Y1?

pallid plume
#

actualy let me check

livid crag
#

no debate

pallid plume
#

k

#

they did yes

livid crag
#

remove keep-spawn-loaded on your config for the end.

#

that will help slightly

#

but otherwise, that's about it.

stiff basalt
#

Excuse me

#

When using the CDN proxy Folia (based on TCP load balancing), I found that I could not obtain the real IP address of the client (all were IP addresses of the node servers).I tried to enable the CDN's proxy-protocol-v2 protocol to let the server obtain the address, but it did not work. I also tried using the haproxy-detector plugin, but I am not sure if there are any solutions.

shell violet
stiff basalt
#

is folia support it?

shell violet
#

it should

stiff basalt
#

ok,thank you.

tepid fractal
#

Hey, am i alright to get a jar file for this please, not so good with java compiling and hoping someone can send it me, cheers

#

It does not have to be some official release or anything, just want to test folia

#

Or how do i compile it?

inner swift
#

The compilation instructions are the same as Paper, which are in the repo

tepid fractal
#

following them now, thanks for your reply though 😄

#

cant wait to check this thing out, been waiting a while, Microsoft and mojang half arsed the development of minecraft so Paper had to step in ahaha

#

have hit a snag though

fair merlin
radiant siren
#

Still need help with this, any ideas?

jaunty atlas
#

Doesn’t vanilla do this or was it removed in folia?

fair merlin
signal summit
#

help me please

#

where can I find the Worldedit plugin for Foila?

gentle raven
pseudo ibex
tepid fractal
#

been using Folia and its INSANE!

#

I have it running on an I7-4790K clocked at 5Ghz

#

Im just super thankfull that the paper team is a thing other wise I would have stopped playing minecraft years ago

dawn hawk
dawn hawk
#

zero plugins, same issue, seems to be something to do with using a map from 1.20.2 @fair merlin @primal quail

#

fresh map it's fine

fair merlin
dawn hawk
# fair merlin Sounds like some data messed up in the map, or a datapack

no datapacks, map is totally fine before running it with a 1.20.4 jar; it throws that error on join only after running it on the 1.20.4 server, then if you run that same map on a 1.20.2 server again, the same error is shown on join

I have to restore from a backup from before the map ran with the 1.20.4 server for it to be joinable again

I can reliably replicate the issue without any plugins & default config

fair merlin
dawn hawk
fair merlin
#

So walk me through how you're making the map / able to reproduce it.

Without any plugins or datapacks, you create a world on which build/commit of 1.20.4?

Or are you creating it on 1.20.2 and then upgrading it on 1.20.4? When you upgrade are you using --forceUpgrade ? (Don't do this if so)

tranquil epoch
#

please set debug in server.properties to true and check the logs

errant wyvern
#

If I have a skyblock server, and each island is in seperate world, will all the worlds run on seperate threads?

viral coral
viral stone
#

to clarify, each world will have its own regions, regions are ticked parallel, so, yes

#

the API doesn't support loading worlds, however

errant wyvern
proper coyote
#

How do I get a Folia .jar? I am stupid.

inner swift
#

You'd need to compile one, using the Paper repo's instructions

proper coyote
#

okay

#

sooo

#

Okay

#

I think I know what to do

warped tulip
#

I have a question when two people in different regions walk to eachother the regions merge?

inner swift
#

Yes

proper coyote
#

Why are there so many smart ppl on this server? Why am I the only stupid one...

warped tulip
inner swift
#

They might under the right conditions, but do assume that merging will be easier than unmerging

warped tulip
inner swift
#

The only solution I can give is making players be further apart

#

And make sure you're on latestx there were some changes

proper coyote
#

Can you send me a link to the Paper repo's instructions? I don't know what to do beyond this point.

tawdry gullBOT
#

⚠️ 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.

proper coyote
#

sad

tawdry gullBOT
#

⚠️ 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.

fair merlin
proper coyote
#

I did!

inner swift
#

Just run the bundler jar now

proper coyote
#

I figured it out!

#

I changed the name to server.jar and then started the server and I think it's working

#

Welp, I'm gonna test it out

fair merlin
#

Sweet!

proper coyote
#

To be honest, I didn't even do anything. I just found a ready to go folia on github.

fair merlin
#

That's not ideal.

#

We don't recommend running jars you find online because you don't know what's in them.

#

Same with downloading Paper from somewhere other than us.

#

People can put in backdoors, viruses, etc.

tacit tartan
#

(or really any software)

fair merlin
#

Well yeah.

proper coyote
#

Anyway...
It works!

proper coyote
#

How do I change the Minecraft version?

#

Is this related to the Minecraft versions?

arctic tapir
#

no

#

don’t touch that

proper coyote
#

Wait a SECOND?! Folia comes with anti-xray?! Amazing!

proper coyote
arctic tapir
#

you change the jar

proper coyote
#

oh no...

proper coyote
fair merlin
#

No.

arctic tapir
#

depends

fair merlin
#

Well, you can try, but probably no.

#

And 1.19 Paper plugins won't work on Folia.

#

Need to be made for Folia.

proper coyote
#

but it's 1.19 😕

fair merlin
#

Okay well you can try it, but good chance it won't work for 1.20.

#

Should probably also be running 1.20.4

#

Especially on Folia. Bug fixes, exploit fixes, etc etc.

proper coyote
#

yeah...

#

Oh well

#

I will try to compile Folia myself

#

maybe

#

and get 1.19 version

#

Oh wait...

#

If I just change the name to 1.19.0 it will work

scenic sky
#

why are you trying to use folia? do you really need it

proper coyote
#

check my bio

west lily
#

what hardware you got

fair merlin
#

Not sure how your bio shows whether or not you need Folia.

fair merlin
#

It's a pretty specific usecase.

scenic sky
#

i mean if you are going to run 100+ player events, you should have the skills to use it

proper coyote
#

I host MC events

viral coral
#

how large are said mc events

fair merlin
#

Okay. Do the events have the players all in one small area?

proper coyote
fair merlin
#

If so then Folia is definitely not going to be good for you.

viral coral
#

okay so give or take 5 players