Solved

Environment variable JAVA_OPTS=-Xmx512m with 384mb of RAM

Posted on 2006-07-04
4
3,552 Views
Last Modified: 2010-10-05
Hi

Can I succesfully run Java code that requires a heap space of 512mB (using env setting JAVA_OPTS=-Xmx512m) on a machine which has 384mb of ram?

Thanks,
Fredrick
0
Comment
Question by:fredrickblogs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 17037293
Best to test it. It will depend on swap space probably.

Incidentally, that setting doesn't *mean* (in itself) that much is required
0
 
LVL 14

Expert Comment

by:StillUnAware
ID: 17037301
If the OS supprts the memory swaping technique, then yes, but You should notice a major performance decrease when that happens
0
 
LVL 3

Accepted Solution

by:
anumalas earned 50 total points
ID: 17038534
Hi fredikblogs

Yes you can run. But check the paging in your system.

if your are using windows operating system <rightclick> My Computer-->adanced--> "in this select settings under performance" and xhrck what are all the paging options you have and try to increase (not less than maximum allowed) if pagginng doesnt met your requirements.

If you are using Unix boxes try to increase swap space. If you are really using Unix I hope that you know how to maintain swap space

Hope this is helpful :)
0
 
LVL 12

Expert Comment

by:enachemc
ID: 17056736
The -Xmx512m JAVA OPTS setting means that the new Java Virtual Machine that will be created when your program will be ran may take UP TO 512MBytes of memory (no necessary physical RAM). The setting that sets the initial memory for the created JVM is =-Xms setting. Your program might never need to use 512MB of memory.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question