当前位置:网站首页>IDEA修改jvm内存
IDEA修改jvm内存
2022-06-29 04:05:00 【深巷旧忆】
IDEA修改jvm内存(这里使用的是IDEA 2022版本)
打开 idea 在菜单栏的Help中点击 Edit Custom VM Options... 后即可看到打开文件 idea64.exe.vmoptions
将 idea64.exe.vmoptions 内部的内容修改为
-Xms500m
-Xmx4096m
-XX:ReservedCodeCacheSize=512m
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
-Xms128m, 16 G 内存的机器可尝试设置为 -Xms500m
(设置初始的内存数,增加该值可以提高 Java 程序的启动速度。 )
-Xmx750m, 16 G 内存的机器可尝试设置为 -Xmx4096m
(设置最大内存数,提高该值,可以减少内存 Garage 收集的频率,提高程序性能)
-XX:ReservedCodeCacheSize=240m, 16G 内存的机器可尝试设置为
-XX:ReservedCodeCacheSize=512m (保留代码占用的内存容量)
设置后重启idea即可看到参数修改成功
以上方法设置后无效
在环境变量中找到IEDA_VM_OPTIONS 找到该变量的值,复制
在文件资源管理器中找到该文件并打开,再次修改参数,后重启idea即可
边栏推荐
- Anaconda自带的Spyder编辑器启动报错问题
- How to back up all data on Apple mobile phone in 2 steps (free)
- Implementation of b+ tree index based on xlsx
- 开发者方案 · 环境监测设备(小熊派物联网开发板)接入涂鸦IoT开发平台
- 【C语言】 详解线程退出函数 pthread_exit
- 【FPGA数学公式】使用FPGA实现常用数学公式
- Data statistical analysis (SPSS) [7]
- If you choose the right school, you can enter Huawei as a junior college. I wish I had known
- 女程序员晒出5月的工资条:工资是高,但是真累,网友评论炸锅了
- Logstash starts too slowly or even gets stuck
猜你喜欢

自己动手搭建一个简单的网站

SQL performance optimization is really eye popping

What is the dry goods microservice architecture? What are the advantages and disadvantages?

欧拉开源社区第二届理事会第二次会议召开,新华三、超聚变和龙芯中科成为理事会成员单位

Tech Cloud Report: Mixed Office B side: How Safety and Efficiency can be combined?

基于可变参模板实现的线程池

How to merge upstream and downstream SQL data records

MySQL column to row conversion without Union

女程序员晒出5月的工资条:工资是高,但是真累,网友评论炸锅了

基于xlsx的B+树索引实现
随机推荐
Data collection and management [8]
88. (cesium chapter) cesium aggregation diagram
The great gods take connections from the MySQL connection pool in the open of the rich function. The initialization of the connection pool is 20. If the parallelism of the rich function is 1
要不是和阿里P7聊过,我也不知道自己是个棒槌
Data collection and management [7]
【C语言】详解线程回收函数 pthread_join
Why is the test post a giant pit? The 8-year-old tester told you not to be fooled
在命令行登录mysql数据库以及查看版本号
微秒级 TCP 时间戳
NotImplementedError: Could not run torchvision::nms
MySQL review materials (additional) case when
Ling Jing thinks about her own way
Live broadcast preview | neurips special session I & Young Scientists special session
[FPGA mathematical formula] use FPGA to realize common mathematical formulas
Data collection and management [4]
Data collection and management [10]
Here comes Wi Fi 7. How strong is it?
MobileOne: 移动端仅需1ms的高性能骨干
【FPGA数学公式】使用FPGA实现常用数学公式
【C语言】解决 “address of stack memory associated with local variable ‘num‘ returned”