?
Solved

Environment variable JAVA_OPTS=-Xmx512m with 384mb of RAM

Posted on 2006-07-04
4
Medium Priority
?
3,588 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 200 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month9 days, 16 hours left to enroll

762 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