3 ms·
"Less memory than Java" I can make a JVM use little memory at the cost of slowing it down. I can also give it all the memory on my server and it will translate
by whateveracct 10y ago
"Less memory than Java" I can make a JVM use little memory at the cost of slowing it down. I can also give it all the memory on my server and it will translate that into performance. Java's memory usage is extremely within your control so this comparison doesn't make sense.
- brianwawok 10y ago> "Less memory than Java" I can make a JVM use little memory at the cost of slowing it down. Maybe? You also need to assign about 2x live memory to the heap in order for GC to work properly. If you give it less, you will blow your heap and crash the JVM > I can also give it all the memory on my server and it will translate that into performance. No, it won't. CMS is realistically limited to about 16 GB of ram. Past that and you are going to have routine 2, 3, 4 second pauses for full GCs. G1GC is limited a bit higher, maybe 64 GB.. but again, beyond that and you are screwed. In a high performance app, routinely you limit heap usage to around 2 GB, which means you have about 1 GB of actual memory to use. > Java's memory usage is extremely within your control so this comparison doesn't make sense. Honestly, it sounds like you have never had to tune the JVM or run a Java app in production, so I disagree strongly with all you have said.