Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8231307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:26:34+00:00 2026-06-07T17:26:34+00:00

According to the JVM 6 documentation, server class machines receive by default an initial

  • 0

According to the JVM 6 documentation, server class machines receive by default an initial heap size as 1/4 RAM or 1GB. Considering our Solaris 64Bit server has 64 GB, the initial heap size will default in as 256MB. Therefore, I need to set manually the heap size using the XMX parameter for 4GB. Though, when I add “-Xmx4096M”, Tomcat does not start. Here is the error message:

Invalid maximum heap size: -Xmx4096M
The specified size exceeds the maximum representable size.
Could not create the Java virtual machine.

What should be my command line parameters to allow my heap to grow up to 4GB?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T17:26:35+00:00Added an answer on June 7, 2026 at 5:26 pm

    Thanks for all your input, guys! Though, the output of my java -version mentions mixed mode which means that it is 64 bits. The real solution is adding -d64 to force it to run in 64 bits and therefore allocate the 4GBs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to the documentation of the JVM, if you use too big of a
According to Hibernate documentation : After observing that arrays cannot be lazy , you
I know that the -server JVM flag causes the JVM to use the Server
According to what I've heard, integer values that are not the processor's word size
According to Brian Goetz's Java Concurrency in Practice JVM can't exit until all the
According to the App Engine documentation, you can set system properties and environment variables
According to connects documentation the session should expire when the browser is closed: By
According to my class notes, you can allocate an array in C++ like int
According documentation: System.Array.Sort<T> - sorts the elements in an entire System.Array using the System.IComparable
According to the documentation , Zend Lucene is supposed to sort lexicographically. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.