Something is eating the memory of the server, could anyone help me find out why?

No description
86 Replies
Admincraft Meta
Admincraft Metaβ€’7mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by .voidexe#0
DemGlizzys1
DemGlizzys1β€’7mo ago
Can you provide a spark report please?
QarthO
QarthOβ€’7mo ago
memory on a panel isnt the best place to look at. you should be monitoring memory from a spark report !spark
Carl-bot
Carl-botβ€’7mo ago
Spark Profiler
Spark can be used to see why your server or client is lagging. Users can share a spark report via /spark profiler start --timeout 300 which creates a report after 5 minutes. The spark report is useful in debugging why your server is lagging, so ideally you should always provide one while asking for support. Download | Website | Docs
From An unknown user
Admincraft Canned Responses
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
I have spark already, hang on I'll get back to u once the thing is done
Skullians
Skulliansβ€’7mo ago
You can also do /spark healthreport to get current usage
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
@Skullians Do I just send the link it gave?
Skullians
Skulliansβ€’7mo ago
yeah go for it
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Metaβ€’7mo ago
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Paper
Requested by .voidexe#0
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
whar
Skullians
Skulliansβ€’7mo ago
uh @Mortis Your ram usage is fine 1.8Gb usage
DemGlizzys1
DemGlizzys1β€’7mo ago
TPS looks fine though
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
surely the memory shouldn't be at almost 2gb upon start up though
DemGlizzys1
DemGlizzys1β€’7mo ago
that’s pretty good for start imo
Skullians
Skulliansβ€’7mo ago
Probably because you never used more than 2.8 Also use Aikar flags
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
er what? We have 6gb I watched it go to like 5.2 earlier
Skullians
Skulliansβ€’7mo ago
On ptero? nerve use ptero for ram usage statistics
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
I have no idea what a ptero is
Skullians
Skulliansβ€’7mo ago
The panel
DemGlizzys1
DemGlizzys1β€’7mo ago
it’s a panel
Skullians
Skulliansβ€’7mo ago
The web panel
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
We use enviromc
Skullians
Skulliansβ€’7mo ago
This yeah enviro uses pterodactyl
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
ohh
Skullians
Skulliansβ€’7mo ago
Don’t use the web panel for ram usage statistics because it’s inaccurate, and tends to use more than it’s told to
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
So everything is fine then?
Skullians
Skulliansβ€’7mo ago
yeah I would recommend you put on Aikar flags
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
What's that?
Skullians
Skulliansβ€’7mo ago
startup flags hold on what’s the name of your server software jarfile
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
theoretically, how would one find that? ya know, just for a friend
Skullians
Skulliansβ€’7mo ago
uh go to the files section of the panel there should be a jarfile in there (not in folders) Ends in .jar
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
it's literally just server.jar
Skullians
Skulliansβ€’7mo ago
right so go the startup section of the panel or settings
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
yeah
Skullians
Skulliansβ€’7mo ago
java -Xms5632M -Xmx5632M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -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 -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar --nogui paste that in place
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
I don't see anywhere to paste that xd
Skullians
Skulliansβ€’7mo ago
uh send a ss of your startup page?
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
No description
Skullians
Skulliansβ€’7mo ago
You’re in the console tab at the top there should be one named β€˜startup’ or variables or settings
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
No description
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
settings only has this
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
No description
Skullians
Skulliansβ€’7mo ago
go to settings bruh hold Is there nothing at the very top? I forgot what enviro looks like As in not on the side but a bar at the top across the page there is a startup section I swear
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
I clicked the logo (at the top) and it sent me to this
No description
Skullians
Skulliansβ€’7mo ago
Right go on the SMP send a full ss of the entire page
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
I clicked that and it just sent me to the console tab
Skullians
Skulliansβ€’7mo ago
yeah send a full ss
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
No description
Skullians
Skulliansβ€’7mo ago
Is there nothing above…? like above the console
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
nope
Skullians
Skulliansβ€’7mo ago
bruh and you’re positive there’s no startup section on the sidebar
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
yeah lmao I sent the ss
Skullians
Skulliansβ€’7mo ago
damn well you don’t need them Because your ram usage is low anyways But I remember changing them when I had an enviro server
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
pain
ProGamingDk
ProGamingDkβ€’7mo ago
startup tab not settings. are you a subuser?
Skullians
Skulliansβ€’7mo ago
literally what I said after correcting myself
ProGamingDk
ProGamingDkβ€’7mo ago
ah
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
Me?
Skullians
Skulliansβ€’7mo ago
Also this If you’re a sub user (if you don’t actually own the server plan) you might not have access
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
Yeah, I don't own it, I'm just admin
Skullians
Skulliansβ€’7mo ago
ah
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
the owner just went to sleep ;-;
Skullians
Skulliansβ€’7mo ago
in that case, you’ll have to get the owner to change them
ProGamingDk
ProGamingDkβ€’7mo ago
you need perms for startup tab
Skullians
Skulliansβ€’7mo ago
^ LMAO issue of skill
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
@Skullians I have access to the thing now, could you resend me what you told me to put in? oh never mind πŸ’€ I see it
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
What one do I paste it in
No description
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
@Mortis Do you know what one
AeonRemnant
AeonRemnantβ€’7mo ago
java -Xms6G -Xmx6G --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -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 -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar
java -Xms6G -Xmx6G --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -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 -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar
Change as you need.
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
that's the thing, I don't know what I need to change, or where I need to put that 😭 I'm kinda new to, well, everything I just wanna make sure it keeps the 6g
AeonRemnant
AeonRemnantβ€’7mo ago
In the startup command variables. I updated the command. Just replace your current startup variables with the ones I posted.
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
Alright, preiciate it πŸ™
AeonRemnant
AeonRemnantβ€’7mo ago
It might crash, if it does we just take a smidge of the RAM off.
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
it might crash instantly? or upon start up
AeonRemnant
AeonRemnantβ€’7mo ago
Upon startup.
π™¨π™žπ™£
π™¨π™žπ™£OPβ€’7mo ago
it was fine, but the panel is still like 4g/6g with a 30 min uptime πŸ’€
AeonRemnant
AeonRemnantβ€’7mo ago
It should do that. Use spark if you actually want to know what the usage is. The panel just reports what the JVM takes and that should be as much as possible. The program inside the JVM is the important metric.
MrGameIt
MrGameItβ€’7mo ago
I’m even newer to this than voide is, what’s the jvm and why on earth does it need 98% of the ram?
ProGamingDk
ProGamingDkβ€’7mo ago
java virtual machine mc runs inside it
MrGameIt
MrGameItβ€’7mo ago
Why does it need so much ram though?
ProGamingDk
ProGamingDkβ€’7mo ago
because its minecraft jvm is mc
MrGameIt
MrGameItβ€’7mo ago
Is there a way to limit it?
ProGamingDk
ProGamingDkβ€’7mo ago
reduce the xmx, theres always gonna be some overhead tho but that will give mc less to work with
MrGameIt
MrGameItβ€’7mo ago
Kk Ty
AeonRemnant
AeonRemnantβ€’7mo ago
PGDK answered some stuff, but when you run a Java app it creates the Java Virtual Machine for any Java software you run. The JVM has some amount of RAM, 8 gigs as an example, and any Java programs running inside the JVM can take and use that RAM as required. When it’s not needed it goes back to the JVM. Why you give the JVM all of the RAM is because if the MC server inside happens to need more RAM it can only access it via the JVMs RAM heap.

Did you find this page helpful?