7 ms·
> Ok, just glanced at my corp workstation and some Java build analysis server is using 25GB RES, 50GB VIRT when I have no builds going. The hell is it doing. A
by lmm 1y ago
> Ok, just glanced at my corp workstation and some Java build analysis server is using 25GB RES, 50GB VIRT when I have no builds going. The hell is it doing.
Allocating a heap of the size it was configured to use, probably.
- frollogaston 1y agoThat's a max size, not a preset allocation. The process normally starts out using 1GB.
- lmm 1y agoSure, but if it's had to use a lot at some point in the past it usually holds onto it.
- frollogaston 1y agoThat would explain it, but also, that's super broken
- lmm 1y agoIt's not a big issue for a server deployment where if you got that memory from the OS and didn't get killed, there's probably nothing else running on the box and you might as well keep it for the next traffic spike. But yeah not ideal on the desktop/workstation.
- noelwelsh 1y agoNothing broken about it. It's optimized for a particular situation, that situation being a long running process on a server. This is where the JVM typically runs. If you don't want that behaviour there are a myriad of GC options, which could be better documented but are not that hard to find.
- frollogaston 1y agoI'm not the one who wrote it though, and it's software designed to run on a workstation.