当前位置:网站首页>How to deal with excessive memory occupation of idea and Google browser
How to deal with excessive memory occupation of idea and Google browser
2022-07-05 07:19:00 【jiankang66】
One 、 background
Recently, there are too many browser pages on the computer at home , Heavy memory usage , and idea Starting a project will fill the memory , Finally, I checked some information and successfully solved this problem . Here is a record of , Convenient for direct use later .
Two 、 resolvent
For the problem that Google browser takes up too much memory , Because Chrome Using a multi process mechanism , every last Chrome And every extension , It's all independent processes . Downloaded OneTab plug-in unit , This plug-in can convert all viewed pages into lists , It was cleaned out in memory , but OneTab Keep a record of these tabs . When you want to revisit these tags , Can pass OneTab Re open , Every time you click the plug-in , All pages will be converted into lists , Which page do you need to continue reading , Click to open , It can solve the problem that too many pages open and consume too much memory .
Download address :one-tab.com/

idea Open project memory too high , It can be modified idea Configured jvm Parameters , adopt everything The finder finds the configuration file . Change it idea.exe.vmoptions and idea64.exe.vmoptions file .

Mainly modify the following parameters , My computer is 8g Memory .
(1) Set the minimum heap value to 1G
-Xms1024m(2) Set heap maximum to 2G
-Xmx2048m(3) Set the size of the code cache to 256m, and jvm Compiled code is often stored in Code Cache in , and Code Cache Space and memory support jvm Normal operation of , If the space is insufficient jvm The virtual machine will have problems , And the performance continues to decline .
-XX:ReservedCodeCacheSize=256m(4) Set up SoftRefLRUPolicyMSPerMB The value is 1000, This parameter means every 1M Free space can be maintained SoftReference The lifetime of the object ( The unit is ms millisecond )
-XX:SoftRefLRUPolicyMSPerMB=1000Final idea The configuration is as follows .

3、 ... and 、 summary
So that's the solution idea And Google Chrome takes up too much memory to process all content , It mainly involves several simple jvm Parameter tuning , I hope I can help you , Refer to , If you think it's good , Welcome to wechat search java Basic notes , Relevant knowledge will be continuously updated later , Make progress together .
边栏推荐
猜你喜欢

Target detection series - detailed explanation of the principle of fast r-cnn

PowerManagerService(一)— 初始化

CADD课程学习(6)-- 获得已有的虚拟化合物库(Drugbank、ZINC)

SOC_ SD_ CMD_ FSM

Ethtool principle introduction and troubleshooting ideas for network card packet loss (with ethtool source code download)

IPage can display data normally, but total is always equal to 0

网易To B,柔外刚中

SD_ CMD_ RECEIVE_ SHIFT_ REGISTER

Concurrent programming - deadlock troubleshooting and handling

SOC_ SD_ DATA_ FSM
随机推荐
Mathematical analysis_ Notes_ Chapter 8: multiple integral
Brief description of inux camera (Mipi interface)
ORACLE CREATE SEQUENCE,ALTER SEQUENCE,DROP SEQUENCE
并发编程 — 死锁排查及处理
Ros2 - configuration development environment (V)
ModuleNotFoundError: No module named ‘picamera‘
Intelligent target detection 59 -- detailed explanation of pytoch focal loss and its implementation in yolov4
The difference between new and malloc
Special training of C language array
NPM and package common commands
Concurrent programming - deadlock troubleshooting and handling
C#学习笔记
Ros2 topic (VIII)
Ros2 - node (VII)
C learning notes
Pytorch has been installed in anaconda, and pycharm normally runs code, but vs code displays no module named 'torch‘
docker安装mysql并使用navicat连接
The problem of configuring opencv in qt5.13.2 is solved in detail
Simple operation of nixie tube (keil5)
DelayQueue延迟队列的使用和场景