# Logstash Memory Issue

**URL:** <https://discuss.elastic.co/t/logstash-memory-issue/70240>\
**Category:** Logstash\
**Created:** [December 29, 2016, 11:10pm UTC](https://discuss.elastic.co/t/logstash-memory-issue/70240 "2016-12-29T23:10:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimmy\_Kang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jimmy_kang/32/14050_2.png) [@Jimmy\_Kang](https://discuss.elastic.co/u/Jimmy_Kang)\
**Post date:** [December 29, 2016, 11:10pm UTC](https://discuss.elastic.co/t/logstash-memory-issue/70240/1 "2016-12-29T23:10:16Z")

</div>

I am using mutate to convert my json tags fields from an array to string so that it can be compared in output.

However when I put this in, I am getting some errors involving memory:

`WARN: kafka.consumer.ConsumerFetcherThread: [ConsumerFetcherThread-Consumer10_9801a78e4f7f-1483048655512-36c5a8dd-0-2], Error in fetch Name: FetchRequest; Version: 0; CorrelationId: 0; ClientId: Consumer10; ReplicaId: -1; MaxWait: 100 ms; MinBytes: 1 bytes; RequestInfo: [eilogs,46] -> PartitionFetchInfo(36918488,1048576),[eilogs,11] -> PartitionFetchInfo(50059788,1048576),[eilogs,24] -> PartitionFetchInfo(34884974,1048576),[eilogs,4] -> PartitionFetchInfo(37852143,1048576),[eilogs,6] -> PartitionFetchInfo(21304662,1048576),[eilogs,49] -> PartitionFetchInfo(17929045,1048576),[eilogs,29] -> PartitionFetchInfo(21866035,1048576),[eilogs,34] -> PartitionFetchInfo(26594259,1048576),[eilogs,41] -> PartitionFetchInfo(25539852,1048576),[eilogs,21] -> PartitionFetchInfo(25720844,1048576),[eilogs,44] -> PartitionFetchInfo(23445520,1048576),[eilogs,19] -> PartitionFetchInfo(23317766,1048576),[eilogs,26] -> PartitionFetchInfo(19740822,1048576),[eilogs,39] -> PartitionFetchInfo(25690072,1048576),[eilogs,16] -> PartitionFetchInfo(18585849,1048576),[eilogs,1] -> PartitionFetchInfo(30710821,1048576),[eilogs,36] -> PartitionFetchInfo(25314804,1048576),[eilogs,31] -> PartitionFetchInfo(31193287,1048576). Possible cause: java.lang.OutOfMemoryError: Java heap space`

Below is my conf file:

```
filter {
    mutate {
    	convert => {"tags" => "string"}
    }
}   
output {

	mongodb {

	uri => "url"
	collection => "test"
   	 	database => "test"}
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 26, 2017, 11:10pm UTC](https://discuss.elastic.co/t/logstash-memory-issue/70240/2 "2017-01-26T23:10:36Z")

</div>

Closed on January 26, 2017, 11:10pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
