[英]Spring Boot keeps crashing my pc...what is the best configuration for sts.ini file on Windows 10?
I'm using Spring Tool Suite IDE on a Windows 10 laptop with an i5 core processor.我在带有 i5 核心处理器的 Windows 10 笔记本电脑上使用 Spring Tool Suite IDE。 Every time I try to run a Spring Boot App, STS hangs and crashes.
每次我尝试运行 Spring Boot 应用程序时,STS 都会挂起并崩溃。 The same app works fine on my peers' computers.
同一个应用程序在我同龄人的计算机上运行良好。
Now, even when I run a simple program to practice some coding challenges such as reversing a string, STS will slow down a bit and is not as smooth as before.现在,即使我运行一个简单的程序来练习一些编码挑战,例如反转字符串,STS 也会变慢一点,并且没有以前那么流畅。
These are my current sts.ini file configurations:这些是我当前的 sts.ini 文件配置:
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1100.v20190907-0426
-startup
plugins/org.eclipse.equinox.launcher_1.5.600.v20191014-2022.jar
-product
org.springframework.boot.ide.branding.sts4
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
I was considering changing my Xmx and Xms size.我正在考虑更改我的 Xmx 和 Xms 大小。 What should I increase this to for better STS performance.
我应该增加什么以获得更好的 STS 性能。
It depends on your Random Access Memory (RAM) of system.这取决于您的系统随机存取存储器 (RAM)。
As per your current sts.ini file,根据您当前的 sts.ini 文件,
-Xms256m -Xms256m
-Xmx1024m -Xmx1024m
which is generally set for 2GB RAM of system.通常设置为系统的 2GB RAM。
If you have more than 2GB RAM, for example 4GB RAM, please set:如果您有超过 2GB 的 RAM,例如 4GB RAM,请设置:
-Xms512m -Xms512m
-Xmx2048m -Xmx2048m
Above settings indicates STS will occupy upto 2GB of your 4GB RAM of system, among all other open applications .以上设置表示 STS 将占用系统 4GB RAM 中的 2GB,以及所有其他打开的应用程序。
Thanks and Regards.感谢致敬。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.