V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
2K
V2EX  ›  macOS

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

  •  
  •   2K · 2022-03-14 14:44:36 +08:00 · 823 次点击
    这是一个创建于 797 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    2022-04-14 16:15:57 +08:00
    gadfly3173
        1
    gadfly3173  
       2022-03-14 15:36:14 +08:00
    Xmx Xms 配置的只是 jvm 的堆栈大小,不存在直接配置占用物理内存大小的方法
    gadfly3173
        2
    gadfly3173  
       2022-03-14 15:37:51 +08:00
    > 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
       2022-03-15 10:07:42 +08:00
    @gadfly3173 好的,谢谢!另想问一下,打开 idea 就直接占用物理内存两三个 G ,要是开启服务的话,每个服务也要占用一两个 G ,mac 就感觉有点卡顿了,这种是正常的情况吗?
    makaflow
        4
    makaflow  
       2022-04-14 16:15:57 +08:00
    我感觉正常 JB 家的软件吃内存 我的 pycharm 4-5G 的占用
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   963 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:54 · PVG 06:54 · LAX 15:54 · JFK 18:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.