ES and Java 8. Does it worth the effort ?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

ES and Java 8. Does it worth the effort ?

Georgi Ivanov
Hi ,
I wander if i should start using Java 8 with my ES cluster.

Are there any benefits using Java 8 ?
For example :
faster GC , faster Java itself .. anything ES would bebefit from Java 8 .. etc


Please share your experience.

Georgi

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9cf82905-63cf-43f2-b14a-de8f21cb4b50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: ES and Java 8. Does it worth the effort ?

joergprante@gmail.com
Of course is Java 8 worth the effort.

Some highlights:

- no more permgen OOMs
- faster hash maps (20%)
- lambda expressions are faster than inner classes

Some concurrency classes like LongAdder are already included in ES.

Java 8 JVM brings also G1 GC to its full extension. G1 GC is not faster than CMS GC, but it scales much better over multicore and reduces stop-the-world pauses to milliseconds.

To exploit the full advantage of Java 8, ES would need a large overhaul by rewriting inner classes to lambda style, streams, fork/join pool etc. As long as Lucene does not switch to Java 8, the benefit is only partial.

Jörg




On Thu, Oct 30, 2014 at 9:01 PM, Georgi Ivanov <[hidden email]> wrote:
Hi ,
I wander if i should start using Java 8 with my ES cluster.

Are there any benefits using Java 8 ?
For example :
faster GC , faster Java itself .. anything ES would bebefit from Java 8 .. etc


Please share your experience.

Georgi

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9cf82905-63cf-43f2-b14a-de8f21cb4b50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGS98nt8%2ByPdm14UHR0pvZVzqVVE%3DtQakQhB_8R6arnNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: ES and Java 8. Does it worth the effort ?

vaidik
Would love to hear from Elasticsearch about plans on moving to Java 8.

Vaidik Kapoor
vaidikkapoor.info

On 31 October 2014 03:08, [hidden email] <[hidden email]> wrote:
Of course is Java 8 worth the effort.

Some highlights:

- no more permgen OOMs
- faster hash maps (20%)
- lambda expressions are faster than inner classes

Some concurrency classes like LongAdder are already included in ES.

Java 8 JVM brings also G1 GC to its full extension. G1 GC is not faster than CMS GC, but it scales much better over multicore and reduces stop-the-world pauses to milliseconds.

To exploit the full advantage of Java 8, ES would need a large overhaul by rewriting inner classes to lambda style, streams, fork/join pool etc. As long as Lucene does not switch to Java 8, the benefit is only partial.

Jörg




On Thu, Oct 30, 2014 at 9:01 PM, Georgi Ivanov <[hidden email]> wrote:
Hi ,
I wander if i should start using Java 8 with my ES cluster.

Are there any benefits using Java 8 ?
For example :
faster GC , faster Java itself .. anything ES would bebefit from Java 8 .. etc


Please share your experience.

Georgi

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9cf82905-63cf-43f2-b14a-de8f21cb4b50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGS98nt8%2ByPdm14UHR0pvZVzqVVE%3DtQakQhB_8R6arnNw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CACWtv5mwvxGmww6kQyEtmcq9XjjghAB1LbrGaMJ2gRcF%2BFsJqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: ES and Java 8. Does it worth the effort ?

joergprante@gmail.com
For JVM support, see


"We recommend installing the Java 8 update 20 or later, or Java 7 update 55 or later"

Jörg

On Fri, Oct 31, 2014 at 8:19 AM, Vaidik Kapoor <[hidden email]> wrote:
Would love to hear from Elasticsearch about plans on moving to Java 8.

Vaidik Kapoor
vaidikkapoor.info

On 31 October 2014 03:08, [hidden email] <[hidden email]> wrote:
Of course is Java 8 worth the effort.

Some highlights:

- no more permgen OOMs
- faster hash maps (20%)
- lambda expressions are faster than inner classes

Some concurrency classes like LongAdder are already included in ES.

Java 8 JVM brings also G1 GC to its full extension. G1 GC is not faster than CMS GC, but it scales much better over multicore and reduces stop-the-world pauses to milliseconds.

To exploit the full advantage of Java 8, ES would need a large overhaul by rewriting inner classes to lambda style, streams, fork/join pool etc. As long as Lucene does not switch to Java 8, the benefit is only partial.

Jörg




On Thu, Oct 30, 2014 at 9:01 PM, Georgi Ivanov <[hidden email]> wrote:
Hi ,
I wander if i should start using Java 8 with my ES cluster.

