Java Memory : Runtime.getRuntime().maxMemory()

前端 未结 2 454
面向向阳花
面向向阳花 2021-01-21 16:31
Runtime.getRuntime().maxMemory() 

shows which memory ? Is it Survivor , Eden , Old, Permanent ?

2条回答
  •  终归单人心
    2021-01-21 17:14

    According to API, Returns the maximum amount of memory that the Java virtual machine will attempt to use. If there is no inherent limit then the value Long.MAX_VALUE will be returned.

提交回复
热议问题