• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Red998
V2EX  ›  程序员

mac idea 开发 有没有比较好用的 jvm 配置。

  •  
  •   Red998 · Mar 15, 2022 · 2120 views
    This topic created in 1695 days ago, the information mentioned may be changed or developed.

    我的 mac 2020 intel i5 16G idea.vm -server -XX:MetaspaceSize=1g -XX:MaxMetaspaceSize=1g -XX:+AlwaysPreTouch -XX:+UseNUMA -XX:+UseG1GC -Xms4g -Xmx4g -XX:ReservedCodeCacheSize=1g

    jit 优化

    -XX:ConcGCThreads=2 -XX:MaxInlineLevel=2 -XX:TieredStopAtLevel=1 -XX:Tier4MinInvocationThreshold=100000 -XX:Tier4InvocationThreshold=110000 -XX:Tier4CompileThreshold=120000

    -Dsun.io.useCanonPrefixCache=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -Dkotlinx.coroutines.debug=off -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf -Xverify:none

    小项目还好。大项目编译就是开飞机一样

    sqmwin
    sqmwin
    Mar 15, 2022
    1
    非得用 Mac 的话,换 M1 吧,上 32G 内存,还跳啥呢
    Red998
    Red998
    OP
    Mar 15, 2022
    2
    我的 mac 还能再战几年 M1 确实可以
    Oktfolio
    Oktfolio
    Mar 16, 2022
    3
    @sqmwin M1 上跑 IDEA 还得用 JBR 17 ,不然卡得怀疑人生
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4899 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 05:53 · PVG 13:53 · LAX 21:53 · JFK 00:53
    ♥ Do have faith in what you're doing.