如何解决couchbase 服务器的内存问题4.5.0-2601 社区版
我们正在使用具有以下配置的 couchbase 服务器 操作系统:centos 8 版本:couchbase 版本:4.5.0-2601 社区版 (build-2601) 存储桶类型:Memcached 存储桶
由于内存过高,我们无法访问整个服务器。当我们检查日志时,我们在不同的日志文件中发现以下错误
indexer.log
-----------
2020-12-30T17:39:36.998+00:00 [Error] panic in PeerPipe.doReceive() : runtime error: makeslice: len out of range
2020-12-30T17:39:36.998+00:00 [Error] /home/couchbase/jenkins/workspace/watson-unix/goproj/src/github.com/couchbase/indexing/secondary/logging/logging.go:165 +0x24
github.com/couchbase/gometa/common.(*PeerPipe).doReceive.func1(0xc823bc0d20)
/home/couchbase/jenkins/workspace/watson-unix/goproj/src/github.com/couchbase/gometa/common/peerPipe.go:192 +0xf8
panic(0xf29280,0xc82341d8e0)
/home/couchbase/.cbdepscache/exploded/x86_64/go-1.6/go/src/runtime/panic.go:426 +0x4e9
github.com/couchbase/gometa/common.(*PeerPipe).readBytes(0xc823bc0d20,0x1b252d3132333435,0x0,0x0)
/home/couchbase/jenkins/workspace/watson-unix/goproj/src/github.com/couchbase/gometa/common/peerPipe.go:255 +0x8c
github.com/couchbase/gometa/common.(*PeerPipe).doReceive(0xc823bc0d20)
/home/couchbase/jenkins/workspace/watson-unix/goproj/src/github.com/couchbase/gometa/common/peerPipe.go:211 +0x373
created by github.com/couchbase/gometa/common.NewPeerPipe
/home/couchbase/jenkins/workspace/watson-unix/goproj/src/github.com/couchbase/gometa/common/peerPipe.go:60 +0x142
2020-12-30T17:39:36.998+00:00 [Error] LeaderSyncProxy.updateAcceptEpochAfterQuorum(): Error encountered = Server Error : SyncProxy.listen(): channel closed. Terminate
2020-12-30T17:39:36.998+00:00 [Error] LeaderServer:startProxy(): Leader Fail to synchronization with follower (TCP conn = 10.10.0.95:62288)
2020-12-30T17:39:46.008+00:00 [Info] Indexer::ReadMemstats Time Taken 776.105µs
2020-12-30T17:39:47.447+00:00 [Info] connected with 2 indexers
2020-12-30T17:39:47.447+00:00 [Info] client load stats {}
2020-12-30T17:39:52.323+00:00 [Info] memstats {"Alloc":57402672,"TotalAlloc":239502247224,"Sys":97601784,"Lookups":1103181,"Mallocs":4164125432,"Frees":4164027583,"HeapAlloc":57402672,"HeapSys":86081536,"HeapIdle":25837568,"HeapInuse":60243968,"HeapReleased":2400256,"HeapObjects":97849,"GCSys":2934784,"LastGC":1609349961539143885,"PauseTotalNs":6554226872,"PauseNs":[767905],"NumGC":7864}
2020-12-30T17:39:53.141+00:00 [Info] PeriodicStats = {"index_not_found_errcount":0,"indexer_state":"Active","memory_quota":536870912,"memory_used":63440896,"memory_used_queue":0,"memory_used_storage":262144,"needs_restart":false,"num_connections":0,"storage_mode":"forestdb","timings/stats_response":"1313246 100709227658 8965563527075018","uptime":"262h43m9.128529105s"}
2020-12-30T17:39:56.008+00:00 [Info] Indexer::ReadMemstats Time Taken 320.602µs
2020-12-30T17:40:06.009+00:00 [Info] Indexer::ReadMemstats Time Taken 394.903µs
2020-12-30T17:40:16.009+00:00 [Info] Indexer::ReadMemstats Time Taken 184.702µs
2020-12-30T17:40:26.010+00:00 [Info] Indexer::ReadMemstats Time Taken 383.503µs
2020-12-30T17:40:36.010+00:00 [Info] Indexer::ReadMemstats Time Taken 249.102µs
2020-12-30T17:40:46.011+00:00 [Info] Indexer::ReadMemstats Time Taken 511.404µs
2020-12-30T17:40:47.447+00:00 [Info] connected with 2 indexers
2020-12-30T17:40:47.447+00:00 [Info] client load stats {}
2020-12-30T17:40:52.323+00:00 [Info] memstats {"Alloc":71722192,"TotalAlloc":239516566744,"Lookups":1103249,"Mallocs":4164375144,"Frees":4164103284,"HeapAlloc":71722192,"HeapIdle":12656640,"HeapInuse":73424896,"HeapObjects":271860,"PauseNs":[],"NumGC":7864}
2020-12-30T17:40:53.141+00:00 [Info] PeriodicStats = {"index_not_found_errcount":0,"memory_used":76621824,"timings/stats_response":"1313329 100715623909 8966078509836069","uptime":"262h44m9.1288835s"}
2020-12-30T17:40:56.012+00:00 [Info] Indexer::ReadMemstats Time Taken 166.301µs
2020-12-30T17:41:06.012+00:00 [Info] Indexer::ReadMemstats Time Taken 180.401µs
debug.log
---------
ns_server:error,2020-12-31T14:51:19.184Z,ns_1@10.10.0.95:index_stats_collector-index<0.4315.363>:index_rest:get_json:42]Request to (indexer) http://127.0.0.1:84/stats?async=true failed: {error,stats.log
---------
[stats:warn,ns_1@10.10.0.95:index_stats_collector-index<0.4315.363>:base_stats_collector:latest_tick:69](Collector: index_stats_collector) Dropped 10 ticks
内存偏高是什么原因? indexer.log 中的那个错误是什么意思?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。