A
Admincraftβ€’6mo ago
Teka

'Could not open user_jvm_args.txt' when strictly running the .bat as admin

I've got the whole thread I've made on minecraft forge, which I'll link here: https://forums.minecraftforge.net/topic/151665-1201-server-error-on-start-up-could-not-open-user_jvm_argstxt-strictly-when-running-on-admin/ That explains my current headache pretty well. Thanks in advance for the assistance. Also, I'll throw my .sh file in here as well for extra clarity and good measure.
Forge Forums
1.20.1 Server error on start up: "Could not open 'user_jvm_args.txt...
Greetings, I am Teka. Upon starting up a 1.20.1 server, with up to date Java 17, and the recommended Forge Server, the server fails to start automatically when running as admin, note I am the owner and admin of the box I am working on. It works when I do not run as admin, however without the jvm ...
196 Replies
Admincraft Meta
Admincraft Metaβ€’6mo ago
We have uploaded your file to a paste service for better readability
Paste services are more mobile friendly and easier to read than just posting a file
Requested by tekasupport
Admincraft Meta
Admincraft Metaβ€’6mo 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 tekasupport#0
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
@Teka Windows? Windows doesn’t use .sh? And Linux doesn’t use .bat
Teka
TekaOPβ€’6mo ago
It's Windows, forgot to specify
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
So what is the .sh file It’s for Linux, not windows
Teka
TekaOPβ€’6mo ago
Was asked to link it in gen chat when I originally started this convo Yeah I figured, but was just asked to put it in. I have very little experience with Debian 10. I use the .bat file
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Which doesn’t work on Linux Linux expects .sh, not bat
Teka
TekaOPβ€’6mo ago
Yes
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
And windows expects .bat, not .sh
Teka
TekaOPβ€’6mo ago
I have been using the .bat Just someone requested I post it
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
So why don’t you throw your .bat file in?
Teka
TekaOPβ€’6mo ago
Discord told me no
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
wtf even is in there for it to be this big
Teka
TekaOPβ€’6mo ago
It's not a file size issue I was told 'dangerous file type'
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Just use markdown and copy it in text
Teka
TekaOPβ€’6mo ago
On it @echo off REM Forge requires a configured set of both JVM and program arguments. REM Add custom JVM arguments to the user_jvm_args.txt REM Add custom program arguments {such as nogui} to this file in the next line before the %* or REM pass them to this script directly java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.20.1-47.3.0/win_args.txt %* pause There's the whole deal
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
Why can’t you just embed it into the same file ie β€œjava -Xmx -Xms -jar server.jar -nogui”
Teka
TekaOPβ€’6mo ago
the flags into the .bat file? Never thought of it Want me to give it a shot?
Teka
TekaOPβ€’6mo ago
Alright Immediately failed again when running as admin, same error Also, running without admin still fails to load with any args @π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ At this point I've got no idea what I'm doing wrong. I know it's not the large page memory args, I've got those allowed in my local policy, I just need the .bat to have admin privileges so it can use those args, and it dies before startup entirely, so it doesn't even generate a log. I apologized if I'm being incredibly dense, just new to all of this. Should I just ditch the large page memory args at this point and focus on the args not registering on startup? Or something else entirely
Teka
TekaOPβ€’6mo ago
-Xmx24G -Xms16G -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseNUMA -XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=400M -XX:NonNMethodCodeHeapSize=12M -XX:ProfiledCodeHeapSize=194M -XX:NonProfiledCodeHeapSize=194M -XX:-DontCompileHugeMethods -XX:MaxNodeLimit=240000 -XX:NodeLimitFudgeFactor=8000 -XX:+UseVectorCmov -XX:+PerfDisableSharedMem -XX:+UseFastUnorderedTimeStamps -XX:+UseCriticalJavaThreadPriority -XX:ThreadPriorityPolicy=1 -XX:AllocatePrefetchStyle=3 -XX:+UseG1GC -XX:MaxGCPauseMillis=37 -XX:+PerfDisableSharedMem -XX:G1HeapRegionSize=16M -XX:G1NewSizePercent=23 -XX:G1ReservePercent=20 -XX:SurvivorRatio=32 -XX:G1MixedGCCountTarget=3 -XX:G1HeapWastePercent=20 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1RSetUpdatingPauseTimePercent=0 -XX:MaxTenuringThreshold=1 -XX:G1SATBBufferEnqueueingThresholdPercent=30 -XX:G1ConcMarkStepDurationMillis=5.0 -XX:G1ConcRSHotCardLimit=16 -XX:G1ConcRefinementServiceIntervalMillis=150 -XX:GCTimeRatio=99 -XX:+UseLargePages -XX:LargePageSizeInBytes=2m
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
java -Xmx24G -Xms16G -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseNUMA -XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=400M -XX:NonNMethodCodeHeapSize=12M -XX:ProfiledCodeHeapSize=194M -XX:NonProfiledCodeHeapSize=194M -XX:-DontCompileHugeMethods -XX:MaxNodeLimit=240000 -XX:NodeLimitFudgeFactor=8000 -XX:+UseVectorCmov -XX:+PerfDisableSharedMem -XX:+UseFastUnorderedTimeStamps -XX:+UseCriticalJavaThreadPriority -XX:ThreadPriorityPolicy=1 -XX:AllocatePrefetchStyle=3 -XX:+UseG1GC -XX:MaxGCPauseMillis=37 -XX:+PerfDisableSharedMem -XX:G1HeapRegionSize=16M -XX:G1NewSizePercent=23 -XX:G1ReservePercent=20 -XX:SurvivorRatio=32 -XX:G1MixedGCCountTarget=3 -XX:G1HeapWastePercent=20 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1RSetUpdatingPauseTimePercent=0 -XX:MaxTenuringThreshold=1 -XX:G1SATBBufferEnqueueingThresholdPercent=30 -XX:G1ConcMarkStepDurationMillis=5.0 -XX:G1ConcRSHotCardLimit=16 -XX:G1ConcRefinementServiceIntervalMillis=150 -XX:GCTimeRatio=99 -XX:+UseLargePages -XX:LargePageSizeInBytes=2m -jar path/to/server.jar -nogui
java -Xmx24G -Xms16G -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseNUMA -XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=400M -XX:NonNMethodCodeHeapSize=12M -XX:ProfiledCodeHeapSize=194M -XX:NonProfiledCodeHeapSize=194M -XX:-DontCompileHugeMethods -XX:MaxNodeLimit=240000 -XX:NodeLimitFudgeFactor=8000 -XX:+UseVectorCmov -XX:+PerfDisableSharedMem -XX:+UseFastUnorderedTimeStamps -XX:+UseCriticalJavaThreadPriority -XX:ThreadPriorityPolicy=1 -XX:AllocatePrefetchStyle=3 -XX:+UseG1GC -XX:MaxGCPauseMillis=37 -XX:+PerfDisableSharedMem -XX:G1HeapRegionSize=16M -XX:G1NewSizePercent=23 -XX:G1ReservePercent=20 -XX:SurvivorRatio=32 -XX:G1MixedGCCountTarget=3 -XX:G1HeapWastePercent=20 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1RSetUpdatingPauseTimePercent=0 -XX:MaxTenuringThreshold=1 -XX:G1SATBBufferEnqueueingThresholdPercent=30 -XX:G1ConcMarkStepDurationMillis=5.0 -XX:G1ConcRSHotCardLimit=16 -XX:G1ConcRefinementServiceIntervalMillis=150 -XX:GCTimeRatio=99 -XX:+UseLargePages -XX:LargePageSizeInBytes=2m -jar path/to/server.jar -nogui
Teka
TekaOPβ€’6mo ago
I'll give them a shot Thanks for the help btw Alright, now when running without admin, I get the error 'Unable to access jarfile server.jar'
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
well you need to change the name
Teka
TekaOPβ€’6mo ago
The file it's calling to is the one in \libraries\net\minecraft\server\1.20.1 yes?
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
no? where is your jar file
Teka
TekaOPβ€’6mo ago
There's a couple, which is the confusion. There's the one in the folder path above, then there's these two here as well.
No description
Teka
TekaOPβ€’6mo ago
I haven't messed with anything in the folders, it's exactly as extracted File path for those two is \libraries\net\minecraftforge\forge\1.20.1-47.3.0
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
why not have it in the same directory file path can be relative or absolute
Teka
TekaOPβ€’6mo ago
I'm not certain which jar file the server is calling to is the issue
Tamz
Tamzβ€’6mo ago
@Teka you have a panel or anything setup, or just raw dogging it?
Teka
TekaOPβ€’6mo ago
I'm just raw dogging it.
Tamz
Tamzβ€’6mo ago
on linux or windows
Teka
TekaOPβ€’6mo ago
W10Pro
Tamz
Tamzβ€’6mo ago
so you are just running a powershell terminal
Teka
TekaOPβ€’6mo ago
cmd
Tamz
Tamzβ€’6mo ago
yeah basically so, what error you getting rn?
Teka
TekaOPβ€’6mo ago
At base value, the issue I've made this thread for is detailed in the forum post I made at the top of this thread. 'Could not open user_jvm_args.txt' when running as specifically. Without running as admin, the server does boot, however it does not boot with any of the args I put in place. There's a log attached to the forum post as well, a fresh boot up and shut down without running as admin. The reason I would like to run as admin is to use the large page memory args in the flag set
Tamz
Tamzβ€’6mo ago
is cmd saying anything or nah
Teka
TekaOPβ€’6mo ago
Which needs admin perms cmd is showing the server boot up when I run the .bat without running as admin
Teka
TekaOPβ€’6mo ago
When I do run as admin I get the following:
No description
Tamz
Tamzβ€’6mo ago
do you have java installed? or well the Correct version
Teka
TekaOPβ€’6mo ago
Latest edition of Java 17 from Oracle, recommended by Forge
Tamz
Tamzβ€’6mo ago
typically it shits itself out for 2 reasons no java or it really cant find user jvm args recommended by forge? how did you download it
Teka
TekaOPβ€’6mo ago
Through Oracle's site
Tamz
Tamzβ€’6mo ago
what mc version you trying to run?
Teka
TekaOPβ€’6mo ago
1.20.1
Tamz
Tamzβ€’6mo ago
https://adoptium.net/temurin/releases/?os=windows&version=17&arch=x64&package=any pick either the jre or jdk. BUT be sure you download the MSI
Latest Releases | Adoptium
Eclipse Adoptium provides prebuilt OpenJDK binaries ...
Tamz
Tamzβ€’6mo ago
i trust adoptium more then oracle to do its shit
Teka
TekaOPβ€’6mo ago
This will be a modded server, hence using Forge, however I'm just trying to get it to run vanilla before I even attempt to do anything with mods I'll remove Oracle and install that, gimme just a sec
Tamz
Tamzβ€’6mo ago
i personally select this with the install, works 99% of the time when running those versions of mc and what not
No description
Tamz
Tamzβ€’6mo ago
you can go down the path of Finding the file path and setting it on the variables file or whatever actually rq show a ss of your folder with the stuff? main directory
Teka
TekaOPβ€’6mo ago
Yeh, one sec
Tamz
Tamzβ€’6mo ago
ty
Teka
TekaOPβ€’6mo ago
File path: C:\Users\ -----\Documents\Minecraft 1.20.1 FORGE SERVER
No description
Tamz
Tamzβ€’6mo ago
can you send over the user_jvm file? also not what i meant by that file path lolz
Teka
TekaOPβ€’6mo ago
Thought it'd help somehow anyway
Tamz
Tamzβ€’6mo ago
a bit if the spaces between minecraft 1.20.1 are actual spaces youd wanna remove it servers dont like spaces to their directories
Teka
TekaOPβ€’6mo ago
Gimme just a sec for the .txt, I have to email the file to myself since I'm using anydesk to connect to my serverbox
Tamz
Tamzβ€’6mo ago
gotcha you can just open the file up and copy paste it no? also anydesk allows internal file transfers...
Teka
TekaOPβ€’6mo ago
I haven't gotten it to work, maybe I'm jus dumb
Tamz
Tamzβ€’6mo ago
the file transfers? agh i need something to connect to via anydesk one sec my phone should work
Teka
TekaOPβ€’6mo ago
Would you like me to just copy the text into here?
Tamz
Tamzβ€’6mo ago
yeah thatll work
Teka
TekaOPβ€’6mo ago
Xmx and Xms set the maximum and minimum RAM usage, respectively. They can take any number, followed by an M or a G. M means Megabyte, G means Gigabyte. For example, to set the maximum to 3GB: -Xmx3G To set the minimum to 2.5GB: -Xms2500M A good default for a modded server is 4GB. Uncomment the next line to set it. -Xmx24G -Xms16G -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseNUMA -XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=400M -XX:NonNMethodCodeHeapSize=12M -XX:ProfiledCodeHeapSize=194M -XX:NonProfiledCodeHeapSize=194M -XX:-DontCompileHugeMethods -XX:MaxNodeLimit=240000 -XX:NodeLimitFudgeFactor=8000 -XX:+UseVectorCmov -XX:+PerfDisableSharedMem -XX:+UseFastUnorderedTimeStamps -XX:+UseCriticalJavaThreadPriority -XX:ThreadPriorityPolicy=1 -XX:AllocatePrefetchStyle=3 -XX:+UseG1GC -XX:MaxGCPauseMillis=37 -XX:+PerfDisableSharedMem -XX:G1HeapRegionSize=16M -XX:G1NewSizePercent=23 -XX:G1ReservePercent=20 -XX:SurvivorRatio=32 -XX:G1MixedGCCountTarget=3 -XX:G1HeapWastePercent=20 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1RSetUpdatingPauseTimePercent=0 -XX:MaxTenuringThreshold=1 -XX:G1SATBBufferEnqueueingThresholdPercent=30 -XX:G1ConcMarkStepDurationMillis=5.0 -XX:G1ConcRSHotCardLimit=16 -XX:G1ConcRefinementServiceIntervalMillis=150 -XX:GCTimeRatio=99 -XX:+UseLargePages -XX:LargePageSizeInBytes=2m
Tamz
Tamzβ€’6mo ago
ah
Teka
TekaOPβ€’6mo ago
oops
Tamz
Tamzβ€’6mo ago
no file path located hmmmm funny funny forge servers i hate you forge that batch file is Technically a editable file let me check
Teka
TekaOPβ€’6mo ago
I can edit the .bat
Tamz
Tamzβ€’6mo ago
ooo send the contents over plz
Teka
TekaOPβ€’6mo ago
@echo off REM Forge requires a configured set of both JVM and program arguments. REM Add custom JVM arguments to the user_jvm_args.txt REM Add custom program arguments {such as nogui} to this file in the next line before the %* or REM pass them to this script directly java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.20.1-47.3.0/win_args.txt %* pause
Tamz
Tamzβ€’6mo ago
thats it?
Teka
TekaOPβ€’6mo ago
The whole deal, raw as it is without modification
Tamz
Tamzβ€’6mo ago
:HUH: thats nothing ok im giving you something that will be Better for you, for many reasons instead of this Batch file bullshit
Teka
TekaOPβ€’6mo ago
This is wonderous
Tamz
Tamzβ€’6mo ago
we swapping over to ps1 files (aka powershell) mainly because, serverpack creator is happy and has something called Variable text file, where you can add your flags, java path, and more in 1 place i just need to edit it to suit you what forge version are you running?
Teka
TekaOPβ€’6mo ago
47.3.0 methinks
Tamz
Tamzβ€’6mo ago
kk ima dm you these just in case
Teka
TekaOPβ€’6mo ago
Of course
Tamz
Tamzβ€’6mo ago
ok i sent em
Teka
TekaOPβ€’6mo ago
ye
Tamz
Tamzβ€’6mo ago
just so yk its not funny buissness, ps1 file is getable from serverpack creator (very handy tool) it has its data and everything inside if you wanna code read it
Tamz
Tamzβ€’6mo ago
i changed the Variables to remove my java path, and also change the forge version to what you need
No description
Tamz
Tamzβ€’6mo ago
i also cannot write code, so the chances of me ratting you is like 0
Teka
TekaOPβ€’6mo ago
Hey me too I also cannot code I can barely code basic C#
Tamz
Tamzβ€’6mo ago
:sad: welcome home
Teka
TekaOPβ€’6mo ago
Thanks
Tamz
Tamzβ€’6mo ago
shit at least you can do stuff i can only do snap :YEP: right right i forgot a required set
Teka
TekaOPβ€’6mo ago
We all have our autism hyperfocuseseses. Mine is Arma
Tamz
Tamzβ€’6mo ago
step*
Teka
TekaOPβ€’6mo ago
Ope
Tamz
Tamzβ€’6mo ago
maybe i had to on w11 maybe you will too i had to authorize my powershell to run the ps1
Teka
TekaOPβ€’6mo ago
Hey btw gonna say it again, thank you for your assistance. I am quite grateful
Tamz
Tamzβ€’6mo ago
Run powershell as administrator, then run Set-ExecutionPolicy RemoteSigned. Read the prompt, enter A, and enter. This will allow us to run scripts. yee np. this at least ik how to do, so im always happy to help
Teka
TekaOPβ€’6mo ago
Let me send these over to my serverbox rq
Tamz
Tamzβ€’6mo ago
if ik how to help, i help so you have a windows serverbox from where, and why :YEP:
Teka
TekaOPβ€’6mo ago
I tried Linux. I am not smart Also Because Arma server architecture plays better on W10, especially with modlists
Tamz
Tamzβ€’6mo ago
ah fair
Teka
TekaOPβ€’6mo ago
I did build this box specifically for A3, just looking to branch out into the unknown
Tamz
Tamzβ€’6mo ago
gotchaa whats the specs?
Teka
TekaOPβ€’6mo ago
I'm the intel Xeon guy you spoke to in gen earlier.
Tamz
Tamzβ€’6mo ago
ohhh the dual uh 2667's? i forgot which ones and thats a ram speed tamz :YEP: my ram speeds...
Teka
TekaOPβ€’6mo ago
If only minecraft server were multithreaded then I would have no problems but.
Tamz
Tamzβ€’6mo ago
true
Teka
TekaOPβ€’6mo ago
eh I want to try it anyways
Tamz
Tamzβ€’6mo ago
never will πŸ˜„ uhh itll run OK not best not worst kinda bad tho
Teka
TekaOPβ€’6mo ago
I'm not expecting best, or good for that matter, the box wasn't built for MC
Tamz
Tamzβ€’6mo ago
thats fair
Teka
TekaOPβ€’6mo ago
Well
Tamz
Tamzβ€’6mo ago
hm?
Teka
TekaOPβ€’6mo ago
I can't send the ps1 file over gmail because it's dAnGeRoUs
Tamz
Tamzβ€’6mo ago
what can you do i mean
Teka
TekaOPβ€’6mo ago
So gimme a sec while I logon to discord
Tamz
Tamzβ€’6mo ago
you can if you really need to
Teka
TekaOPβ€’6mo ago
on web
Tamz
Tamzβ€’6mo ago
setup a filezilla server :YEP: and sftp into it lol
Teka
TekaOPβ€’6mo ago
true
Tamz
Tamzβ€’6mo ago
but thats like major work for a file and then some
Teka
TekaOPβ€’6mo ago
I could do it but eh
Tamz
Tamzβ€’6mo ago
discord is better
Teka
TekaOPβ€’6mo ago
Alright the ps1 and variable files are in the main directory
Tamz
Tamzβ€’6mo ago
nice try to launch the ps1 file right click the file and run with powershell
Teka
TekaOPβ€’6mo ago
Running, writing request stream atm
Teka
TekaOPβ€’6mo ago
This popped up while writing the request
No description
Teka
TekaOPβ€’6mo ago
The server has started though
Tamz
Tamzβ€’6mo ago
mhm mhm you sure you have 47.3.0?
Teka
TekaOPβ€’6mo ago
That's the name of the files/folders oops
Tamz
Tamzβ€’6mo ago
?
Teka
TekaOPβ€’6mo ago
No description
Tamz
Tamzβ€’6mo ago
ah ok strange did you move any files from there?
Teka
TekaOPβ€’6mo ago
Nope
Tamz
Tamzβ€’6mo ago
can you ss the contents of that folder?
Teka
TekaOPβ€’6mo ago
No description
Tamz
Tamzβ€’6mo ago
well it says Downloading so ig its fine?
Teka
TekaOPβ€’6mo ago
I mean server is up
Tamz
Tamzβ€’6mo ago
oh what now :hmm: the flags?
Teka
TekaOPβ€’6mo ago
Let me do a bit of reading in this log, see if the flags were actually recognized and read
Tamz
Tamzβ€’6mo ago
kk the only flags i had in that variables file was -xmx8g and -xms4g
Teka
TekaOPβ€’6mo ago
Yeah Seems like those were working Let me throw in the rest of the bs to see if it complains at all
Tamz
Tamzβ€’6mo ago
to change java flags open the Variables file, and just throw in the flags you want πŸ˜„
Teka
TekaOPβ€’6mo ago
The issue is I need to run as admin, windows isn't allowing me to do so with the ps1 file
Tamz
Tamzβ€’6mo ago
hm? oh simple fix
Teka
TekaOPβ€’6mo ago
Tried making a shortcut and having the properties make it run as admin by default but that option is entirely greyed out
Tamz
Tamzβ€’6mo ago
here let me rq do on my system to see if it CAN work funny cuz the default powershell is still a shortcut :YEP: C:\Users-----\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell i use w11 so check if it is the same path if not just press the windows key, file path, copy path, change the default powershell to run as admin go back to og powershell, change launch file (instead of notepad) to be powershell from the path you copied and launch well hmm didnt change for me :Sadge:
Teka
TekaOPβ€’6mo ago
Does Powershell run as admin by default?
Tamz
Tamzβ€’6mo ago
no
Teka
TekaOPβ€’6mo ago
No :StalkerThink:
Tamz
Tamzβ€’6mo ago
hmmm wellllllllllllll technically you CAN run an admin powershell, cd into the directory and just launch the server from that :hmm:
Teka
TekaOPβ€’6mo ago
That be kinda funky Also I could just say screw the LargePage memory flags.
Tamz
Tamzβ€’6mo ago
true
Teka
TekaOPβ€’6mo ago
One thing, for garbage collection server side, do you recommend G1GC or ZGC I've heard both are good and both are ass Very contradictory
Tamz
Tamzβ€’6mo ago
these NUMA flags are really nice i am not a flags guy :Sadge:
Teka
TekaOPβ€’6mo ago
Yeah me neither obviously I'll give those a shot, why not
Tamz
Tamzβ€’6mo ago
ye
Teka
TekaOPβ€’6mo ago
It did not like that
Teka
TekaOPβ€’6mo ago
No description
Tamz
Tamzβ€’6mo ago
hmm
Teka
TekaOPβ€’6mo ago
MINECRAFT_VERSION=1.20.1 MODLOADER=Forge MODLOADER_VERSION=47.3.0 LEGACYFABRIC_INSTALLER_VERSION=1.0.0 FABRIC_INSTALLER_VERSION=1.0.1 QUILT_INSTALLER_VERSION=0.9.2 MINECRAFT_SERVER_URL=https://piston-data.mojang.com/v1/objects/84194a2f286ef7c14ed7ce0090dba59902951553/server.jar NEOFORGE_INSTALLER_URL=NONE JAVA_ARGS="java -Xmx24G -Xms16G -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseNUMA -XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=400M -XX:NonNMethodCodeHeapSize=12M -XX:ProfiledCodeHeapSize=194M -XX:NonProfiledCodeHeapSize=194M -XX:-DontCompileHugeMethods -XX:MaxNodeLimit=240000 -XX:NodeLimitFudgeFactor=8000 -XX:+UseVectorCmov -XX:+PerfDisableSharedMem -XX:+UseFastUnorderedTimeStamps -XX:+UseCriticalJavaThreadPriority -XX:ThreadPriorityPolicy=1 -XX:AllocatePrefetchStyle=3 -XX:+UseG1GC -XX:MaxGCPauseMillis=37 -XX:+PerfDisableSharedMem -XX:G1HeapRegionSize=16M -XX:G1NewSizePercent=23 -XX:G1ReservePercent=20 -XX:SurvivorRatio=32 -XX:G1MixedGCCountTarget=3 -XX:G1HeapWastePercent=20 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1RSetUpdatingPauseTimePercent=0 -XX:MaxTenuringThreshold=1 -XX:G1SATBBufferEnqueueingThresholdPercent=30 -XX:G1ConcMarkStepDurationMillis=5.0 -XX:G1ConcRSHotCardLimit=16 -XX:G1ConcRefinementServiceIntervalMillis=150 -XX:GCTimeRatio=99 -XX:+UseLargePages -XX:LargePageSizeInBytes=2m -jar path/to/server.jar -nogui" JAVA="java" WAIT_FOR_USER_INPUT=true That's how I inputted those args
Tamz
Tamzβ€’6mo ago
yeah thats fine oh i see get rid of these at the end -jar path/to/server.jar -nogui
Teka
TekaOPβ€’6mo ago
ope yea missed that
Tamz
Tamzβ€’6mo ago
is okie the ps1 and variables are linked, so the ps1 has the java locations the variables has the flag mess so variables should never attempt to Search for java itself unless ps1 is being a shit head and using the wrong java version then you overwrite the JAVA="java" to the folder path of your java install
Teka
TekaOPβ€’6mo ago
That makes sense
Tamz
Tamzβ€’6mo ago
caveman login :duckstrong:
Teka
TekaOPβ€’6mo ago
No description
Tamz
Tamzβ€’6mo ago
:pain:
Teka
TekaOPβ€’6mo ago
Still no like
Tamz
Tamzβ€’6mo ago
why could not find or load main class java :Sadge:
Teka
TekaOPβ€’6mo ago
I'd like to think.. Maybe somehow it's not liking the lack of admin privilage due to the usage of large page mem Gonna get rid of those flags
Tamz
Tamzβ€’6mo ago
try to run with admin also remove java at the start let me try to launch these flags rq strange i managed to launch mine
Teka
TekaOPβ€’6mo ago
So it was another dumb moment, didn't remove the java at the beginning. I didn't run as admin, it works
Tamz
Tamzβ€’6mo ago
openjdk version "17.0.11" 2024-04-16
OpenJDK Runtime Environment Temurin-17.0.11+9 (build 17.0.11+9)
OpenJDK 64-Bit Server VM Temurin-17.0.11+9 (build 17.0.11+9, mixed mode, sharing)