Are there any benefits using Java 8 ?
For example :
faster GC , faster Java itself .. anything ES would bebefit from Java 8 .. etc


Please share your experience.

Georgi

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9cf82905-63cf-43f2-b14a-de8f21cb4b50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGS98nt8%2ByPdm14UHR0pvZVzqVVE%3DtQakQhB_8R6arnNw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CACWtv5mwvxGmww6kQyEtmcq9XjjghAB1LbrGaMJ2gRcF%2BFsJqg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEyec8zLZfipmABn88M5aFb4hyu_FjubKfdggQabXuKNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: ES and Java 8. Does it worth the effort ?

Duncan Innes
We upgraded to Java 8 OpenJDK a few weeks ago - no problems seen so far.

D

On Friday, 31 October 2014 08:39:39 UTC, Jörg Prante wrote:
For JVM support, see

<a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.elasticsearch.org%2Fguide%2Fen%2Felasticsearch%2Freference%2Fcurrent%2Fsetup.html\46sa\75D\46sntz\0751\46usg\75AFQjCNF6jOhQj-brxrNnwLDHZHA6JpY49w';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.elasticsearch.org%2Fguide%2Fen%2Felasticsearch%2Freference%2Fcurrent%2Fsetup.html\46sa\75D\46sntz\0751\46usg\75AFQjCNF6jOhQj-brxrNnwLDHZHA6JpY49w';return true;">http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html

"We recommend installing the Java 8 update 20 or later, or Java 7 update 55 or later"

Jörg

On Fri, Oct 31, 2014 at 8:19 AM, Vaidik Kapoor <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="A5mSJ7cxzdUJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">kapoor...@...> wrote:
Would love to hear from Elasticsearch about plans on moving to Java 8.

Vaidik Kapoor
<a href="http://vaidikkapoor.info" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fvaidikkapoor.info\46sa\75D\46sntz\0751\46usg\75AFQjCNH5zKfq-xDwNXP5NRZ6kj1jIUZ_Iw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fvaidikkapoor.info\46sa\75D\46sntz\0751\46usg\75AFQjCNH5zKfq-xDwNXP5NRZ6kj1jIUZ_Iw';return true;">vaidikkapoor.info

On 31 October 2014 03:08, <a href="javascript:" target="_blank" gdf-obfuscated-mailto="A5mSJ7cxzdUJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">joerg...@... <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="A5mSJ7cxzdUJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">joerg...@...> wrote:
Of course is Java 8 worth the effort.

Some highlights:

- no more permgen OOMs
- improved concurrency implementations: <a href="http://docs.oracle.com/javase/8/docs/technotes/guides/concurrency/changes8.html" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdocs.oracle.com%2Fjavase%2F8%2Fdocs%2Ftechnotes%2Fguides%2Fconcurrency%2Fchanges8.html\46sa\75D\46sntz\0751\46usg\75AFQjCNF-tqBEWtVaPuxH-5l4srw5bweUCQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdocs.oracle.com%2Fjavase%2F8%2Fdocs%2Ftechnotes%2Fguides%2Fconcurrency%2Fchanges8.html\46sa\75D\46sntz\0751\46usg\75AFQjCNF-tqBEWtVaPuxH-5l4srw5bweUCQ';return true;">http://docs.oracle.com/javase/8/docs/technotes/guides/concurrency/changes8.html
- faster hash maps (20%)
- lambda expressions are faster than inner classes

Some concurrency classes like LongAdder are already included in ES.

Java 8 JVM brings also G1 GC to its full extension. G1 GC is not faster than CMS GC, but it scales much better over multicore and reduces stop-the-world pauses to milliseconds.

To exploit the full advantage of Java 8, ES would need a large overhaul by rewriting inner classes to lambda style, streams, fork/join pool etc. As long as Lucene does not switch to Java 8, the benefit is only partial.

Jörg




On Thu, Oct 30, 2014 at 9:01 PM, Georgi Ivanov <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="A5mSJ7cxzdUJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">georgi....@...> wrote:
Hi ,
I wander if i should start using Java 8 with my ES cluster.

Are there any benefits using Java 8 ?
For example :
faster GC , faster Java itself .. anything ES would bebefit from Java 8 .. etc


Please share your experience.

