Link to home
Start Free TrialLog in
Avatar of fredrickblogs
fredrickblogs

asked on

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
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Best to test it. It will depend on swap space probably.

Incidentally, that setting doesn't *mean* (in itself) that much is required
If the OS supprts the memory swaping technique, then yes, but You should notice a major performance decrease when that happens
ASKER CERTIFIED SOLUTION
Avatar of anumalas
anumalas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.