OpenJDK 64-Bit Server VM warning: JVM cannot use large page memory because it does not have enough privilege to lock pages in memory.
openjdk version "17.0.11" 2024-04-16
OpenJDK Runtime Environment Temurin-17.0.11+9 (build 17.0.11+9)
OpenJDK 64-Bit Server VM Temurin-17.0.11+9 (build 17.0.11+9, mixed mode, sharing)

OpenJDK 64-Bit Server VM warning: JVM cannot use large page memory because it does not have enough privilege to lock pages in memory.
this was the only error :YEP: even with admin it doesnt fix that :Wowza: who wouldve thought
Teka
TekaOPβ€’6mo ago
Do you have LargePage mem enabled in your localpolicy?
Tamz
Tamzβ€’6mo ago
:huh: no
Teka
TekaOPβ€’6mo ago
I had to do that to even allow access to that function
Tamz
Tamzβ€’6mo ago
probably not gotcha yeah i dont
Teka
TekaOPβ€’6mo ago
You on W10?
Tamz
Tamzβ€’6mo ago
W11 i dont need it so dwdw im also updating my system in like 4 months 6? somewhere around there
Teka
TekaOPβ€’6mo ago
gotcha, well I couldn't help either way, idk how to enable it in 11 lol
Tamz
Tamzβ€’6mo ago
lol no worries anyways thats all right? java works, server launchs, flags work
Teka
TekaOPβ€’6mo ago
Gonna skim through this wall of text rq and try to connect
Tamz
Tamzβ€’6mo ago
sure funny thing, that ps1 + variables combo works on Any version :pain: have those 2 things (and some libraries folders) and itll run it np πŸ™‚
Teka
TekaOPβ€’6mo ago
IT works You have greatly assisted me today
Tamz
Tamzβ€’6mo ago
:thumbsupcat: gotta train my brain somehow
Teka
TekaOPβ€’6mo ago
And educated me on some things I made mistakes on to boot Know that you are appreciated
Tamz
Tamzβ€’6mo ago
we all do when starting new things so no sweat :thumbsupcat: tyty ❀️ you are as well πŸ™‚ glad i could have helped
Teka
TekaOPβ€’6mo ago
Huge thanks again. No longer shall I headbutt a wall till it cracks, you broke it down :Innie_Thumbs:
Tamz
Tamzβ€’6mo ago
lmfao, if you need help on minecraft stuff im always open to help
piggy
piggyβ€’6mo ago
@Clyde
tamz_ has reached level 2! Roles Added: Level 2
Tamz
Tamzβ€’6mo ago
you can now do !solved to close this place πŸ˜„ well Lock*
Teka
TekaOPβ€’6mo ago
If you don't mind, I'd like to screenshot parts of this conversation for future reference. You approve of this?
Tamz
Tamzβ€’6mo ago
idm feel free
Teka
TekaOPβ€’6mo ago
Thanks
Tamz
Tamzβ€’6mo ago
np
Teka
TekaOPβ€’6mo ago
I shall close it now, one final thank you !solved
Admincraft Meta
Admincraft Metaβ€’6mo ago
post closed!
The post/thread has been closed!
Requested by tekasupport#0

Did you find this page helpful?