A simple “Hello World” needs 10G virtual memory on a 64-bit machine vs 1G at 32-bit?

前端 未结 7 1505
有刺的猬
有刺的猬 2021-02-02 05:33

Running a simple Java program on our production machine, I noticed that this program eats up more 10G virt. I know that virtual memory is not that relevant, but at least I would

7条回答
  •  半阙折子戏
    2021-02-02 05:36

    It's not your program using up that memory, it's the Java VM reserving that memory, regardless of which program is loaded.

提交回复
热议问题