# # There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 136534 bytes for Chunk::new
# An error report file with more information is saved as:
# D:\eclipse\hs_err_pid32492.log
修改tomcat -> bin -> catalina.bat / catalina.sh,添加set JAVA_OPTS=-Xms128m -Xmx256m


本文详细介绍了当运行Java应用程序时遇到“内存不足”错误的解决方案,特别是针对Tomcat服务器。通过调整catalina.bat或catalina.sh文件中的JAVA_OPTS参数,设置初始堆大小为128MB,最大堆大小为256MB,有效避免了内存溢出问题。
7037

被折叠的 条评论
为什么被折叠?



