I found out it is due to "run out of the memory", Here are the logs:
fatal error: runtime: out of memory
runtime stack:
runtime.throw(0x1ae16ae, 0x16)
/usr/local/go/src/runtime/panic.go:617 +0x72
runtime.sysMap(0xe988000000, 0x4000000, 0x2bece38)
/usr/local/go/src/runtime/mem_linux.go:170 +0xc7
runtime.(*mheap).sysAlloc(0x2bd38c0, 0xa2000, 0x2bd38d0, 0x51)
/usr/local/go/src/runtime/malloc.go:633 +0x1cd
runtime.(*mheap).grow(0x2bd38c0, 0x51, 0x0)
/usr/local/go/src/runtime/mheap.go:1232 +0x42
runtime.(*mheap).allocSpanLocked(0x2bd38c0, 0x51, 0x2bece48, 0x2bd38d0)
/usr/local/go/src/runtime/mheap.go:1150 +0x3a7
runtime.(*mheap).alloc_m(0x2bd38c0, 0x51, 0x7f868d5a0100, 0x7f868d5aaa88)
/usr/local/go/src/runtime/mheap.go:977 +0xc2
runtime.(*mheap).alloc.func1()
/usr/local/go/src/runtime/mheap.go:1048 +0x4c
runtime.(*mheap).alloc(0x2bd38c0, 0x51, 0x7f87d3010100, 0xc3c5adc300)
/usr/local/go/src/runtime/mheap.go:1047 +0x8a
runtime.largeAlloc(0xa0510, 0xc406a10001, 0x1)
/usr/local/go/src/runtime/malloc.go:1055 +0x99
runtime.mallocgc.func1()
/usr/local/go/src/runtime/malloc.go:950 +0x46
runtime.systemstack(0x0)
/usr/local/go/src/runtime/asm_amd64.s:351 +0x66
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1153
goroutine 580 [running]:
runtime.systemstack_switch()
/usr/local/go/src/runtime/asm_amd64.s:311 fp=0xc0038c56f8 sp=0xc0038c56f0 pc=0xb16040
runtime.mallocgc(0xa0510, 0x1989580, 0xe97ee4f701, 0x0)
/usr/local/go/src/runtime/malloc.go:949 +0x872 fp=0xc0038c5798 sp=0xc0038c56f8 pc=0xac7052
runtime.newobject(0x1989580, 0xc0038c5800)
/usr/local/go/src/runtime/malloc.go:1068 +0x38 fp=0xc0038c57c8 sp=0xc0038c5798 pc=0xac7358
compress/flate.NewWriter(0x1c9ff80, 0xe986d365d0, 0x4, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:667 +0x31 fp=0xc0038c5810 sp=0xc0038c57c8 pc=0xe3fe01
compress/gzip.(*Writer).Write(0xe987900d10, 0xe98746aa80, 0xa67, 0xa67, 0x0, 0x0, 0x14acc34)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x2f7 fp=0xc0038c5860 sp=0xc0038c5810 pc=0xe4a247
github.com/elastic/beats/vendor/github.com/Shopify/sarama.compress(0x1ca3301, 0x4, 0xe98746aa80, 0xa67, 0xa67, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/elastic/beats/vendor/github.com/Shopify/sarama/compress.go:47 +0x1e6 fp=0xc0038c5910 sp=0xc0038c5860 pc=0x14a1376
github.com/elastic/beats/vendor/github.com/Shopify/sarama.(*RecordBatch).encodeRecords(0xe97c24bb80, 0x1cea400, 0xe981955f20, 0x0, 0x0)
/go/src/github.com/elastic/beats/vendor/github.com/Shopify/sarama/record_batch.go:194 +0xf1 fp=0xc0038c5980 sp=0xc0038c5910 pc=0x14c6711
github.com/elastic/beats/vendor/github.com/Shopify/sarama.(*RecordBatch).encode(0xe97c24bb80, 0x1cea400, 0xe981955f20, 0x193fb20, 0xe97df19c50)
/go/src/github.com/elastic/beats/vendor/github.com/Shopify/sarama/record_batch.go:81 +0x374 fp=0xc0038c59e8 sp=0xc0038c5980 pc=0x14c5c64
github.com/elastic/beats/vendor/github.com/Shopify/sarama.(*Records).encode(0xc0038c5b10, 0x1cea400, 0xe981955f20, 0x0, 0x0)
/go/src/github.com/elastic/beats/vendor/github.com/Shopify/sarama/records.go:63 +0xc4 fp=0xc0038c5a50 sp=0xc0038c59e8 pc=0x14c69a4
github.com/elastic/beats/vendor/github.com/Shopify/sarama.(*ProduceRequest).encode(0xe981955ee0, 0x1cea400, 0xe981955f20, 0x0, 0x0)
/go/src/github.com/elastic/beats/vendor/github.com/Shopify/sarama/produce_request.go:106 +0x2a4 fp=0xc0038c5bf8 sp=0xc0038c5a50 pc=0x14be444
github.com/elastic/beats/vendor/github.com/Shopify/sarama.(*request).encode(0xe986d365a0, 0x1cea400, 0xe981955f20, 0xe97f310d20, 0xf0)
/go/src/github.com/elastic/beats/vendor/github.com/Shopify/sarama/request.go:32 +0x13c fp=0xc0038c5c30 sp=0xc0038c5bf8 pc=0x14c75cc
github.com/elastic/beats/vendor/github.com/Shopify/sarama.encode(0x1ca1080, 0xe986d365a0, 0x1cdd0c0, 0xc0002a21b0, 0x0, 0xb, 0x0, 0x0, 0xc0038c5d01)
/go/src/github.com/elastic/beats/vendor/github.com/Shopify/sarama/encoder_decoder.go:24 +0x90 fp=0xc0038c5ca8 sp=0xc0038c5c30 pc=0x14acaa0
github.com/elastic/beats/vendor/github.com/Shopify/sarama.(*Broker).send(0xc002d81080, 0x1cd2260, 0xe981955ee0, 0xe981955f01, 0x0, 0x0, 0x0)
/go/src/github.com/elastic/beats/vendor/github.com/Shopify/sarama/broker.go:581 +0x26b fp=0xc0038c5e00 sp=0xc0038c5ca8 pc=0x149829b
github.com/elastic/beats/vendor/github.com/Shopify/sarama.(*Broker).sendAndReceive(0xc002d81080, 0x1cd2260, 0xe981955ee0, 0x1ca1000, 0xe981955f00, 0x2000107, 0x0)
/go/src/github.com/elastic/beats/vendor/github.com/Shopify/sarama/broker.go:612 +0x72 fp=0xc0038c5ee8 sp=0xc0038c5e00 pc=0x14987c2
github.com/elastic/beats/vendor/github.com/Shopify/sarama.(*Broker).Produce(0xc002d81080, 0xe981955ee0, 0xe979057601, 0x0, 0x0)
/go/src/github.com/elastic/beats/vendor/github.com/Shopify/sarama/broker.go:278 +0xe8 fp=0xc0038c5f38 sp=0xc0038c5ee8 pc=0x1496bb8
github.com/elastic/beats/vendor/github.com/Shopify/sarama.(*asyncProducer).newBrokerProducer.func1()
/go/src/github.com/elastic/beats/vendor/github.com/Shopify/sarama/async_producer.go:629 +0xb1 fp=0xc0038c5fb8 sp=0xc0038c5f38 pc=0x14cbe71
github.com/elastic/beats/vendor/github.com/Shopify/sarama.withRecover(0xc3c5f36da0)
/go/src/github.com/elastic/beats/vendor/github.com/Shopify/sarama/utils.go:45 +0x43 fp=0xc0038c5fd8 sp=0xc0038c5fb8 pc=0x14ca863
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1337 +0x1 fp=0xc0038c5fe0 sp=0xc0038c5fd8 pc=0xb18111
created by github.com/elastic/beats/vendor/github.com/Shopify/sarama.(*asyncProducer).newBrokerProducer
/go/src/github.com/elastic/beats/vendor/github.com/Shopify/sarama/async_producer.go:625 +0x1f6