In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about the solution of eclipse java.lang.OutOfMemoryError: Java heap space. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.
Eclipse has the jvm size set in the startup parameters, because eclipse also needs jvm when it runs, so the jvm size set in eclipse.ini is not the specific jvm size used by a program, which has nothing to do with the jvm size of the specific program.
So how can you set the jvm size of a program (of course, there won't be this problem if the console is running, such as: java-Xms256m-Xmx1024m classname, so you can set the jvm size of the current program)?
Because the default jvm configuration of a program in eclipse is:-Xms8m-Xmx128m, we need to manually adjust our processing when it consumes a lot of memory so that there is no memory overflow. The specific setting method is:
Select the class to be run, click on the menu 'run- > run...', select (x) = Argument, type-Xmx512m in the vm arguments box under the tab, and save and run the ok.
The above is the eclipse java.lang.OutOfMemoryError: Java heap space solution shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are 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: 234
*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.