Jump to content

Recommended Posts

Posted (edited)

Hello, I am currently trying to run a Forge 1.16.5 modded server so I can play pixelmon with some friends and was wondering if anyone can help me fix this error which is coming up. When I run forge through a run.bat (more ram) I get this error message:

Pixelmon Server>java -Xmx4096M -Xms4096M -jar forge-1.16.5-36.2.34.jar --nogui
Invalid maximum heap size: -Xmx4096M
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Any help is appreciated thanks in advance.

Edited by Comrade12
Posted

See: 

 

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Posted

I'm not sure how to remove this topic but I figured out the java version a second ago and now I'm trying to get the forge file to run with more ram but I got the new error (updated above)

Posted

Show the output from

Quote

java -version

You are probably using 32 bit java which doesn't support that amount of memory?

Download the 64 bit version.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

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.