2K
V2EX  ›  macOS

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

  •  
  •   2K · Mar 14, 2022 · 1751 views
    This topic created in 1530 days ago, the information mentioned may be changed or developed.
    4 replies    2022-04-14 16:15:57 +08:00
    gadfly3173
        1
    gadfly3173  
       Mar 14, 2022
    Xmx Xms 配置的只是 jvm 的堆栈大小,不存在直接配置占用物理内存大小的方法
    gadfly3173
        2
    gadfly3173  
       Mar 14, 2022
    > 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
        3
    2K  
    OP
       Mar 15, 2022
    @gadfly3173 好的,谢谢!另想问一下,打开 idea 就直接占用物理内存两三个 G ,要是开启服务的话,每个服务也要占用一两个 G ,mac 就感觉有点卡顿了,这种是正常的情况吗?
    makaflow
        4
    makaflow  
       Apr 14, 2022
    我感觉正常 JB 家的软件吃内存 我的 pycharm 4-5G 的占用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   945 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:47 · PVG 05:47 · LAX 14:47 · JFK 17:47
    ♥ Do have faith in what you're doing.