1.
解决以上出现的一些问题;
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
“JDK 8兼容性指南” 指出,在Java 8中,命令行标志 MaxPermSize 已被删除。原因是永久代从热点堆中被移除并被转移到本地内存。所以为了删除这条消息,编辑 MAVEN_OPTS 环境用户变量:
因为在1.8中将options的这个配置删除了。
linux中内存不够情况如何去避免:
首先根据配置可以得知,spoon.sh是linux下必备的环境变量文件:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000080000000, 716177408, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 716177408 bytes for committing reserved memory.
# An error report file with more information is saved as:
出现的报错信息如下:
问题还需要去解决:
未完,待续: