Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
319 views
in Technique[技术] by (71.8m points)

Java HotSpot(TM) 64-Bit Server VM warning

I have a tomcat as my web-server, it stopped down automatically with the given Error -

Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f16a8405000, 12288, 0) failed; error='Cannot allocate memory' (errno=12)

i need to figured it out what actually happened ? and what warning does mean ?

question from:https://stackoverflow.com/questions/31002612/java-hotspottm-64-bit-server-vm-warning

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (malloc) failed to allocate xxxxx bytes for committing reserved memory.

Possible reasons:

  1. The system is out of physical RAM or swap space
  2. In 32 bit mode, the process size limit was hit

Possible solutions:

  1. Reduce memory load on the system
  2. Increase physical memory or swap space
  3. Check if swap backing store is full
  4. Use 64 bit Java on a 64 bit OS
  5. Decrease Java heap size (-Xmx/-Xms)
  6. Decrease number of Java threads
  7. Decrease Java thread stack sizes (-Xss)
  8. Set larger code cache with -XX:ReservedCodeCacheSize=

If you are on Java 8 or later, please also see this question: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...