# java.lang.OutOfMemoryError: Java heap space error in logstash conf file

**URL:** <https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-error-in-logstash-conf-file/233985>\
**Category:** Logstash\
**Created:** [May 23, 2020, 9:42am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-error-in-logstash-conf-file/233985 "2020-05-23T09:42:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![avneshkumar98](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@avneshkumar98](https://discuss.elastic.co/u/avneshkumar98)\
**Post date:** [May 23, 2020, 9:42am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-error-in-logstash-conf-file/233985/1 "2020-05-23T09:42:19Z")

</div>

hey, I'm facing this issue while importing logs in kibana using conf file.

[2020-05-23T13:55:37,084][ERROR][org.logstash.Logstash] java.lang.OutOfMemoryError: Java heap space

and my conf file :

input {  
file{  
path =\> "/home/elk/Desktop/testing/Logs.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null/"  
}  
}  
filter{  
csv{  
separator =\> ","  
columns =\> ["Time","Blade","Severity","Action","Source","User",,"Service","ID"]  
}  
}  
output {  
elasticsearch {  
hosts =\> "localhost:9200"  
index =\> "indextesting"  
}  
stdout{}  
}

---

<div class="post-metadata">

**Author:** ![pup\_seba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pup_seba/32/42988_2.png) [@pup\_seba](https://discuss.elastic.co/u/pup_seba)\
**Post date:** [May 23, 2020, 10:04am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-error-in-logstash-conf-file/233985/2 "2020-05-23T10:04:16Z")

</div>

Hi,

Looks like the jvm where logstash excecutes has not enough memory assigned to it. What are the values of your total memory in the system and the memory assigned to logstash jvm (/eyc/logstash/jvm.options). What other applications are you running in that machine along side LS?

---

<div class="post-metadata">

**Author:** ![avneshkumar98](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@avneshkumar98](https://discuss.elastic.co/u/avneshkumar98)\
**Post date:** [May 26, 2020, 9:35am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-error-in-logstash-conf-file/233985/3 "2020-05-26T09:35:49Z")

</div>

Thank You @pup_seba.  
solved my error by increase memory in JVM.

---

<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:** [June 23, 2020, 9:35am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-error-in-logstash-conf-file/233985/4 "2020-06-23T09:35:52Z")

</div>

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