Jump to content

Recommended Posts

Posted (edited)

My cmd window displays this:

[00:38:24] [main/INFO] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeserver' with arguments []

My user_jvm_args.txt says this:

# 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.
-Xmx14G
-Xms2G

My run.bat and run.sh are not tampered with, aside from replacing "java" with the exact filepath to java.exe in quotes.

I have Java 17. The server starts and mods function fine. Attempting to run run.bat as administrator results in:

Error: could not open `user_jvm_args.txt'

 

I'm at a loss. Please help. I just want my server to eat more RAM.

 

EDIT; "SOLVED": After testing it for the last hour or so, I've determined that the server is reading and executing the arguments correctly, and is simply not telling me in the command prompt. Running as Admin was its own problem; don't to that. An easy way to tell if this is the case: Watch the Task Manager, on the Details tab, with the Commit Size column visible. Commit Size will start out at your -Xms value, and increase as necessary up to your -Xmx value. Good to know that the code won't tell me when it's doing what I told it to. Hope this helps the next person with that concern.

Edited by Relzyrx
Solved the issue.
Posted
5 hours ago, TileEntity said:
"C:\Program Files\Java\jdk-17.0.9\bin\javaw.exe" -Xmx14G @libraries/net/minecraftforge/forge/1.19.2-43.3.0/win_args.txt
pause

Tried it, and it loaded, but I still received "Launching target 'forgeserver' with arguments []"

Posted
57 minutes ago, Luis_ST said:

How did you install the Forge server?

By downloading and running forge-1.19.2-43.3.0-installer.jar, then selecting the server option and the destination folder for my server.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.