kafka 8 和内存 - 内存不足,无法继续 Java 运行时环境
2022-09-01 08:12:48
我正在使用具有512兆内存的DigiOcean实例,我得到了以下带有kafka的错误。我不是一个精通Java的开发人员。如何调整卡夫卡以利用少量的RAM。这是一个开发服务器。我不想为一台更大的机器每小时支付更多的钱。
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 986513408 bytes for committing reserved memory.
# An error report file with more information is saved as:
# //hs_err_pid6500.log
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000bad30000, 986513408, 0) failed; error='Cannot allocate memory' (errno=12)