In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to run slowly based on IntelliJ IDEA, which is very detailed and has a certain reference value. Friends who are interested must finish reading it!
Modify the configuration file
Idea.exe.vmoptions under IntelliJ IDEA\ bin
-server-Xverify:none-Xms300M-Xmx512M-XX:+UseParNewGC-XX:PermSize=128m-ea
-server uses server jvm. Use it as appropriate, and some doc say that adding this option to IDEA can improve speed.
-Xverify:none turns off Java bytecode verification, which speeds up class loading and reduces startup time by eliminating the need to load classes during startup for verification purposes only.
-Xms: another parameter to set memory, which is used to set the size of the memory stack during program initialization. Increasing this value will improve the startup performance of your program. However, there are also previous limitations, as well as restrictions by xmx.
-Xmx: is an option for java to set the maximum amount of memory your application can use (look, your application, not the entire jvm). If your program consumes a lot of memory, you need to modify the default settings, such as when configuring tomcat, you need to increase this value if the traffic and programs are large, but there is one thing to keep in mind. Don't exceed the memory of your machine, so that your machine can't stand it and will be dead by then.
-the size of the XX:PermSize permanent zone.
-XX:+UseParNewGC uses a parallel collection algorithm.
Idea.exe.vmoptions files with large memory can be changed to:
-Xms256m
-Xmx384m
-XX:MaxPermSize=128m
-XX:NewRatio=4
-Xss128k
-Dsun.awt.keepWorkingSetOnMinimize=true
-server
In addition, idea.properties can modify some configurations, such as setting the buffer to another disk other than C disk.
Other influencing factors
In addition to the memory allocation initiated by idea, there are:
1. Whether your C disk is free enough, because idea will set up a cache under your user directory on disk C. If your c disk space is small, it will be more tired to run.
2. Whether your project is bloated. Because the default idea will treat all files as project files, but in fact, what we need to edit in idea is basically program files. Class files, jar files, doc files, and so on are not needed. Open the module setting interface and switch to the source option to exclude all the files that are not part of the program, greatly reducing the load of idea.
3. Chinese is included in the project path, which will greatly increase the running time.
The above is all the contents of the article "what to do if you run slowly based on IntelliJ IDEA". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.