小内存linux启动Kakfka报错: commit_memory(0x00000000c0000000, 1073741824, 0) failed ..解决方案

报错原因:

Kafka默认使用的JVM内存配置:

export KAFKA_HEAP_OPTS="-Xmx1G -Xms1G"

如果服务器内存较小,需要调整启动配置。

解决办法:

打开/opt/kafka_2.11-2.0.0/binkafka-server-start.sh,降低启动内存大小.
       
    如:export KAFKA_HEAP_OPTS="-Xmx512M -Xms512M"

原文地址:https://www.cnblogs.com/huangheng01/p/9412958.html

时间: 2024-11-10 18:40:50

小内存linux启动Kakfka报错: commit_memory(0x00000000c0000000, 1073741824, 0) failed ..解决方案的相关文章

首次启动Kafka报Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='Cannot allocate memory' (errno=12)

首次启动Kafka报错如下: 原因:内存不足,查看启动配置 调小一些: 首次启动Kafka报Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='Cannot allocate memory' (errno=12) 原文地址:https://www.cnblogs.com/zjfjava/p/10325523.html

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='Out of memory' (errno=12)

使用docker 安装kafka时启动失败 查看报错日志 # docker logs --since 30m 71846a96e514 Excluding KAFKA_HOME from broker config [Configuring] 'port' in '/opt/kafka/config/server.properties' [Configuring] 'advertised.listeners' in '/opt/kafka/config/server.properties' [C

linux 启动rabbitmq 报错:

Job for rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details. 解决: 1.找到nuesia文件夹 find / -name mnesia 2.删除文件夹下所有文件  rm -rf mnes

linux启动Firefox报错,及解决方法

今天在安装Firefox时,出现如下错误 [[email protected] ~]# firefox XPCOMGlueLoad error for file /usr/lib64/firefox/libxul.so: /lib64/libnss3.so: version `NSS_3.30' not found (required by /usr/lib64/firefox/libxul.so) Couldn't load XPCOM. 查找资料得知,只需安装nss.x86_64即可 yum

docker 无法启动,报错:Unit docker.socket failed to load: No such file or directory

问题:docker无法启动 错误:     Failed to start docker.service: Unit docker.socket failed to load: No such file or directory.      解决方法:     systemctl unmask docker.service     systemctl unmask docker.socket     systemctl start docker.service

linux启动jmeter报An error occurred

linux启动jmeter报错:An error occurred: /root/java/jdk1.8.0_51/jre/lib/amd64/libawt_xawt.so: libXext.so.6: cannot open shared object file: No such file or directory原因是没安装libXext 安装libXext:yum install libXext 如果还是报其他文件找不到,继续安装. 原文地址:http://blog.51cto.com/7

Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with

Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with 摘要 Linux系统下安装完MySQL,启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with... Linux系统下装完MySQL,然后重启动时报错: 解决方法:  查看cat /etc/h

Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with

Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with 摘要 Linux系统下安装完MySQL,启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with... Linux系统下装完MySQL,然后重新启动动时报错: 解决方法:  查看cat /etc

linux下启动tomcat报错 Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomness

INFO [localhost-startStop-1] com.mchange.v2.log.slf4j.Slf4jMLog$Slf4jMLogger$InfoLogger.log(206) | Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomnessjava.net.UnknownHostException: Oracle.Linu