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
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
If the OS supprts the memory swaping technique, then yes, but You should notice a major performance decrease when that happens
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
Incidentally, that setting doesn't *mean* (in itself) that much is required