我正在使用512兆内存的DigiOcean实例,使用kafka时出现以下错误。我不是一名熟练的Java开发人员。如何调整kafka以利用少量内存?这是一个开发服务器。我不想为更大的机器支付更多的费用。
#
# 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)