简体   繁体   English

Spring Boot 不断使我的电脑崩溃……Windows 10 上 sts.ini 文件的最佳配置是什么?

[英]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.

相关问题 如何为sts 3.5.0配置具有8GB RAM的文件sts.ini? - How to config file sts.ini with RAM 8GB for sts 3.5.0? Spring Boot应用程序在生产中不断崩溃 - Spring boot app keeps crashing in production Spring 使用 application.yml 引导日志记录到 Windows PC 中的文件 - Spring Boot logging to file in Windows PC with application.yml Spring Boot WIndows 10 系统属性'file.encoding' - Spring Boot WIndows 10 System property 'file.encoding' Spring Boot无法从我的文件系统中获取配置文件 - Spring boot is not able to get configuration file from my file system 在 spring 引导中创建外部配置文件有什么意义? - What is the point of creating external configuration file in spring boot? Spring STS 无法在 Windows 10 64 位上运行 - Spring STS fails to run on windows 10 64bit 在 Spring Boot 应用程序中处理 json 文件的最佳方法是什么? - What is the best way to process a json file in spring boot app? Spring 即使使用 spring-boot-starter-web 依赖项,启动应用程序也会在启动时不断崩溃 - Spring Boot app keeps crashing on startup even with spring-boot-starter-web dependency Spring Boot连接池配置的最佳实践 - Best practices for Spring Boot connection pool configuration
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM