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

  • Home
  • SEARCH
  • 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 4591838
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:27:11+00:00 2026-05-21T22:27:11+00:00

we use Java for our project www.aerospaceresearch.net/constellation and use Java diretcly out of an

  • 0

we use Java for our project http://www.aerospaceresearch.net/constellation and use Java diretcly out of an uninstalled java bin-folder.

We have some troubles with ram usage of this java differing between OS and even 32 and 64bit versions.
Is it possible to set an upper limit for ram usage, so that Java does a dynamic rearranging of ram, that it is allways below 150mb for example?

That would really help us to solve some minor issues and to bring our app to systems with limited ram capabilities.

Thanks in advance, Andreas

  • 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-05-21T22:27:12+00:00Added an answer on May 21, 2026 at 10:27 pm

    It’s difficult to tell from your question, but you may be looking for the -Xmx option in Sun’s Oracle’s java tool, which sets a maximum size for the Java memory heap.

    For details on the various non-standard features offered by that version of the java tool (including several related to the heap), type java -X at a command prompt. For my installed version, that gives me:

    java -X
        -Xmixed           mixed mode execution (default)
        -Xint             interpreted mode execution only
        -Xbootclasspath:<directories and zip/jar files separated by :>
                          set search path for bootstrap classes and resources
        -Xbootclasspath/a:<directories and zip/jar files separated by :>
                          append to end of bootstrap class path
        -Xbootclasspath/p:<directories and zip/jar files separated by :>
                          prepend in front of bootstrap class path
        -Xnoclassgc       disable class garbage collection
        -Xincgc           enable incremental garbage collection
        -Xloggc:<file>    log GC status to a file with time stamps
        -Xbatch           disable background compilation
        -Xms<size>        set initial Java heap size
        -Xmx<size>        set maximum Java heap size
        -Xss<size>        set java thread stack size
        -Xprof            output cpu profiling data
        -Xfuture          enable strictest checks, anticipating future default
        -Xrs              reduce use of OS signals by Java/VM (see documentation)
        -Xcheck:jni       perform additional checks for JNI functions
        -Xshare:off       do not attempt to use shared class data
        -Xshare:auto      use shared class data if possible (default)
        -Xshare:on        require using shared class data, otherwise fail.
    
    The -X options are non-standard and subject to change without notice.

    If you’re using a different implementation of Java, those options may vary; and note the warning at the end of the above.

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

Sidebar

Related Questions

In our java project, We decided to use ORM object/relational mapping technique in objects'
Currently, when building our project we use: javac <various command line options> C:\project\CompilationHelper.java The
I'm migrating our Java EE project to use Maven instead of Ant. For the
What tools do you use to find unused/dead code in large java projects? Our
I'm using IntelliJ-Idea to write Java daemons. We use JUnit to unit test our
I'm converting an application to use Java 1.5 and have found the following method:
I use AjaxFileUpload ( http://www.phpletter.com/Our-Projects/AjaxFileUpload/ ) to upload a file and get json result
I'm currently developing on a project written in Java. We have a bunch of
I'm using jQuery in our Java project and 3 AJAX requests to refresh 3
Intro We have a project to design and implement this semester. For our project,

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.