#folia-help

1 messages Β· Page 19 of 1

urban delta
#

i see

rotund fossil
#

Is folia on 1.20.4 right now?

primal oyster
rotund fossil
#

The dev guide is missing?

daring nimbus
#

No one has written anything there yet. The region logic and overview pages in the "Administration" section of the folia docs should give you a good overview of what changed compared to Paper though

primal oyster
#

Folia still lacks lots of important events calls that help plugins like player teleport, spawn location and others

#

Its not gonna have a full dev API guide like that

subtle fjord
#

Does Folia have built-in config to limit number of cpu/threads?

primal oyster
#

If you're talking about regions yes

#

it's on one of the paper config and section conrains the word region

#

But that is already limited by default

subtle fjord
#

thanks

#

given that save-all is not available - how to people currently make backups without completely putting the server offline?

#

though I suppose I could just sleep until gc kicked in

hexed ice
#

i've always just done it while it's running without using save all/off

#

at least, the server i used to do stuff for

subtle fjord
#

I mean good point, need to check rclone, my only worry is that I upload a corrupted chunk because a write just happened.

lofty magnet
#

shutdown -> backup -> start back up is always the safest

#

even on paper save-all off is no guarantee that nothing gets written πŸ‘€

#

err wait, save off and save-all flish I mean

#

or whatever that syntax is, vanilla commands always have been weird there xD

subtle fjord
#

other way:

save-all -> save-off -> backups -> save-on

lofty magnet
#

no

#

you have to turn it off first, otherwise it might start an auto-save again after running the save-all

subtle fjord
#

yah, I use inotify to wait until no more changes happen

#

so technically:

save-all -> save-off -> waitsilence -> backups -> save-on

lofty magnet
#

well, but just because no change happens at one time it doesn't mean that no change is still queued?

#

of course this is a really rare edge case but still Β―_(ツ)_/Β―

#

literally no reason to not turn off automatic saving first

subtle fjord
#

its waitsilence, I wait for a set time - not just once-off check

#

but agreed, I will switch it around then, did not know save-all is queue

lofty magnet
#

use save-all flush if you want to save everything as instantly as possible (basically all on the main thread)

#

(well on Paper, no idea how that part works on folia actually thonk)

#

also pretty sure that doesn't even affect non-chunk-data πŸ‘€

subtle fjord
#

it doesn't but that is fine

#

obvs best is to take offline or use zfs snapshots πŸ˜›

#

honestly I don't think I even need it for folia.. save-off/on is enough.. with waitsilence I just need to increase timeout, its not like chunks are kept long in memory

tranquil epoch
#

something to note about folia is that level data (i.e level.dat) is not saved until shutdown, as I didn't find a way to make that thread-safe

livid crag
#

better shut done server to backup... even on regular Paper despite it seemly safe phosdorime

subtle fjord
#

I am curious about regions: is there some type of limit on how small they can be? So could a region be 2x2 chunks even though bordering chunks are "connected" via redstone?

I suppose I am curious how "slow" can the cpu really be vs number of cores, or if single-thread performance is still important to avoid regions having a low tps

fair merlin
#

Single thread performance is still important.

#

But you also need mor cores.

#

We still recommend 16 cores/32 threads, but you might be able to get away with less. It really depends on the setup.

#

The kind of cores you have matters as well as how many cores.

#

Same with Paper. Moreso with Folia.

#

If you only have like 2 cores you should just use Paper.

subtle fjord
#

yup yup.. what I expected.. so even with server cpu you will have to look at single-core performance..
I will test it out on an i9-13900 - only the performance cores. not ideal for sure, but for our number of players good enough.

timid grotto
#

regions will merge before they get close to bordering eachother to avoid issues with redstone and such

wild swallow
fair merlin
#

You can't.

subtle fjord
#

or if you use docker you can do cpuset.

primal oyster
#

You also do not want the regions to be that small either

#

You can end up having a bunch of other edge cases otherwise

subtle fjord
#

cooling is an issue, especially if you’d run on all cores. Also had bad experience with AMD chips crashing. Like Desktop CPUs are already bad as servers, but Intel are in my experience very stable still.

elder portal
# subtle fjord cooling is an issue, especially if you’d run on all cores. Also had bad experien...

Not sure if I understood what you said correctly. You're trying to say desktop CPU's are worse for minecraft servers than server CPU's? If so, then I'm afraid you're wrong. Especially Intel server CPU's have lower single-core performance than Intel desktop CPU's. That's literally why people use the desktop CPU's for minecraft servers. Can't say about AMD, since I've yet to build my new server rig, but it is going to be AMD.

subtle fjord
# elder portal Not sure if I understood what you said correctly. You're trying to say desktop C...

Nah, not what I meant, not sure how you read it that way, because even within that sentence I am pretty clear.
I am saying: there is a reason why server CPUs have lower performance per core - and always will have - compared to desktop cpus. Thats because they can guarantee cooling under 100% CPU across all cores without thermal throttling - as that is their main use-case.
But also because they are built for low chance of "crashing". And yet, we are in the unfortunate situation to have to rely on desktop CPU - as I do with my rack server as well.

YMMV, go with AMD if you have good experience. I got burnt and heard other DCs with Ryzen Desktop getting burnt when it comes to reliability / thermal - but I am sure there are also plenty of stories around Intel crashing - which comes to my main point: Server CPUs are just much more stable as hell πŸ˜›

elder portal
subtle fjord
#

hahaha.. yah.. like in general bad, but unfortunate necessity for MC..

urban delta
#

or just rent a server so you dont have to worry about cooling

subtle fjord
#

can't really, with my storage requirements I'd be paying a lot - but also where would the fun be?

urban delta
#

right

#

there's still a lot of benifits from renting a server than self-hosting

#

like you can choose the location

#

routing is probably better

subtle fjord
#

if you have the budget, for sure.. I use AWS for edge - which is quite premium network.

urban delta
#

I like OVH eco

subtle fjord
#

as edge? or for compute?

urban delta
#

For compute

#

yes but if you have experience for example

#

from what I see that guy does have experience

subtle fjord
#

always a thing of what ya need.. for smaller servers definitely makes sense to go rented.. at some point everyone outgrows a certain market/solution

urban delta
#

fair

wary shale
#

Does folia support paperweight-userdev? I'd like to alter world gen with new structures. Since datapacks are broken by folia I was hoping for a direct change of world gen code

arctic tapir
#

yes

#

see pins

#

in folia-dev

finite hinge
wild swallow
#

anyone though about using a 7995WX

#

192 threads and a boost clock of 5.1ghz, big boy server

primal oyster
#

who's selling that as bare metal lmao

#

that's a $10k cpu

wild swallow
#

gimme enough time ill get it

#

also newegg does but you gotta catch it right when its in stock

visual falcon
#

Only way to find out is to use it if your not worried about that kind of money.

jagged frost
#

Hi, I have a small SMP server with 30 - 50 players, which core is better paper or folia. I was told that "folia gives better performance only on large servers where players (150+) are dispersed. Otherwise, it will perform worse than paper"

viral stone
#

Folia has overheads, the nature of that varies

#

if your players aren't spread out enough, you won't have any of folias advantages

jagged frost
inner swift
#

If all players are less than ~900 blocks from each other (realistically, a fair bit higher to avoid region merging which will then have higher thresholds for unmerging), then that'd mean everyone is on 1 region

#

