1. 程式人生 > >Kafka啟動,顯示記憶體不足,修改記憶體項

Kafka啟動,顯示記憶體不足,修改記憶體項

I am using DigiOcean instance with 512 megs of ram, I get the below error with kafka. I am not a java proficient dev. How do I adjust kafka to utilize the small amount of ram. This is a dev sever. I dont want to pay more per hour for a bigger machine.

## 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.logOpenJDK64-BitServer VM warning: INFO: os::commit_memory(0x00000000bad30000,986513408,0) failed; error='Cannot allocate memory'(errno=12)