Georgi

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="A5mSJ7cxzdUJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">elasticsearc...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/elasticsearch/9cf82905-63cf-43f2-b14a-de8f21cb4b50%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/elasticsearch/9cf82905-63cf-43f2-b14a-de8f21cb4b50%40googlegroups.com?utm_medium\75email\46utm_source\75footer';return true;" onclick="this.href='https://groups.google.com/d/msgid/elasticsearch/9cf82905-63cf-43f2-b14a-de8f21cb4b50%40googlegroups.com?utm_medium\75email\46utm_source\75footer';return true;">https://groups.google.com/d/msgid/elasticsearch/9cf82905-63cf-43f2-b14a-de8f21cb4b50%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="A5mSJ7cxzdUJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">elasticsearc...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGS98nt8%2ByPdm14UHR0pvZVzqVVE%3DtQakQhB_8R6arnNw%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGS98nt8%2ByPdm14UHR0pvZVzqVVE%3DtQakQhB_8R6arnNw%40mail.gmail.com?utm_medium\75email\46utm_source\75footer';return true;" onclick="this.href='https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGS98nt8%2ByPdm14UHR0pvZVzqVVE%3DtQakQhB_8R6arnNw%40mail.gmail.com?utm_medium\75email\46utm_source\75footer';return true;">https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGS98nt8%2ByPdm14UHR0pvZVzqVVE%3DtQakQhB_8R6arnNw%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="A5mSJ7cxzdUJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">elasticsearc...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/elasticsearch/CACWtv5mwvxGmww6kQyEtmcq9XjjghAB1LbrGaMJ2gRcF%2BFsJqg%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/elasticsearch/CACWtv5mwvxGmww6kQyEtmcq9XjjghAB1LbrGaMJ2gRcF%2BFsJqg%40mail.gmail.com?utm_medium\75email\46utm_source\75footer';return true;" onclick="this.href='https://groups.google.com/d/msgid/elasticsearch/CACWtv5mwvxGmww6kQyEtmcq9XjjghAB1LbrGaMJ2gRcF%2BFsJqg%40mail.gmail.com?utm_medium\75email\46utm_source\75footer';return true;">https://groups.google.com/d/msgid/elasticsearch/CACWtv5mwvxGmww6kQyEtmcq9XjjghAB1LbrGaMJ2gRcF%2BFsJqg%40mail.gmail.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a04b814e-307c-46ba-aff3-fed79da04f09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: ES and Java 8. Does it worth the effort ?

Mark Walkom-2
In reply to this post by joergprante@gmail.com
Didn't see that, thanks for mentioning it though!

On 31 October 2014 19:39, [hidden email] <[hidden email]> wrote:
For JVM support, see


"We recommend installing the Java 8 update 20 or later, or Java 7 update 55 or later"

Jörg

On Fri, Oct 31, 2014 at 8:19 AM, Vaidik Kapoor <[hidden email]> wrote:
Would love to hear from Elasticsearch about plans on moving to Java 8.

Vaidik Kapoor
vaidikkapoor.info

On 31 October 2014 03:08, [hidden email] <[hidden email]> wrote:
Of course is Java 8 worth the effort.

Some highlights:

- no more permgen OOMs
- faster hash maps (20%)
- lambda expressions are faster than inner classes

Some concurrency classes like LongAdder are already included in ES.

Java 8 JVM brings also G1 GC to its full extension. G1 GC is not faster than CMS GC, but it scales much better over multicore and reduces stop-the-world pauses to milliseconds.

To exploit the full advantage of Java 8, ES would need a large overhaul by rewriting inner classes to lambda style, streams, fork/join pool etc. As long as Lucene does not switch to Java 8, the benefit is only partial.

Jörg




On Thu, Oct 30, 2014 at 9:01 PM, Georgi Ivanov <[hidden email]> wrote:
Hi ,
I wander if i should start using Java 8 with my ES cluster.

Are there any benefits using Java 8 ?
For example :
faster GC , faster Java itself .. anything ES would bebefit from Java 8 .. etc


Please share your experience.

Georgi

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9cf82905-63cf-43f2-b14a-de8f21cb4b50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGS98nt8%2ByPdm14UHR0pvZVzqVVE%3DtQakQhB_8R6arnNw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CACWtv5mwvxGmww6kQyEtmcq9XjjghAB1LbrGaMJ2gRcF%2BFsJqg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEyec8zLZfipmABn88M5aFb4hyu_FjubKfdggQabXuKNQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZk7R4ybxwKFBqO55WD%2BREDzP6pYdUhZNpa85nXfcQVikw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.