If everyone is on 1 region, Folia will perform worse than Paper (sure, there's nether and end regions too but that usually has too little load to be advantageous)

naive fable
#

I would make a script to check how many regions you would get with folia, and then see if it would be beneficial

wild swallow
#

are there any known land claim plugins that are working with folia?

signal pike
vale sable
arctic tapir
#

you need the shadow plugin, or change oacketevents to compileOnly and add the plugin to your server

twin spindle
#

Hi guys, I can use Folia now for production server replaced than paper?

inner swift
#

It's not a drop in replacement, very few plugins work

twin spindle
#

many plugins can't work now?

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.

inner swift
#

Every plugin has to be changed/remade to work with Folia

#

A few did

twin spindle
#

current version of folia?

#

I can get 1.20.4?

subtle oriole
twin spindle
#

how I can try use folia on production server?

timid grotto
#

clone it, build it, run it pretty much just like you would a paper server

twin spindle
#

this is don't break my exist world?

viral stone
#

This is prerelease quality software

#

It has been tested by many dozens of people

#

but, it is still prerelease software

twin spindle
twin spindle
tawdry gullBOT
#
__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.

twin spindle
twin spindle
#

I see in project folia 1.20.2

hexed ice
#

git checkout dev/1.20.4

subtle oriole
#

Version 1.20.4 is in a separate branch, just switch branches

twin spindle
#

I got error

#
Falling back to patching base and 3-way merge...
error: The following untracked working tree files would be overwritten by merge:
        src/main/java/io/papermc/paper/event/block/BlockPreDispenseEvent.java
Please move or remove them before you merge.
Aborting
error: Failed to merge in the changes.
twin spindle
#

I am cloned git from originaly from paper

#

what is scratch?

#

.-.

#

dude, I am cloned: git clone -b dev/1.20.4 git@github.com:PaperMC/Folia.git

#

hm, I am don't modify any files, so ok

#

in progress

#

what I can do else?

subtle oriole
#

The instructions on how to compile Folia are quite clear, if you don't know how to do it, Folia is probably not for you

gentle raven
#

probably a problem with windows file path limit again

twin spindle
gentle raven
#

no

twin spindle
#

so lol

gentle raven
#

either you use linux or wsl or you disable the limit in the registry and enable long paths in git

gentle raven
twin spindle
#

so completely going build

#

79%

viral stone
#

try a shorter path

steep elbow
#

folia readme last updated 7 months ago. are these still true?

Current broken API
Most API that interacts with portals / respawning players / some player login API is broken.
ALL scoreboard API is considered broken (this is global state that I've not figured out how to properly implement yet)
World loading/unloading

inner swift
#

Yes

twin spindle
#

folia jvm arg any?

fair merlin
junior osprey
#

Does anyone have any recommended startup flags besides Aiker Flags?

junior osprey
#

Thanks! It sounds like you use this on your Folia Server?

#

Oh god lol

#

Opinions on this?

junior osprey
#

Do you think the ZGC is likely be better than these?

fair merlin
urban delta
livid crag
#

pause time isnt everything either. Just becasue it reports a smaller amount doenst mean it is better Despairge

paper siren
#

Note that you should use generational ZGC from Java 21 if you want to use ZGC

livid crag
#

I trust you when you mean to change the flags means you fully understand how the stuff works... We do not need those everything flags from back to yatopia days to come back Despairge

steep elbow
livid crag
fair merlin
#

The README is accurate for the moment. It isn't likely to get updated unless any of those things change. But there's still commits happening, just not to the README because there aren't any relevant changes to the README.

calm fable
#

so when i look at the gradle stuff it looks like, we go from mojang's obfuscated release and then applying bukkit/spigot/paper/folia patches is that correct?

bold osprey
#

there's a big risk that ZGC will just destroy your cpu cache, resulting in less performance, and will give more load on the cpu, often resulting in less performance for individual threads

All those benchmarks can't be similar to real usage, and in comparisons between real servers with real usage using different well configured gc, the difference wasn't noticeable, but you always have the risk of messing something up with not properly configured gc which will end up crazy

#

G1GC is really well tested, so if you just copy and paste aikar flags you most probably will be safe and the maximum performance gain of using other flags is like 0.1%-0.5% (if you're lucky)

finite hinge
#

ZGC and Shenandoah give lower pause times but also lower throughput

#

They take more CPU time from the actual code you're running for barriers to allow the GC to run fully parallel

#

That might actually make sense for Folia since the whole point is having a lot of slower region threads

#

For Paper? I'd stick with G1GC I think

#

Also that github linked above is for the client

#

For the client you probably also care about having lower and predictable pause times more than you care about losing a couple percent of performance, gives smoother frame times

paper siren
#

yeah slightly lower throughput isn't a problem with Folia, while G1 pauses might cause global lag spikes

finite hinge
#

To be fair unless your max heap is over like 100GB G1GC is usually champ

#

As of like Java 14 anyway and improving more every version

paper siren
#

the only downside of ZGC in below 32GB heap settings is that you always have uncompressed oops

bold osprey
primal oyster
#

how much memory were you allocating?

twin spindle
#

I can get jvm flags for Folia?

paper siren
#

just use aikar's flags, unless you run into problems with it, in which case you can provide spark profiles etc

twin spindle
paper siren
#

there is a version of spark for folia

twin spindle
paper siren
twin spindle
#

Bukkit.getAsyncScheduler().runNow(adminInfo.getAdminInfoBukkit()
Can I use like BukkitScheduler with lamda?

viral stone
#

Well, yes

#

lambdas are just "basic java" as a means of defining an anonymous class

twin spindle
paper siren
#

and Consumer is a functional interface, so lambdas are allowed there

viral stone
#

Yes

sly elm
#

The anonymous class can implement consumer

viral stone
#

and lambdas can ave paramaters

sly elm
#

Implicitly

viral stone
#

This keyboard is about as tragic as my paternal love

twin spindle
#

so what I can need change for new API?

viral stone
#

Yes, read it

#

it's telling you that it's upset about the params

#

(task) -> or whatever

twin spindle
untold tulip
#

Good morning, my paper servers were starting with:
Starting process: /usr/bin/java -Xms7500M -Xmx7500M -Dterminal.jline=false -Dterminal.ansi=true -Dpaper.playerconnection.keepalive=60 -Djline.terminal=jline.UnsupportedTerminal -Dlog4j2.formatMsgNoLookups=true -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=20 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar paper.jar
no main manifest attribute, in paper.jar

and now I am trying to run the same to run a 1.20.4 folia server. Is there any line that needs to be change for it to work please?

inner swift
#

Should also work

hexed ice
#

you don't have to change anything, you have to use the right jar though

untold tulip
#

I have this in my pufferpannel:

${java} -Xms${memory}M -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dpaper.playerconnection.keepalive=60 -Djline.terminal=jline.UnsupportedTerminal -Dlog4j2.formatMsgNoLookups=true -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=20 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar paper.jar

hexed ice
#

you don't have to send it all again

untold tulip
#

okok if it's not loading do you have any idea?

#

I have this jar built

#

folia-server-1.20.4-R0.1-SNAPSHOT

hexed ice
#

you have to use the one in build/libs, not -Server/build/libs

untold tulip
#

ok thank you

#

imma go look have a good day! Thank you for Paper velocity and folia <3!

twin spindle
#

why schedule is ended?

hexed ice
#

what schedule?

twin spindle
#
Bukkit.getAsyncScheduler().runDelayed(adminInfo.getAdminInfoBukkit(), (scheduledTask) -> {
 }, adminInfo.getUtilConfig().getConfig().getIntervalReloadPlayers(), TimeUnit.SECONDS);

runnig one time and ended

hexed ice
#

use runAtFixedRate if you want a repeating task, what you have now is just a delayed task

twin spindle
#

and how I can configure my cfg folia for stable work?

#

like here, about 'Utilisation', 'Rate' and etc

viral stone
#

I mean, those are both metics of how much the system is being used

twin spindle
#

this is can't changed?

#

like IO threads, nettty etc?

viral stone
#

Theyre usage metrics

#

not limits

#

If you mean the 100%, that's down to the number of region threads you allocate

#

the rates are literally just tracking the rate at which something is occuring

twin spindle
viral stone
#

Read the docs

twin spindle
#

where? I don't found

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.

viral stone
#

it was noted in one of those somewhere

twin spindle
#

it's here?

viral stone
#

I guess so?

twin spindle
#

if I has 8c16t, how much can allocate?

inner swift
#

There's not a definitive answer for this

viral stone
#

There is some general advice on how to allocate your cores on the docs, we can't tell you what you specifically need

urban delta
#

with g1gc?

#

wtf

left gust
#

Why not listening playerjoinevent

narrow bough
#

I noticed a new option in 'paper-global.yml' called 'threaded-regions.grid-exponent' when building the latest Folia.

#

What does this option do?

wet arch
silent current
#

Hi friends, I met a problem.
I have two players (including me) in my server, I am here at (256,64,-256) and my friend is at (768,64,-256)
Here, I adjusted the server's simulation distance to 8 and the maximum visible distance to 10, but using the /tps command on the folia server side, we get the result that we are still in one area (the first picture shows a total of two areas, one of which is the main world and one of which is the empty island world)
I was very surprised so I downloaded the spark plugin to analyze it.
But in this plugin, I found that both of us players were again in area #21 and #22.(second and third picture)

Here is the spark analytics link for my server.
https://spark.lucko.me/2HB2bUWfP9

Problem.
1.Are my friend and I divided in one region or two regions?
2. will this utilize the power of folia's multi-threaded computing?

Thank you so much!

spark is a performance profiler for Minecraft clients, servers, and proxies.

viral stone
#

Yes

#

folia needs to seperate the world up into managable blocks of chunks, called regions; if chunks are too closed together, there is a chance they could merge

#

and, so, folia will treat them as one to avoid that issue

#

if you want more regions, people need to spread out as appropriate, current default config is like 900 blocks of seperation

#

if you have 2 players online, and there is an region with 2 players, it would generally be safe to assume that you're both in a singular region

silent current
#

Thank you so much!

viral stone
#

(do note that spark is looking at chunk regions, folias "regions" are the "ticking regions" that it itself defines)

silent current
#

got it

manic basin
#

What is totoal regions

#

i have 3 worlds but have 4 regions

timid grotto
#

if players are far enough apart (~1k blocks) it will split the region into 2

#

or more

manic basin
#

Oh ok

junior osprey
#

This will have a positive impact even if I am not a network right? Oh yea and should it be applied to the front or backend?

viral coral
#

doesn't really do much for minecraft

thin anvil
#

fast api or liar api what ya think

junior osprey
junior osprey
thin anvil
viral coral
#

dunno about that chief i've rented shady virtual servers from chinese hosts that only accept monero just for their networking

#

seen it all omegalul

#

if you're calling OVH a server with shady networking you have not touched many servers

thin anvil
#

Is there a plugin for adding custom named commands or a empty plugin that I can add commands by coding onto it?

viral coral
#

just build your own plugin?

#

what is this question

thin anvil
#

a new computer science student

viral coral
#

how do you expect to add commands without java into a java plugin

junior osprey
fierce knotBOT
thin anvil
junior osprey
thin anvil
#

by screesharing though

#

and sorry for ping in reply

viral coral
#

screensharing is a waste of everyone's time

thin anvil
hexed ice
#

editing a file in a zip isn't really decompiling and recompiling but sure

junior osprey
# thin anvil Is there a plugin for adding custom named commands or a empty plugin that I can ...

On a serious note here are the 4 libraries I have seen going around that may help you. There is not one I recommend more than another. If you plan on creating a folia supported plugin one of the first things you must do is have all processes that will use runnables and schedulers be replaced with Folia compatible ones. That is where these libraries will help. The second this is to have " folia-supported: true " in the plugin.yml.

**FoliaLib
https://github.com/TechnicallyCoded/FoliaLib

HSCore
https://github.com/HSGamer/HSCore

MorePaperLib
https://github.com/A248/MorePaperLib

Universal Schedular
https://github.com/Anon8281/UniversalScheduler**

junior osprey
thin anvil
thin anvil
hexed ice
#

using a library for library for schedulers seems silly when they're already built into the paper api

thin anvil
junior osprey
junior osprey
pseudo ibex
# junior osprey Yea it does.

When porting mcMMO I decided to use FoliaLib with HSGamer, TechnicallyCoded and Rockyers. Some of the changes to that library, came in part due to trying to make it easier to port mcMMO. I didn't think you'd know that, but yea some of the changes came from HSGamer.

thin anvil
#

can I ask something about one of your forks if you are available?

pseudo ibex
thin anvil
# pseudo ibex Sure

I actually downloaded your fastworldasync from folia-inquisitors then compiled it but it gave some errors is it unfinished yet or do I have any mistakes, and secondly same as for worldguard

pseudo ibex
pseudo ibex
#

I was able to compile it fine. I was using Ubuntu.

thin anvil
thin anvil
pseudo ibex
thin anvil
# pseudo ibex Can you elaborate more?

It will be a github page like paper hangar and I will give you guys the admin panel for you to mark a repo of yours as working or not, then if it is working it will compile the plugin from the repo on every new commit and put on the website I made for this for people to download the compiled versions

pseudo ibex
#

If I knew you better I think I would be more inclined to accept this offer, but it could present a security risk for all who download the forks off your site.

livid crag
#

Please note that we do not allow solicitation here even if you are offering something out of goodness, @thin anvil pleases refrain from using a help channel for this.

thin anvil
tall marsh
#

i mean you need to know how to compile folia to use them anyway, its not that much convinence iirc

thin anvil
fallow stone
#

Any crates plugins that support folia?

prime juniper
#

does the Anti-Xray work with folia? I've just tried to enable it and it's decided to stop the server from booting

prime juniper
#

i'm a dumbass, pretty sure it was a silly little formatting error

manic basin
#

Chunk loader not work in folia?

manic basin
#

I build chunk loader like this

#

I AFK in slime chunk & i build chunk loader in sugar cane farm

#

After waking up from bed, I didn't receive any sugar cane.

viral stone
#

folia generally prevents chunk loaders from working because their inherient nature would literally crash the server if it worked as intended

manic basin
#

need chunk loader by plugins?

arctic tapir
#

<@&748618676189528155>

marsh mapleBOT
#

(65b2632f42b7936e54a5a00b) // @real wharf (@theoverlord1090 / 319183538576687107) has been banned by @jagged ether (451779815415218177)
Reason: nsfw spam

fallow stone
#

Did someone ghost ping me?

#

Is there a crate plugin for folia?

manic basin
#

Me AFK in slime farm

#

But i want sugar cane too

inner swift
#

Cops need players nearby in order to grow, chunk loaders won't work for this in MC

subtle fjord
calm fable
#

is there a way to disable the wither death sound on folia? someone built a wither farm and they are cranking withers every few seconds and its quite annoying

manic basin
#

E-2288G vs 2388G what best for paper,folia

viral coral
#

the newer the better

#

you could probably run a low playercount folia server on a 2388g

manic basin
#

2388g Better?

arctic tapir
#

the newer the better

manic basin
#

Ok

primal oyster
#

i do not recommend it

#

πŸ™‚

fair merlin
#

2288G is a decent CPU. But as with anything, it depends on what you're doing with it. There is no catch all "what's the best XYZ". It all depends on setup, administration, server use, etc etc etc etc

viral coral
#

calling a 7950x cheaper than a 2388g is a stretch

viral coral
#

no idea where you're buying servers then

#

a 2388g is not more expensive than a 7950x in 99% of the cases

fair merlin
#

A base 2388G from OVH isn't even $180/mo

#

Let alone $180 more than anything.

finite hinge
#

The 2388g system probably has more "enterprise" SSDs and such in it

fair merlin
#

That's buying the actual CPU.

viral coral
#

the vast majority are not selfhosting

fair merlin
#

That is not the same as renting a server.

finite hinge
#

Oh that's literally just the CPU

viral coral
#

and buying a 2388g from a consumer shop is shooting yourself in the foot

fair merlin
#

Yes a server Xeon is going to be more expensive at retail than a desktop CPU.

finite hinge
#

ARK says 2388g should be $600, AMD says 7950X should be $700

#

7950X is not that much in actual stores but I imagine the 2388g isn't either

manic basin
#

Vultr not have amd ryzen 9 7950k

viral coral
#

are you here to abuse cloud provider free trials again

primal oyster
#

7950x on bloom goes for $210

#

128

#

1G

manic basin
#

No less, it's not a violation.

viral coral
#

so yes

manic basin
#

Don't banned me I'm just a person without money.

fair merlin
manic basin
#

Free hosting js bad

manic basin
fair merlin
#

So enjoy your setup, but please don't ask for support.

left gust
#

Why?

manic basin
#

I still want to be supported.

left gust
#

What specs?

manic basin
#

Ram 16gb for me good

manic basin
left gust
#

Cool

finite hinge
#

134 region files doesn't mean you can use 134 cores, can you even have 134 regions in Folia?

#

I mean, I guess if you were doing skyblock that might actually happen but otherwise I don't think that's possible unless you're a several hundred player anarchy server or something

daring nimbus
finite hinge
#

Wasn't that like 3000 players?

#

And dual socket 64 core EPYC

fair merlin
#

Not 3000

#

And we had one CPU disabled.

subtle fjord
#

is it possible to set a cap on regions?

fair merlin
#

Nope

subtle fjord
#

interesting, but I suppose you still implicitly cap it with max-player count

#

maybe it makes sense to have separate donation just for folia project

jaunty jewel
#

does anyone know a plugin that works like spark but is for folia?

finite hinge
#

Yeah it's called spark πŸ˜„

jaunty jewel
#

spark works for folia

finite hinge
arctic tapir
#

<@&748618676189528155>

marsh mapleBOT
#

(65b459e942b7936e54a5a017) // @strong tundra (@thebjoredcraft / 955165814011600896) has been banned by @wise epoch (1098722699116810331)
Reason: nsfw ad spam

wise epoch
#

merci

#

sanic too slow

spiral crane
#

Yikes autocorrect

#

I was slow because the discord app froze when I pressed send 😦

karmic urchin
#

Hello I'm wondering : excluding missing API and the limited amount of plugins currently working on Folia is the actual server stable & crash free without major breakage in game mechanics?

inner swift
#

Yes, seems to be fine gameplay wise and regarding crashes

livid crag
karmic urchin
#

They are using the 1.19.4 version if I'm not mistaken? I imagine a lot of improvements have been done since. Is the 1.20.4 version not being the main branch related to a lack of stability or it's just because it's the current version?

livid crag
#

~~Leaf is just lazy chatting ~~

drifting mantle
#

Is anyone running Folia in production? How are you finding it?

viral coral
#

it works

drifting mantle
#

Ahh awesome, thank you! I've been looking at options, so this helps :)

subtle fjord
drifting mantle
subtle fjord
#

amazing news..

drifting mantle
#

No guarantee but I know personally it’s something I’d love to add, I’ve been able to get it working for Analyse. So it would be nice to get Tebex supported

drifting mantle
#

Also PRs appreciated if anyone wants to help add Folia support to the Tebex Minecraft plugin

left gust
#

Is there a plugin that works with folia Viaversion? I tried fancy npcs and znpcplus, but I couldn't get any results.

#

Or is there an add-on I can use like armorstand?

subtle fjord
drifting mantle
#

Hahaha boom

drifting mantle
livid crag
# left gust ?

This is not google. You can try askin in viaversion discord

left gust
daring nimbus
#

huh? That wasn't a joke. If you have a question regarding ViaVersion, you need to ask ViaVersion

left gust
#

Translate issue

#

According to your logic, if I ask the question on the viaversion server, they should direct it to you.

deep pond
#

wat

#

look, if you need viaversion for folia, then ask the people who wrote viaversion

left gust
#

Dude, can you read what I wrote properly? Is there a proper NPC plugin that supports viaversion? I don't have any problems with folia. How logical is it for me to go to the support channel about viaversion?

daring nimbus
#

If you need something that supports ViaVersion, you need to ask ViaVersion.

#

Again. This is for Folia support. You are asking a question about a plugin running on Folia

left gust
#

Whatever you want, I wrote it there, it really doesn't help, it's just your show of superiority, it's extremely disgusting.

daring nimbus
#

Though it is very likely that there just is no NPC plugin that supports Folia and ViaVersion.

daring nimbus
#

not Folia

#

Or writing your own NPC plugin that supports Folia/paying someone to do that

left gust
#

🀣

#

Just because I asked a simple question on the folia help channel, I was bullied and warned that this was not the place. It's funny, I only got the opinions of experienced people who use it. Also, do you tell everyone who wants folia support not to use it? I don't understand.

sudden tusk
#

This is a reading comprehension issue. You are being told this is the support place for help with Folia itself, not about plugins running on it. As nobody appears aware of an option for Folia, it was recommended to not use Folia if you want NPCs and viaversion. That's pretty reasonable. Chill out πŸ™‚

left gust
#

Okey

dense acorn
#

huh, why i got 1.20.2 jar

paper siren
#

you probably didn't check out the 1.20.4 branch

dense acorn
#

ooh

obtuse zinc
#

is it possible to run folia in a termux enviroment?

paper siren
#

in theory it's possible to run Folia on everything that also runs Paper

obtuse zinc
#

well a raspberry pi has the same architecture than a phone, in my case is 32 bit arm afaik,
but knowing that i have a phone kinda decent to run random stuff which i never use and it's just getting dust, i alredy tried before with some apps to run vanila and works kinda decent and i tought that using the full processor would be nice

viral stone
#

We don't support such environments

#

is it possible? probably

#

are you going to get support in doing so? no

finite hinge
#

Is it going to be faster than paper? Probably not

arctic mulch
#

isn't folia only worth it to go for if you have the playercount for it since i would think having like 100-200+ players daily is fine with paper or pufferfish but if you get like 500+ then go for folia πŸ€”

finite hinge
#

It could be worth it with 2 players

#

You and a friend, basically running single player worlds with your own bases, farms, etc, but you can walk/teleport to each other

#

You probably aren't going to need more than what a single core of block/entity ticking can provide with 2 players but then again a single player can overload it so... depends on how crazy your farms get

drifting mantle
#

Good explanation as I had the same question as @arctic mulch

arctic mulch
thin anvil
#

can I disable join leave messages

viral stone
#

exact same situation as paper

#

with a plugin, yes

thin anvil
#

without a plugin no

#

hmmm

subtle fjord
rotund fossil
#

What is the 600% based off of?

#

Taken from cubxity's blog, here it's 600%:
But after changing the threads, it's 1200%?

#

Oh, it's the threaded-regions setting. I see

timid grotto
narrow bough
#

Entity threw exception at world:-3694.5,71.0,5296.5
java.lang.OutOfMemoryError: Java heap space
[11:28:33] [ofc-task-worker-22/WARN]: Exception in thread "ofc-task-worker-22" java.lang.OutOfMemoryError: Java heap space
[11:28:35] [Region Scheduler Thread #7/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #3137808 centered at chunk [-862, -1126] in world 'world' failed to tick:
java.lang.OutOfMemoryError: Java heap space
[11:28:35] [Region shutdown thread/INFO]: [RegionShutdownThread] Awaiting scheduler termination for 60s
[11:28:35] [Region shutdown thread/INFO]: [RegionShutdownThread] Scheduler halted

#

It seems like there might be a memory leak issue with the latest version of Folia. I've been using it since 1.19.4, and when I updated to 1.20.4, the server often automatically shuts down with a "Java heap space" error.

fierce knotBOT
narrow bough
fair merlin
narrow bough
#

I allocated a whopping 32GB of RAM to it.

fair merlin
narrow bough
#

The detailed server logs from the 20 minutes leading up to the crash.

prime juniper
#

Memleak

fair merlin
#

Or if the server only has 32GB

narrow bough
#

The server is running on a whopping 128GB of RAM, with more than 90GB of free memory available.

inner swift
#

In this specific instance, it's not really a container misconfig or similar

#

You'll either need more than 32GB of heap to run your server, or analyze a heap dump to verify if something superfluous is taking memory, that you can get rid of

#

There's a JVM flag to create a heap dump on OOM

narrow bough
#

The "/forceload list" command isn't working. Since I updated to Folia 1.20.4, the server crashes every 1-3 days, consistently with a "Java heap space" error. Regarding the "/paper heap" you mentioned, I'll give it a try after the server has been running for a day and see how it goes.

narrow bough
inner swift
#

XX:+HeapDumpOnOutOfMemoryError

#

If nothing is abnormal in the heap dump, then maybe your server just needs a lot of RAM, could happen especially in a niche case like Folia depending on what you're doing

#

Can't really tell an amount that works for your server's use case

narrow bough
inner swift
#

Looks right

#

Then if it crashes you'll get the heap dump

narrow bough
#

Thank you. I'm restarting the server now with this flag. Anyway, thanks a lot for your help!

narrow bough
#

Sorry, what I mean is not standard

#

What I mean is, on average, the server automatically shuts down within 2 days due to throwing a "Java heap space" error. It just happened again a moment ago.

viral stone
#

as said, you'd need to take heapdumps and see what's eating up the memory

narrow bough
#

now

#

I've added the "XX:+HeapDumpOnOutOfMemoryError" flag as mentioned by Kyle. I'll wait for the next crash due to the "Java heap space" error before reaching out again. Thanks to all of you!

sonic kayak
#

how can i get folia 1.20.2 ?

jaunty atlas
#

Do you know how to download and build folia?

narrow bough
#

Unfortunately, I can't do that since there are players online from different time zones almost 24/7. It would negatively impact some players.

narrow bough
left gust
livid crag
jaunty atlas
primal oyster
#

How many players do you have

#

Can you provide spark profilers

primal oyster
#

I'm not fully sure if the main one is still on 1.20.2

#

If it's not, you just roll back to the commit that is last 1.20.2

ornate warren
# narrow bough The server is running on a whopping 128GB of RAM, with more than 90GB of free me...

Just to advise, we made the same mistake of allocating a whopping amount of RAM for XMS and XMX and kept getting lagged out - it turns out that what was happening is that the Garbage was building up to such a large amount that when the cleanup happens (which essentially does a 'world stop' while it completes) it freezes the server for so long that everything crashes out.

We since set XMS and XMX to be 15G and it has seen a huge improvement in performance as it cleans up more frequently but a much smaller amount of garbage and so the 'world stop' GC moment is much much smaller process and isn't noticed by players

thin anvil
#

how can I disable any mob or non-dangerous mob spawning

ornate warren
viral coral
#

that is a post from 2020

#

practically any garbage collector has seen improvements over the last few years

#

e.g. generational ZGC

viral stone
#

ZGC has advanced since then, especially generational ^

#

That post was also made on paper, where the majority of allocation is limited to like 2/3 threads, primarily the main thread

viral coral
#

from personal experience i've had generational ZGC be the only garbage collector that kept up with my allocation rate for minecraft with good cpu usage

#

but that is on a niche scenario

viral stone
#

ZGC already looks more attractive since the work over the past few years, especially with the generational improvements, and with something like folia, a lot of the dynamics change

#

but, at the end of the day, there is no magical bullet that works for all usecases, that's why you have gc logs and profilers, etc

ornate warren
#

Don't get me wrong, I'd love to be able to use every part of the top-end hardware we're running on, but this GC issue utterly hamstrung us for ages without us realising that the 'world stop' process for it was the issue

paper siren
#

that's basically useless info without knowing the version you ran

viral stone
#

ZGC basically minimises STW over G1 GC

#

but, it just generally has some more interesting "oh shit" behavior, like allocation stalls pausing threads

paper siren
#

but allocation stalls where basically solved in 17 already afaik

viral stone
#

Yea, I mean, I've not really tracked it much, tbqh

#

I'm still tryna catch up with everything ;-;

ornate warren
#

Ok that's interesting to note as we're on 17. We might give it a shot then. So we can basically set XMX and XMS to a larger amount using ZGC and we won't suffer the same fate we did with G1GC?

paper siren
#

depends on the actual issue

viral coral
#

yeah there isn't exactly any information to go off of

#

would also suggest just updating to 21

visual falcon
#

Would be nice to have a updated flags guide so people stop asking what is best to use.

viral stone
#

I mean, the guide is updated

#

very little has changed in the terms of G1GC that it implicates the advice there in any large manner

#

the only big thing is that maybe you can drop some of the flags in terms of letting the adoptive algorithms take over as they're a bit smarter

#

but, the guide is for paper, not folia, folia is an entirely different ballgame and so toying with different GC alsos kinda makes more sense; generational ZGC looks more attractive too in many respects but, it's hard to blindly recommend any of the modern GCs to people who don't understand this stuff

visual falcon
#

If possible to move on from G1GC and there is proof of a better type of GC and allowing paper to take more advantage of newer GC type would be nice, Not sure if thats possible though,

fair merlin
#

And if you're running Folia you should be thinking about things like what flags work for you, not blindly following defaults.

livid crag
#

Most people asking for β€œflag guide” will do just fine using aikars.

If you really want to fine tune it, acquire the knowledge first instead of seeking out what people claims to be the most β€œoptimized”

viral stone
#

ZGC is more finacy and you generally need to be more aware of how to diagnose it

#

G1 is generally more predicable and forward in terms of when it craps the bed

visual falcon
#

isn't Aikars flags old by now even if the guide is updated.

viral stone
#

I mean

#

java is java

livid crag
viral stone
#

MC is MC

fair merlin
#

There's also a difference between guidance and law.

viral stone
#

the flags may be old but stuff has generally not changed in a manner that causes any real big issues outside of MC wasting more memory so the 12G+ flags are probably more harmful than good

fair merlin
#

Most of our recommendations are just that - recommendations.

#

Often a good baseline.

viral coral
#

i could personally probably live without aikar flags in 2024

#

aslong as a modern java version is used

visual falcon
#

Wait so there isn't a way to improve say paper or folia to fully take advantage of a newer gc, even though mc uses G1 by default?

viral stone
#

We have a guide

#

that fits 99% of peoples usecases

#

noting that 99% of people do not understand how java works

#

do not understand or care to get invested into how garbage collection works

#

and do not have the skill or care ro access to figure out how to diagnise GC issues

#

aikars flags while old, are generally still fine and as close to a 'works for the majority' as we're going to get

#

Yes, some newer garbage collectors exist, generational ZGC looks really interesting and if I wasn't half dead and had a server still, might be fun to toy with and see how it performs, but, the nature of ZGC also means that it can act a bit funky in some cases

#

some cases which people running servers fall into, and while G1 GC will often not perform amazingly in such cases, we can generally see and understand why it's crapping the bed vs many of the newer collectors which will generally hide that by killing throughput

limber scaffold
#

Hello is there plugin for lifesteal to work on folia

visual falcon
limber scaffold
#

Guys please help

viral stone
#

iirc shen and ZGC are fairly alike in how they work in a broader sense

visual falcon
limber scaffold
#

This is only discord channel where people discuss folia others be like what that πŸ€”

livid crag
#

Nothing stops you from making your own life steal plugin for folia

#

But if you do not have a dev team, you probably should just use paper

finite hinge
#

I'm kind of surprised generational ZGC ended up being a thing and being so good because I remember at the start of Shenandoah and ZGC they were arguing the generational hypothesis was a failure for modern programs

#

Although I suppose they were talking about HTTP servers...

viral stone
#

Yea, I mean, I get it

finite hinge
#

The application pattern for which the generational hypothesis is most true is stateless servers.

#

If you're storing any kind of long term state (for example, caches) you break the generational hypothesis and a generational GC does extra useless work and hits modes where it doesn't perform well

viral stone
#

like, their entire thing was that they wanted to cater towards stateless stuff in which memory is allocated for something and then tossed out at the other end

#

and, I get it, that's probably like, a good chunk of web apps in their ideal state

#

but, caches are hard to avoid in many cases

finite hinge
paper siren
#

pretty sure generations were planned for ZGC from the beginning, but they wanted to focus on minimizing work during pauses first

finite hinge
#

iirc a big thing for G1GC was to make it better able to adapt to things that break the generational hypothesis too, via dynamically designed regions or whatever

#

I guess I might just be remembering shenandoah, zgc kind of appeared out of nowhere for me

#

I was watching talks about shenandoah and following development of it though

paper siren
#

afaik ZGC can dynamically size the generations pretty well

viral stone
#

G1 does the dynamical thing, though many years ago it sucked, hence aikars flags

finite hinge
#

Also I swear shenandoah is reminding of what Mike Pall wanted to do with luajit's GC

daring seal
#

any document about how to set up folia?

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.

fair merlin
daring seal
#

No setup guide lmao

finite hinge
#

How to build Folia is in the Paper repo

fair merlin
#

What sort of setup?

daring seal
finite hinge
#

Build it in WSL or in C:\Folia (or D:\Folia, etc)

#

Make sure you have git configured

daring seal
#

sadly

finite hinge
#

Post build log

tawdry gullBOT
#

Please send large files/logs to a pastebin

fair merlin
#

The error is right there and it tells you how to fix it.

daring seal
#

k

#

I actually was doing what it says

finite hinge
#

*** Please tell me who you are.

fair merlin
#

Doing what?

daring seal
#

Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable

#

how to fix this

#

or it don't have to

fair merlin
#

Keep reading.

finite hinge
#

Apparently that was just a warning/debug message because it kept going and failed because you don't have git setup

daring seal
#

thanks

#

thanks for explaining

#

BUILD SUCCESSFUL

#

but none of the plugins work

#

lmao

finite hinge
#

Oh yeah, 0 plugin compatibility

#

Plugins have to be explicitly built for Folia

#

It's mostly the same API but the semantics are different (threads) and the scheduler is different so trying to let Spigot/Paper plugins just run and hope for the best is guaranteed to run in to a bunch of hard/impossible to diagnose issues

daring seal
#

let's hope for the future

#

folia will rule the whole minecraft ecosystem

timid grotto
#

unfortunately, thats pretty unlikely

livid crag
#

marjority of Minecraft server has less than 1 player online so yeah very unlikely to see everyone using Folia. Only a handful of big networks or you know... one already existing example... 2b2t.

daring seal
#

Taiwanese play redstone all the time

#

multithreading helps alot

finite hinge
#

Unless they do it 1500 blocks or more away from each other it really doesn't

#

Folia won't make anything faster for a single player either, if anything it'll be slower

scenic juniper
#

Or go to Hanger, and select β€œSupports Folia”

daring seal
#

I need DiscordSRV to work tbh

tropic otter
#

Hi, the datapacks still don't work?

viral stone
#

datapacks work

#

command functions never will

tropic otter
#

Oh

#

Are fonctions that bad?

viral stone
#

they use global state

daring seal
#

any LoginSecurity like plugins?

fair merlin
daring seal
#

yes

#

I just want to let my sis play

#

then nvm

sonic kayak
#

where I can get 1.20.2?

jagged ether
#

Build the 1.20.4 branch

sonic kayak
jagged ether
#

you'd need to find which commit is the update to 1.20.3 and revert to the commit before that

viral stone
#

I thought master was .2, otherwise, ^

idle falcon
#

Aren't there archive downloads?

viral stone
#

No

idle falcon
#

Oh I just now saw that you have to build it yourself, sorry

narrow bough
narrow bough
little sable
#

Hi, I want to know when the 1.20.4 bundle will be available on the repo?

narrow bough
#

Now this "Java heap space" issue has occurred again, but adding "XX:+HeapDumpOnOutOfMemoryError" prevented it from crashing and automatically shutting down. Instead, it froze the server for two minutes. Here's the log from that time: [https://pastes.dev/IIobKs0eoq]. It also generated two files, one named "java_pid9180.hprof" with a size of 25GB, and another in "\dumps" named "heap-dump-2024-01-31_12.14.41.hprof" with a size of 3GB. Which one do I need to provide?

viral stone
#

the first one is from hotspot

#

no idea what the 2nd one wounlda come from

narrow bough
#

My apologies for the confusion. I misread it. The second file "\dumps\heap-dump-2024-01-31_12.14.41.hprof" was generated yesterday, and the one with a whopping 25GB, "java_pid9180.hprof," is the one just created. How should I provide this file?

viral stone
#

I mean, we don't want it

#

you'd wanna load it up in a heap analyser and see what's going on with the memory

#

eclipse MAT, jvisualvm, yourkit, jprofiler, etc

narrow bough
# viral stone I mean, we don't want it

Alright, then I'll follow MODN METL's suggestion and try reducing the XMS and XMX to see if it has any effect. When I set the values to 32GB of RAM in version 1.20.1, everything worked perfectly. I'm not sure why this issue started occurring when I upgraded to version 1.20.4.

narrow bough
paper siren
narrow bough
primal oyster
#

whenever you see G1 OLD running

#

you can already know that there~s memory leaks

#

G1 Old only usually 99.99999999% of the time runs when theres memory leaks in your system

#

Accept my friend requestb ecause i'll nee more information

viral stone
#

That doesn't garauntee a leak

primal oyster
#

well he has enough memory allocated to run 10 elefants

viral stone
#

Yea, but generic statements like that get oddly quoted 10 years down the line and just confuse people

primal oyster
#

from the theory is simple

#

you never want G1 old to run

#

and if its running you got a problem

#

i have never seen a case in which its not a memory leak yet or being stupid with software mem allocation

daring seal
#

Stupid question

#

Does folia use multicore?

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.

daring seal
#

ik what is multi-threaded

#

but is it multi-core support

#

ed

viral stone
#

it uses multiple threads

daring seal
#

my question

viral stone
#

your OS schedules that work over multiple CPU cores

viral coral
#

you know it's multi threaded yet you're asking if it's multi core

daring seal
#

I heard folia is multi-threaded but still use one core

#

I heard

#

heard

viral stone
#

it splits the world up into regions

#

those regions are run in parallal if you have the correct hardware

viral coral
#

anything multi threaded is multi core

viral stone
#

so, your regions are still effectively bound by the nature of a single thread, but, the entire point is that you can split the world up to use multiple OS threads for ticking

daring seal
#

ok

#

so can it slightly help a server with 10 people?

viral coral
#

no

daring seal
#

that live far away

viral coral
#

if you're struggling with 10 players on paper you're going to have bigger issues on folia

daring seal
#

they live seperately

daring seal
#

im just wanna try out new things

viral coral
#

are you a developer

daring seal
#

no

viral coral
#

folia isn't really in a state where you'd want to use it not as a developer

#

every plugin is essentially broken unless it specifically builds support for folia

daring seal
#

ik

#

I test them all out

viral coral
#

not to mention we don't distribute builds

daring seal
#

yes I know

#

I compiled it

#

and tested it with my plugins

#

works fine

#

I just want to know if it does any changes

viral stone
#

Unless you're actually having performance issues which can be solved by more cores, it will over 0 benefits for a lot of caveats

daring seal
#

tbh most server hosting service online already inclued folia

#

like exaroton and shockbyte

viral stone
#

and most server hosting companies are purely there to bait people into handing them cash

#

it's hardly a metric for anything

daring seal
#

does it help with the fact people building like 1000000 exp farm in my server

viral stone
#

if your tick is within 50mspt, it will offer pretty much 0 benefits

daring seal
#

my tick is 55

viral coral
#

at 10 players you can definitely get that down

viral stone
#

okay, and now you're telling an inconsistent story

daring seal
#

?????????????????

viral stone
#

you said that you're not having performance issues

daring seal
viral stone
#

So, you are having performance issues

daring seal
#

kinda

viral stone
#

then, who knows, if you have enough CPU cores folia might be able to help

daring seal
#

16 cores

#

my old pc

#

16 cores

#

i forgor

#

maybe it isn't

#

but I remember it is

#

6 core maybe

#

my fault

#

6 cores/12 threads unlocked

balmy tusk
#

which mc versions does folia support?

#

is there a version for 1.16.5-1.17.1?

lofty magnet
#

no

balmy tusk
#

so whats the lowest

lofty magnet
#

1.19.4

balmy tusk
#

ty

lofty magnet
#

(of course you should always run latest)

balmy tusk
#

also i've seen some info on the main page of folia project about chat issues? does it still happen?

#

it mentioned that chat was enabled 4fun and it casued everyone to be kicked

daring nimbus
#

Might have been proxy related, iirc that test used a proxy and chat signing and proxies is still not a great combination

balmy tusk
#

as i already have like 3-4 separate lobby servers to fit all the players

#

so merging them into 1 server but spreading them across few lobbies at the same world just in different places

#

was hoping that'll make it

daring nimbus
#

If it's just separate lobbies I would stick with Paper

balmy tusk
#

yeah i was hoping to merge it to make it 1 big lobby

#

it'd be more efficient and cheaper way to do

#

cuz i have 2 dedicated machines just for lobby

#

so i could handle am all at one machine

daring nimbus
#

If they are separated anyways running four servers will be more efficient than Folia.
And you won't be able to have everyone in the same location with Folia either. It only works if people are spread out a lot

balmy tusk
#

but my goal was to have 1 server instead of 4

#

for that purpose

daring nimbus
#

I mean that would work in theory, but in my experience the main bottle neck with lobbies is when something goes down and you get 200 players joining the lobby at once. And Folia isn't really gonna make that better

#

idk how many players you have in lobbies though that you need that much

lofty magnet
#

just slow down the switch on the proxy by keeping clients in the configuration phase ;D

fair merlin
lofty magnet
#

?

#

that was meant as an actual solution to too many clients joining a server at once

#

keeping them in the configuration phase for a bit on the proxy should slow them down (traditionally one would use a void server for that)

fair merlin
#

By slowing down the network switch?

lofty magnet
#

by not having 200 players log into one Minecraft server at once

viral stone
#

I already have logic in paper which does kinda similar just to delay shoving them into the world

lofty magnet
#

but I assume that is limited to the client timeout duration or is that during the configuration phase now?

viral stone
#

I have no idea, it was designed for short term, so there was no real care to implement stuff like keepalives in there

ornate warren
#

Question, on this server we have an issue where sometimes we can have 50 players on without much in the way of game-impacting lag, but other times with half that many players on (like in this image) and there's clearly some players up to things that are causing lag.

Is it worth us spending time fine-tuning our settings as a Paper/Pufferfish installation, or as an SMP server would we be better off looking at Folia to solve this issues because we're clearly not utilising the hardware fully enough?

viral coral
#

screenshots of sparks are useless

ornate warren
pseudo ibex
#

Pufferfish?

livid crag
#

I think you are in the wrong discord pepela

viral coral
#

with the amount of plugins you'd have, probably a rough time moving to folia

#

and you should definitely be able to hold like 100 players with paper/pufferfish/whatever

ornate warren
#

Yeah we're thinking more in terms of reducing the number of plugins if we did

viral stone
#

CPUs with ecores are generally a bad idea

livid crag
#

more than half of your plugin dont current support it yeah Despairge

viral coral
#

good shout cat

#

yeah you should disable your e-cores

#

probably fixes your performance issues

finite hinge
#

You'd be reducing your plugins to about 3

#

Unless you write your own replacements

#

And your players would have to be building bases 1000+ blocks away from each other

ornate warren
viral coral
#

no idea

#

definitely not helpchat though, probably not going to find someone competent for server optimization there

livid crag
#

Unless you are using bat for modelengine or some custom entity replacing bats.

ornate warren
viral coral
#

disable your e-cores

#

even better would be switching to the 7950x3d and avoiding anything intel

ornate warren
ornate warren
livid crag
fringe oriole
#

completely new to folia, but how do i download folia?

#

ive researched this, and found that i had to compile it

#

but when i did, i kept getting errors

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.

fringe oriole
#

ah ok.

tacit tartan
#

If you're having compilation errors, send them here and we can point you in the right direction, but generally if you find debugging compilation errors difficult, that's a sign that folia in it's current state is probably not right for you

fair merlin
#

@left gust As the link above says, we specifically are asking people to not provide builds or link to builds. If you can't build Folia yourself you shouldn't be using it.

left gust
#

Fuck translate

#

Of course, I can compile it myself, it's a very simple process, but maybe my friend's computer might be bad and I thought he would test it, so I talked about the project. Also, why are you so strict about the spread of builds?

#

@fair merlin

fair merlin
#

As I said, if someone can't build it themselves then they shouldn't be using it. If they encounter issues building it then this channel is here for them to get help with that.

#

Building it is going to be the least of the issues they encounter.

left gust
#

I don't think the issue is unknown sources. The source I mentioned is a github project and it compiles using action. Are you worried that it will spread more and demand support?

cobalt sierra
#

Folia is absolutely amazing. You guys have done an amazing job on it so far! Can't wait to keep up with the new changes to it over this year!

finite hinge
#

Because if you're using Folia you almost certainly have to be writing your own plugins at this point

daring seal
#

According to paper mc document

narrow bough
#

It seems to be a "Java heap space" error caused by Spark?

paper siren
pseudo ibex
pseudo ibex
daring seal
#

any recommended plugin to disable minimaps

fair merlin
daring seal
#

Is this legit?

fair merlin
#

For mods that support it and behave nicely and for non-Folia servers, sure.

daring seal
#

ok

#

is there any anti griefing plugin for folia

fair merlin
#

But a modified client or a modified mod that won’t obey that flag will still have a minimap

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.

near hedge
#

Will Xeon E5 2683v4 (16 cores/32 threads, 2.6 GHz) be better than Xeon E5 2678v3 (14 cores/28 threads, 2.8 GHz) for Folia if there are 8-10 people playing on the server? How much RAM do I need?

fair merlin
#

But the base frequency on the 2683v4 is 2.1GHz, with a boost of 3.0GHz. Not 2.6

#

The 2678v3 is 2.5GHz base and 3.1GHz boost.

near hedge
#

as i heard only for 1-2 cores

#

why not?

fair merlin
#

I wouldn't say wasting everyone's time, but yes, most likely for only 10 players Paper is going to be better suited for your uses.

#

This depends on the server, the players, what they're doing, etc etc.

#

I don't think a blanket statement like this is helpful.

near hedge
#

Our players like farms and high performance stuff.

fair merlin
#

Or you aren't going to get the benefit of Folia.

#

So large maps, some plugins aren't ported at all, some just won't work, and some features are disabled.

#

So it's worth exploring whether it's truly a good use for you.

#

If you just want to try it, go for it. But be aware that it may be a bit of fiddling to get things setup.

#

And/or you might have to sacrifice some features.

idle furnace
#

And might be worse every time a new version gets out, for normal Paper sometimes plugin owners take ages to update, imagine in here

fair merlin
#

Yeah Folia is very likely on a slower update cycle.

near hedge
#

Also wanted to ask: does Folia change the behavior of a vanilla minecraft server like PaperMC? Redstone, block upgrades, etc.

idle furnace
#

One question, is there a Folia channel more dedicated to betatesting plugins?

fair merlin
#

So that would be more like whatever Discord those plugins have.

idle furnace
#

I have something to try out, that requisers some users at same time

fair merlin
#

Same with Paper.

idle furnace
#

I mean the plugins we are porting to Paper

primal oyster
#

but in some small features it slightly changes (none of them are really vanilla vanilla mechanics) just visuakl things maybe

fair merlin
idle furnace
#

I kinda finished preparing a minigame plugin for folia, ans this server seems to me be thest place to try out

#

but there is no chan to anounce or request for help testing stuff

fair merlin
idle furnace
#

so how to potentiate the pluging support to folia?

fair merlin
idle furnace
#

you already know it is harden then for other server to make decent support for it

fair merlin
#

Or throw it up on your server.

idle furnace
#

friends do help, but the experts are all here

viral stone
#

We don't want to be the server that people flock to for "please help me test my plugins"

idle furnace
#

and possibly someone willing to help, that my idea

fair merlin
idle furnace
#

why not have a chan just for it? A chan can be mutted if we don't want to see the activity

viral stone
#

Because then we have to moderate it

fair merlin
#

Yeah we just avoid advertising in general.

idle furnace
#

ok, I understand

#

makes sence, quite often people abuse

viral stone
#

We've generally been okay for reputable people to try to organise stuff, but it becomes a huge headache when you start having 20 people a day show up pestering for people to join their servers to just "please help test"

#

it just creates a lot of drama because all of a sudden we're supposed to care about the randomer who joins and griefs the place, as well as the headaches around people who basically try to use it as a means to advertise, etc, etc

idle furnace
#

understandable, yep

#

so if i anount a server for testing this, would be considerd spam?

#

we are kinda between the wall and the sword, if i explain my self right

#

testing is a part of the development cycle πŸ™‚

#

but i understand

#

true true

viral stone
#

part of the reason we don't want people "advertising" for testers is because most people can't be arsed to join randomers servers to test

#

and so it literally just ends up in hours of spam as they try to coax people into joining their server

#

which then ends up with somebody seeing it, joining the server and griefing or something stupid, and then all of a sudden we're expected to moderate them for something they did on a block game server that has nothing to do with us, etc

idle furnace
#

yep, yep but becomes hard to test this under heavy conditions. Not owning server makes it hard to test it decently. Will continue to "play with my self" πŸ˜„

#

I don't plan to make marketing, just have proper testing on this challenge but yes, having a hard time with the testing part

#

I am pretty sure it will not work as nice with 20 players on it

#

the Schedulers might get mad with me πŸ˜„

fair merlin
#

Sorry @idle furnace that's part of the advertising we don't allow.

idle furnace
#

it is ok

thick fulcrum
#

Any Votifier forks that support Folia?

jaunty atlas
#

And this

#

Says "Folia support"

#

Please refer to the dev for extra help

thick fulcrum
jaunty atlas
arctic tapir
#

pretty sure the bukkit schedulers throws

vale sable
#

Does chunkloading require high-level computation?

#

I would like to know why chunkloading does not use the gpu

#

Oh, of course, I'm speaking from the server's perspective

paper siren
#

you likely mean chunk generation, and the reason it's not using the GPU is because most servers don't have GPUs and writing code designed for GPUs typically differs from what you'd write for CPUs

narrow bough
# narrow bough

When I deleted Spark now the server has been running stably for two days, which would have been impossible before I deleted Spark, maybe the version of Spark I'm using is too outdated? I was using spark-1.10.52-bukkit-folia-patch-3.jar. The above is limited to 1.20.4 only, as I was using 1.20.1 along with Spark and they both worked fine.

narrow bough
narrow bough
#

But I've deleted Spark now, and folia works great now. I'll give it a try when I get another chance to test it later.

viral coral
#

spark's background profiler realistically shouldn't cause any issues aslong as you're on a platform supported by async-profiler

#

so anything that isn't windows

#

it profiles it for a long duration but at a very high interval

livid crag
#

How you know it’s a leak SUS

paper siren
#

The background profiler should only keep 1 hour in memory afaik, so that would be a bug then

bold osprey
livid crag
#

let's uhhh get verifiable evidence first before treating it like the truth...

bold osprey
#

well, patch 2 of spark had a problem that it couldn't stop any kind of profilers to give a link, and they started spamming a lot in the console if we tried that, so it's not that far from the previous problem

late pasture
#

I was watching this tutorial online: https://www.youtube.com/watch?v=oTh9DjFgmTM, and after I built Folia I did not get a build folder.

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
arctic tapir
#

follow the build steps in paper's readme

late pasture
arctic tapir
#

paper's readme

late pasture
#

oh paper

#

right

#

ahh i forgot a command

#

cheers mate

#

is there a template like start.sh i can use

#

to start the server?

tawdry gullBOT
late pasture
#

how can i put more than 24gb memory usage

#

oh wait nvm

late pasture
#

yeah i saw

#

i just changed it to 98304

visual falcon
#

Why does someone need 96gb of ram lol

late pasture
#

cool

vale sable
#

The chest attached to the donkey disappears when donkey enter the portal

#

Is this a bug? Or was that intentional?

livid crag
#

Test without plugin on the latest version?

vale sable
#

Is that problem fixed in 1.20.4?

livid crag
#

I don’t know

#

But we only help 1.20.4

vale sable
arctic mulch
#

I would think that Minecraft runs better on less ram but it might be different for folia

fair merlin
#

It's different for Folia.

fading lark
fair merlin
#

I would just use G1 if you aren't sure what other flags to use.

#

Using Aikar's flags is still a decent starting point.

#

But with more RAM.

waxen field
#

How can I resize regions in Folia in the latest commit 1.20.1.

#

I'll try to move this to 1.20.1 then.

lofty magnet
#

does folia even have the 1.20.1 exploit fixes? lol (not sure if it even was applicable to it though)

#

well Paper doesn't have it so...

#

anyways: don't run 1.20.1

timid grotto
#

not always

jaunty helm
#

@upbeat siren

fair merlin
upbeat siren
#

@jaunty helm

upbeat siren
fossil vigil
cerulean pasture
#

if you choose version at least choose last minor version

#

like dont use 1.16.4 use 1.16.5 if you have to use 1.16.5

inner swift
#

I don't think 1.16.1 is even log4j patched

#

If that's your only concern might as well make a datapack or something

hexed ice
#

that's how they get the extra piglin drops kyle

scenic sky
#

<@&748618676189528155>

marsh mapleBOT
#

(65c3dc222d5bd6481a064820) // @low delta (@derp7_yt / 728269446044713011) has been banned by @jagged ether (451779815415218177)
Reason: Quick-banned for sending a message in #folia-help

scenic sky
#

damn quick ban

livid crag
jagged ether
arctic tapir
#

shut

jagged ether
#

don't off topic in help channels powergas

left gust
scenic sky
#

ok