Solved

Environment variable JAVA_OPTS=-Xmx512m with 384mb of RAM

Posted on 2006-07-04
4
3,513 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
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ForLoop Example 3 47
xampp tool 12 47
oracle 11g 23 73
runtime exception 2 27
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

816 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now