Learn and reprint from https://jingyan.baidu.com/article/624e7459653ca534e8ba5a26.html
Java is a very popular programming language, Java developers most use eclipse as their own IDE, in the process of code debugging sometimes encounter memory-deficient errors, there is no way to manually specify the startup parameters of the JVM? So today I share with you the "JVM startup parameters where set ", I hope to bring you some help.
① Open Eclipse
② create a class, write a demo code, right-click in the Code Editor, select "Run as" and "Run Configurations"
③ Click on the "(x) =arguments" tab,
Find "VM arguments", enter "-xms128m-xmx512m" and click the "Run" button below to run the program
PS: Parameter meaning description
-xms128m the initial allocated heap memory for the 128m-xmx512m JVM during startup is 512M of the maximum heap memory that is allowed to be allocated during the run of the JVM, on demand the above parameters can be self-sizing according to the actual situation
Long-term modification of JVM startup parameters
①②③④⑤⑥⑦⑧⑨⑩
Where the Eclipse JVM startup parameters are set