# \[Solved\] Elastic shutdowns whenever he wants

**URL:** <https://discuss.elastic.co/t/solved-elastic-shutdowns-whenever-he-wants/122356>\
**Category:** Elasticsearch\
**Created:** [March 3, 2018, 7:01am UTC](https://discuss.elastic.co/t/solved-elastic-shutdowns-whenever-he-wants/122356 "2018-03-03T07:01:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elaelaela](https://avatars.discourse-cdn.com/v4/letter/e/82dd89/32.png) [@elaelaela](https://discuss.elastic.co/u/elaelaela)\
**Post date:** [March 3, 2018, 7:01am UTC](https://discuss.elastic.co/t/solved-elastic-shutdowns-whenever-he-wants/122356/1 "2018-03-03T07:01:57Z")

</div>

Hi! First of all I never used elastic search before, only mysql, but for searching 1m records I decided to use elastic.

I'm using elastic php library to insert and get records and use only autosuggest feature. On type get records.

Main problem - elastic shut downs whenever he wants. I have 4GB vps with mysql 2000Mb (50%) and elastic with default configs (I guess it uses 1GB config). On the casual check of processes mysql uses 51-52% nginx php processes 1-10%, so I dunno why elastic always shutdowns.

in the logs (/var/log/elasticsearch) on the last file 2018-02-28  
I have errors

```
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('B' (code 66)): was expecting comma to separate Object entries

```

and a lot of

```
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('Ð' (code 208)): was expecting comma to separate Object entries

```

Here full logs  
2018-02-24-1.log [https://pastebin.com/7xhr2bAZ](https://pastebin.com/7xhr2bAZ)  
**2018-02-25-1.log [https://pastebin.com/7Yi87jA4](https://pastebin.com/7Yi87jA4)** [maybe has needed info]  
2018-02-26-1.log [https://pastebin.com/x6Fjg8jx](https://pastebin.com/x6Fjg8jx)  
2018-02-27-1.log [https://pastebin.com/PHNsURiT](https://pastebin.com/PHNsURiT)  
gc.log.0.current [https://pastebin.com/KHnEZHtf](https://pastebin.com/KHnEZHtf)  
myapp-application.log [https://pastebin.com/arwL0ujB](https://pastebin.com/arwL0ujB)

I guess it is maybe some ram overage, so my second question how to set elastic to use 0.5GB ram, not 1gb

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 3, 2018, 1:58pm UTC](https://discuss.elastic.co/t/solved-elastic-shutdowns-whenever-he-wants/122356/2 "2018-03-03T13:58:35Z")

</div>

How did you install it?  
How do you start it?

---

<div class="post-metadata">

**Author:** ![elaelaela](https://avatars.discourse-cdn.com/v4/letter/e/82dd89/32.png) [@elaelaela](https://discuss.elastic.co/u/elaelaela)\
**Post date:** [March 3, 2018, 3:34pm UTC](https://discuss.elastic.co/t/solved-elastic-shutdowns-whenever-he-wants/122356/3 "2018-03-03T15:34:25Z")

</div>

solved issue by lowering jvm ram usage to 512m

---

<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:** [March 31, 2018, 3:34pm UTC](https://discuss.elastic.co/t/solved-elastic-shutdowns-whenever-he-wants/122356/4 "2018-03-31T15:34:50Z")

</div>

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