V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Red998
V2EX  ›  程序员

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

  •  
  •   Red998 · Mar 15, 2022 · 1708 views
    This topic created in 1508 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
        1
    sqmwin  
       Mar 15, 2022
    非得用 Mac 的话,换 M1 吧,上 32G 内存,还跳啥呢
    Red998
        2
    Red998  
    OP
       Mar 15, 2022
    我的 mac 还能再战几年 M1 确实可以
    Oktfolio
        3
    Oktfolio  
       Mar 16, 2022
    @sqmwin M1 上跑 IDEA 还得用 JBR 17 ,不然卡得怀疑人生
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   997 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 18:15 · PVG 02:15 · LAX 11:15 · JFK 14:15
    ♥ Do have faith in what you're doing.