3 ms·
> Its runtime environment exposes a lot of very strange things to the user for no particularly good reason (-Xmx1g? I'm still not sure why I need to specify th
by tdurden 12y ago
> Its runtime environment exposes a lot of very strange things to the user for no particularly good reason (-Xmx1g? I'm still not sure why I need to specify this to see the version of Java I'm running
I am pretty sure you don't need to specify a maximum memory allocation size to determine the version of Java being used.
- EdwardDiego 12y agoYep, it's just `javac -version` or `java -version`
- MichaelGG 12y agoHe added(?) a note explaining that the default is 4GB and will fail if the user has limits which is common in HPC configurations.
- EdwardDiego 12y agoDefault is 1/4 of physical memory for a server JVM. I'd emphasise the word server. Client JVMs are 1/4 of physical memory to a max of 256MB. I always enjoying reading blogs by people unfamiliar with a technology about why their poor understanding of a technology indicates that the technology they know better is better.