Java seems to ignore -Xms and -Xmx options

后端 未结 3 1467
陌清茗
陌清茗 2020-12-01 23:46

I\'d like to run a very simple bot written in java on my VPS. I want to limit jvm memory to let\'s say 10MB (I doubt it would need any more).

I\'m running the bot wi

3条回答
  •  一向
    一向 (楼主)
    2020-12-02 00:39

    The JVM maps in shared libraries which are about 150m. The amount of virtual memory used is unlikely to be important to use if you are trying to minimise physical main memory.

    The number you want to look at is the resident memory which is amount of physical main memory actually used (which is 16 MB)

提交回复
热议问题