ElasticSuite 堆内存不足报错 “error“: {“root_cause“: [{ “type“: “circuit_breaking_excep

目录

错误提示:

问题原因

解决办法:

可能遇到的错误:


错误提示:

{
    "error": {
        "root_cause": [
            {
                "type": "circuit_breaking_exception",
                "reason": "[parent] Data too large, data for [<http_request>] would be [1050823878/1002.1mb], which is larger than the limit of [1020054732/972.7mb], real usage: [1050822704/1002.1mb], new bytes reserved: [1174/1.1kb], usages [request=131072/128kb, fielddata=0/0b, in_flight_requests=1174/1.1kb, model_inference=0/0b, accounting=47838948/45.6mb]",
                "bytes_wanted": 1050823878,
                "bytes_limit": 1020054732,
                "durability": "PERMANENT"
            }
        ],
        "type": "circuit_breaking_exception",
        "reason": "[parent] Data too large, data for [<http_request>] would be [1050823878/1002.1mb], which is larger than the limit of [1020054732/972.7mb], real usage: [1050822704/1002.1mb], new bytes reserved: [1174/1.1kb], usages [request=131072/128kb, fielddata=0/0b, in_flight_requests=1174/1.1kb, model_inference=0/0b, accounting=47838948/45.6mb]",
        "bytes_wanted": 1050823878,
        "bytes_limit": 1020054732,
        "durability": "PERMANENT"
    },
    "status": 429
}

问题原因

Elasticsearch 默认安装后设置的堆内存是 1 GB

解决办法:

添加全局变量:

sudo vi /etc/profile

结尾添加 export ES_HEAP_SIZE=10g

让变量生效:

source /etc/profile

记得重启elasticsuite服务

可能遇到的错误:

There are no commands defined in the "indexer" namespace.

查看日志 /var/log/elasticsearch/elasticsearch.log 

Exception in thread "main" java.nio.file.FileSystemException: /tmp/elasticsearch-7255934071649956994: 设备上没有空间
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:388)
	at java.base/java.nio.file.Files.createDirectory(Files.java:694)
	at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:135)
	at java.base/java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:172)
	at java.base/java.nio.file.Files.createTempDirectory(Files.java:1011)
	at org.elasticsearch.tools.launchers.Launchers.createTempDirectory(Launchers.java:66)
	at org.elasticsearch.tools.launchers.TempDirectory.main(TempDirectory.java:54)

没有磁盘空间导致如果是aws EC2 虚拟主机,请参考 amazon aws EC2 Linux 虚拟主机 磁盘扩容

如果是LVM文件系统的,请参考 ubuntu LVM disk 命令行给带有extended 扩展分区的磁盘分区扩容

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值