Spring 嵌入式Tomcat无法启动
我在Jrebel上运行Jhipster项目时遇到了这个错误。我试图通过在Arguments选项卡上的VM参数中插入这一行,将java堆大小增加到512m,但无法解决错误。我想问一下错误的原因是什么以及如何解决 ${jrebel_args} -Xms512m-Xmx1024mSpring 嵌入式Tomcat无法启动,spring,spring-boot,jhipster,jrebel,Spring,Spring Boot,Jhipster,Jrebel,我在Jrebel上运行Jhipster项目时遇到了这个错误。我试图通过在Arguments选项卡上的VM参数中插入这一行,将java堆大小增加到512m,但无法解决错误。我想问一下错误的原因是什么以及如何解决 ${jrebel_args} -Xms512m-Xmx1024m 使用JRebel运行JVM将占用高达50%的内存,如果占用更多内存,则会出现问题。以防万一,请尝试使用-Xmx2048m将最大限制加倍。这必须避免OutOfMemoryError。之后,您可以在观察实际内存使用情况时减少它。
使用JRebel运行JVM将占用高达50%的内存,如果占用更多内存,则会出现问题。以防万一,请尝试使用-Xmx2048m将最大限制加倍。这必须避免OutOfMemoryError。之后,您可以在观察实际内存使用情况时减少它。我通过在VM参数(eclipse)处添加-XX:MaxPermSize=512m来解决这个问题 感谢ZT(零周转)的支持
[ERROR] org.springframework.boot.context.embedded.tomcat.ServletContextInitializerLifecycleListener - Error starting Tomcat context: org.springframework.beans.factory.BeanCreationException
Exception in thread "main"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"
Exception in thread "process reaper" Exception in thread "process reaper"