SpringBoot报错:org.apache.catalina.loader.WebappClassLoaderBase - The web application [live] appears to have started a thread named [Druid-ConnectionPool-Destroy-515911717] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:...

原因:
内存溢出。

解决:
配置JVM参数:
# -Xms128m 初始堆大小,建议为内存的1/64
# -Xmx512m 最大堆大小,建议为内存的1/4
JAVA_OPTS= -Xms1024m -Xmx1024m

SpringBoot报错:org.apache.catalina.loader.WebappClassLoaderBase - The web application [live] appears to have started a thread named [Druid-ConnectionPool-Destroy-515911717] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:...

原因:
内存溢出。

解决:
配置JVM参数:
# -Xms128m 初始堆大小,建议为内存的1/64
# -Xmx512m 最大堆大小,建议为内存的1/4
JAVA_OPTS= -Xms1024m -Xmx1024m

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