2K
V2EX  ›  macOS

mac idea 已经在 idea.vmoptions 配置内存,但在活动监视器显示占的内存仍大于配置

  •  
  •   2K · Mar 14, 2022 · 2153 views
    This topic created in 1696 days ago, the information mentioned may be changed or developed.
    4 replies  •  2022-04-14 16:15:57 +08:00
    gadfly3173
    gadfly3173
    Mar 14, 2022
    1
    Xmx Xms 配置的只是 jvm 的堆栈大小,不存在直接配置占用物理内存大小的方法
    gadfly3173
    gadfly3173
    Mar 14, 2022
    2
    > Note that the JVM uses more memory than just the heap. For example Java methods, thread stacks and native handles are allocated in memory separate from the heap, as well as JVM internal data structures.

    https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/garbage_collect.html
    2K
    2K
    OP
    Mar 15, 2022
    3
    @gadfly3173 好的,谢谢!另想问一下,打开 idea 就直接占用物理内存两三个 G ,要是开启服务的话,每个服务也要占用一两个 G ,mac 就感觉有点卡顿了,这种是正常的情况吗?
    makaflow
    makaflow
    Apr 14, 2022
    4
    我感觉正常 JB 家的软件吃内存 我的 pycharm 4-5G 的占用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1631 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 18:04 · PVG 02:04 · LAX 10:04 · JFK 13:04
    ♥ Do have faith in what you're doing.