Tomcat 8, когда указано в машине ec2 - PullRequest
0 голосов
/ 04 февраля 2020

Это мой сценарий:

  1. Доступная память SWAP: 4 ГБ
  2. Linux

Я получаю следующие предупреждения:

Java HotSpot(TM) 64-Bit ServerVM warning: ignoring option MaxPermSize=1024m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000540000000, 7158628352, 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 7158628352 bytes for committing reserved memory.
 An error report file with more information is saved as:
 /opt/apache-tomcat-8.0.28/hs_err_pid8656.log

оперативной памяти в моей машине:

             total       used       free     shared    buffers     cached
Mem:          7986       7839        147          0         94       1390
-/+ buffers/cache:       6354       1632
Swap:         4095          3       4092


WARNING: An attempt was made to authenticate the locked user "root"..
...