我有一个运行Solaris 10的服务器,它报告70+ GiB空闲内存。我试图在64位模式下使用Java 1.7.0_80启动Tomcat 7.0.68。
服务器声称它无法分配717 MiB的内存。每次尝试时,我都会得到一个hs_err_pidxxx.log文件。它提出如下建议:
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 717225984 bytes for committ
我尝试编译QxOrm源码提供的demo,编译时遇到这个报错
cc1plus.exe: out of memory allocating 65536 bytes
诡异的是,每次报错的问题都不一样,而且经过多次编译后,居然成功了。 这是什么原因,我在网上找了很多相关问题,没有跟我这个现象一致的,我该怎么解决这个问题呢?