当前位置:网站首页>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=1000
Final 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 .
边栏推荐
- Database SQL practice 3. Find the current salary details of the current leaders of each department and their corresponding department number Dept_ no
- Hdu1231 maximum continuous subsequence (divide and conquer or dynamic gauge or double pointer)
- 第 2 章:小试牛刀,实现一个简单的Bean容器
- Unity ugui how to match and transform coordinates between different UI panels or uis
- Docker installs MySQL and uses Navicat to connect
- DelayQueue延迟队列的使用和场景
- U-Boot初始化及工作流程分析
- Ros2 - install ros2 (III)
- Ggplot2 drawing learning notes in R
- Ros2 - common command line (IV)
猜你喜欢
Brief description of inux camera (Mipi interface)
C#学习笔记
Pytorch has been installed in anaconda, and pycharm normally runs code, but vs code displays no module named 'torch‘
PostMessage communication
And play the little chestnut of dynamic agent
Ros2 - Service Service (IX)
IPage can display data normally, but total is always equal to 0
[software testing] 06 -- basic process of software testing
An article was opened to test the real situation of outsourcing companies
Anaconda navigator click open no response, can not start error prompt attributeerror: 'STR' object has no attribute 'get‘
随机推荐
(top) pretty girl binary color code portal
The problem of configuring opencv in qt5.13.2 is solved in detail
【无标题】
Xiaomi written test real question 1
[software testing] 04 -- software testing and software development
Mathematical analysis_ Notes_ Chapter 8: multiple integral
现在有html文件,和用vs制作的mvc(连接了数据库),怎么两个相连?
并发编程 — 死锁排查及处理
iNFTnews | 喝茶送虚拟股票?浅析奈雪的茶“发币”
[vscode] search using regular expressions
【idea】Could not autowire. No beans of xxx type found
window navicat连接阿里云服务器mysql步骤及常见问题
1290_FreeRTOS中prvTaskIsTaskSuspended()接口实现分析
Ros2 - ros2 vs. ros1 (II)
Unity ugui how to match and transform coordinates between different UI panels or uis
Inftnews | drink tea and send virtual stocks? Analysis of Naixue's tea "coin issuance"
[OBS] x264 Code: "buffer_size“
Intelligent target detection 59 -- detailed explanation of pytoch focal loss and its implementation in yolov4
docker安装mysql并使用navicat连接
An article was opened to test the real situation of outsourcing companies