Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3628
  • Last Modified:

Environment variable JAVA_OPTS=-Xmx512m with 384mb of RAM

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
fredrickblogs
Asked:
fredrickblogs
1 Solution
 
CEHJCommented:
Best to test it. It will depend on swap space probably.

Incidentally, that setting doesn't *mean* (in itself) that much is required
0
 
StillUnAwareCommented:
If the OS supprts the memory swaping technique, then yes, but You should notice a major performance decrease when that happens
0
 
anumalasCommented:
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
 
enachemcCommented:
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now