Jump to content

hi i am trying to give my java sever 4g of my ram i have 8g of ram 

but i am getting this error

Invalid initial heap size: -Xms4096M
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.
Press any key to continue . . .

 

the code i am using for start up is @echo off
java -Xms4096M -Xmx8192M -jar server.jar
PAUSE

 

i have tried to Make the xms and xmx the same but still the same error

Link to comment
https://linustechtips.com/topic/1181451-need-help/
Share on other sites

Link to post
Share on other sites

You’re trying to reduce ram from 8gb to 4gb?  Why?

Not a pro, not even very good.  I’m just old and have time currently.  Assuming I know a lot about computers can be a mistake.

 

Life is like a bowl of chocolates: there are all these little crinkly paper cups everywhere.

Link to comment
https://linustechtips.com/topic/1181451-need-help/#findComment-13507887
Share on other sites

Link to post
Share on other sites

1 minute ago, DJWOLFF101 said:

what do u mean

 

He means the tread was moved from “general discussion” to “troubleshooting” because you’re trying to fix a specific problem.  Makes sense to me though regardless it is best  not to question the mods for they wield the mighty banhammer.  This is a forum rather than a social media thing like twitter or reddit.  Older school of social media.  It has actual live people moving things around, enforcing rules, and doing what amounts to civil service work.  It’s much better imho.  Newer style social media sites were designed for scale not quality.

Not a pro, not even very good.  I’m just old and have time currently.  Assuming I know a lot about computers can be a mistake.

 

Life is like a bowl of chocolates: there are all these little crinkly paper cups everywhere.

Link to comment
https://linustechtips.com/topic/1181451-need-help/#findComment-13508026
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×