Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring 嵌入式Tomcat无法启动_Spring_Spring Boot_Jhipster_Jrebel - Fatal编程技术网

Spring 嵌入式Tomcat无法启动

Spring 嵌入式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上运行Jhipster项目时遇到了这个错误。我试图通过在Arguments选项卡上的VM参数中插入这一行,将java堆大小增加到512m,但无法解决错误。我想问一下错误的原因是什么以及如何解决

${jrebel_args}

-Xms512m-Xmx1024m


使用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"