3 ms·
> If I'm lucky I'll use that RAM for something interesting like a VM. But most of the time I use it so that the Java runtime doesn't bog my machine down. Java
by agentgt 10y ago
> If I'm lucky I'll use that RAM for something interesting like a VM. But most of the time I use it so that the Java runtime doesn't bog my machine down.
Java is a VM. I presume you mean vmware/docker/vbox which can and typically does take as much memory as Java.
And yes SSD will for sure improve Java performance as the initial load of loading tons of classes is typically what is slow in Java.
Speaking of SSD I bet ironically though what most people are using the loads of ram for is actually disk cache (whether they know it or not).
- mikestew 10y agoJava is a VM. I presume you mean vmware/docker/vbox That would be correct. I was just pulling from a mental list of "who is usually a memory hog when I look at Activity Monitor?" and not thinking in strict terms of what I wrote. ...and typically does take as much memory as Java. My experience says: I wouldn't be so sure about that. :-) Hence my listing of the Java runtime. (I'm not Java whiz, so I could probably optimize a thing or two, but I spend a lot of time with Android. And between Android Studio and firing up the runtime to run an emulator, Java can regularly take up multiple gigabytes of RAM.)