# Elasticsearch:

**URL:** <https://discuss.elastic.co/t/elasticsearch/15416>\
**Category:** Elasticsearch\
**Created:** [January 25, 2014, 3:58pm UTC](https://discuss.elastic.co/t/elasticsearch/15416 "2014-01-25T15:58:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel\_Blankenship](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@Gabriel\_Blankenship](https://discuss.elastic.co/u/Gabriel_Blankenship)\
**Post date:** [January 25, 2014, 3:58pm UTC](https://discuss.elastic.co/t/elasticsearch/15416/1 "2014-01-25T15:58:11Z")

</div>

Hi all,

New to Logstash and Elasticsearch so pardon any silliness on my end with  
this configuration issue I'm currently having. I'm receiving the following  
error when I try to startup the elasticsearch as suggested via the guide  
linked below the following error code:  
[root@server01 ~]# service elasticsearch start  
Starting elasticsearch: [OK]  
[root@server01 ~]# Exception in thread "main"  
java.lang.ExceptionInInitializerError  
at java.lang.Class.initializeClass(libgcj.so.10)  
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:155)  
at org.elasticsearch.bootstrap.ElasticSearch.main(ElasticSearch.java:32)  
Caused by: java.lang.UnsupportedOperationException: gnu::java::lang::  
management::VMMemoryMXBeanImpl::getNonHeapMemoryUsage () not implemented  
at gnu.java.lang.management.VMMemoryMXBeanImpl.getNonHeapMemoryUsage(  
libgcj.so.10)  
at gnu.java.lang.management.MemoryMXBeanImpl.getNonHeapMemoryUsage(libgcj  
.so.10)  
at org.elasticsearch.monitor.jvm.JvmInfo.(JvmInfo.java:69)  
at java.lang.Class.initializeClass(libgcj.so.10)  
...2 more

The Guide:  
[http://blog.basefarm.com/blog/how-to-install-logstash-with-kibana-interface-on-rhel/](http://blog.basefarm.com/blog/how-to-install-logstash-with-kibana-interface-on-rhel/)

I stepped through the instructions exactly and installed ElasticSearch via  
the sites RPM on CentOS 6.0

I have added the following to: /usr/lib/sysctl.d/elasticsearch.conf  
ES\_MIN\_MEM=512m  
ES\_MAX\_MEM=1024m

As well modified the elasticsearch.in.sh file which got it a bit further in  
the startup though I'm not certain it's actually made a true difference as  
I'm still receiving the above error:  
source /usr/lib/sysctl.d/elasticsearch.conf

if ["x$ES\_MIN\_MEM" = "x"]; then  
ES\_MIN\_MEM=512m  
fi  
if ["x$ES\_MAX\_MEM" = "x"]; then  
ES\_MAX\_MEM=1024m  
fi

I'd be happy to provide any additional information if anyone has a thought  
as to where I might have gone wrong.

Currently installed is Nginx, Logstash, and ElasticSearch. Per the guide  
once complete it should be a working instance.... 🙂

Very much appreciate any help I can get and for you all taking any time  
what-so-ever to help me in getting this online. If I do end up identifying  
my problem which I have thus far looked over, I will be sure to update this  
post as well.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/24b60d07-1ee0-45a9-9fc0-ae9d6b86e0ef%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/24b60d07-1ee0-45a9-9fc0-ae9d6b86e0ef%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 25, 2014, 10:38pm UTC](https://discuss.elastic.co/t/elasticsearch/15416/2 "2014-01-25T22:38:23Z")

</div>

What java version are you using?

Also it's better to set min and max memory to be the same for ES.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 26 January 2014 02:58, Gabriel Blankenship [duplex@mypcpros.net](mailto:duplex@mypcpros.net) wrote:

> Hi all,
> 
> New to Logstash and Elasticsearch so pardon any silliness on my end with  
> this configuration issue I'm currently having. I'm receiving the following  
> error when I try to startup the elasticsearch as suggested via the guide  
> linked below the following error code:  
> [root@server01 ~]# service elasticsearch start  
> Starting elasticsearch: [OK]  
> [root@server01 ~]# Exception in thread "main"  
> java.lang.ExceptionInInitializerError  
> at java.lang.Class.initializeClass(libgcj.so.10)  
> at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:155)  
> at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32  
> )  
> Caused by: java.lang.UnsupportedOperationException: gnu::java::lang::  
> management::VMMemoryMXBeanImpl::getNonHeapMemoryUsage () not implemented  
> at gnu.java.lang.management.VMMemoryMXBeanImpl.getNonHeapMemoryUsage(  
> libgcj.so.10)  
> at gnu.java.lang.management.MemoryMXBeanImpl.getNonHeapMemoryUsage(  
> libgcj.so.10)  
> at org.elasticsearch.monitor.jvm.JvmInfo.(JvmInfo.java:69)  
> at java.lang.Class.initializeClass(libgcj.so.10)  
> ...2 more
> 
> The Guide:  
> [Expertise Archives - Cloud - Orange Business](http://blog.basefarm.com/blog/how-to-install-logstash-with-kibana-interface-on-rhel/)
> 
> I stepped through the instructions exactly and installed Elasticsearch via  
> the sites RPM on CentOS 6.0
> 
> I have added the following to: /usr/lib/sysctl.d/elasticsearch.conf  
> ES\_MIN\_MEM=512m  
> ES\_MAX\_MEM=1024m
> 
> As well modified the elasticsearch.in.sh file which got it a bit further  
> in the startup though I'm not certain it's actually made a true difference  
> as I'm still receiving the above error:  
> source /usr/lib/sysctl.d/elasticsearch.conf
> 
> if ["x$ES\_MIN\_MEM" = "x"]; then  
> ES\_MIN\_MEM=512m  
> fi  
> if ["x$ES\_MAX\_MEM" = "x"]; then  
> ES\_MAX\_MEM=1024m  
> fi
> 
> I'd be happy to provide any additional information if anyone has a thought  
> as to where I might have gone wrong.
> 
> Currently installed is Nginx, Logstash, and Elasticsearch. Per the guide  
> once complete it should be a working instance.... 🙂
> 
> Very much appreciate any help I can get and for you all taking any time  
> what-so-ever to help me in getting this online. If I do end up identifying  
> my problem which I have thus far looked over, I will be sure to update this  
> post as well.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/24b60d07-1ee0-45a9-9fc0-ae9d6b86e0ef%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/24b60d07-1ee0-45a9-9fc0-ae9d6b86e0ef%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624YPe\_mtNWpf4\_mO8uQwbwxTX-5G7MwsvKMwF2m0ktLXew%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624YPe_mtNWpf4_mO8uQwbwxTX-5G7MwsvKMwF2m0ktLXew%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Hassan\_Schroeder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hassan_schroeder/32/1526_2.png) [@Hassan\_Schroeder](https://discuss.elastic.co/u/Hassan_Schroeder)\
**Post date:** [January 25, 2014, 11:18pm UTC](https://discuss.elastic.co/t/elasticsearch/15416/3 "2014-01-25T23:18:16Z")

</div>

On Sat, Jan 25, 2014 at 7:58 AM, Gabriel Blankenship  
[duplex@mypcpros.net](mailto:duplex@mypcpros.net) wrote:

> at java.lang.Class.initializeClass(libgcj.so.10)  
> at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:155)  
> at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)  
> Caused by: java.lang.UnsupportedOperationException:  
> gnu::java::lang::management::VMMemoryMXBeanImpl::getNonHeapMemoryUsage ()  
> not implemented

gnu "java"? -- no. Install a real JVM.

--  
Hassan Schroeder ------------------------ [hassan.schroeder@gmail.com](mailto:hassan.schroeder@gmail.com)  
[Hassan Schroeder | about.me](http://about.me/hassanschroeder)  
twitter: @hassan

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CACmC4yAUFgnT7MEUrTouMkeWBRCNLHLCZ-7WGkmjx5J9v4zJ9w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACmC4yAUFgnT7MEUrTouMkeWBRCNLHLCZ-7WGkmjx5J9v4zJ9w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 1:54am UTC](https://discuss.elastic.co/t/elasticsearch/15416/4 "2017-07-06T01:54:47Z")

</div>


