[ 
https://issues.apache.org/jira/browse/CASSANDRA-7573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17386966#comment-17386966
 ] 

Kornel Pal commented on CASSANDRA-7573:
---------------------------------------

Sharing this in case it is helpful for others:

This same lz4 bug was identified as the root cause of a memory leak in an old 
Cassandra version using OpenJDK 8 and Shenandoah GC.

Cassandra 1.2, 2.0, 2.1 seems to be affected. Older versions have no lz4 
support, and newer version have this lz4 bug fixed.

Note that the memory leak was not shown by jmap but resulted in a crash with a 
fastdebug JVM build that pointed to lz4.

Replacing lz4 with version 1.3.0 solved the issue as a stopgap measure until 
Cassandra could be upgraded to a newer version that has lz4 1.3.0 included.

> Cassandra 2.0.9 with IBM Java 7 crashes during start up
> -------------------------------------------------------
>
>                 Key: CASSANDRA-7573
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7573
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: *Operating system: Linux AMD64, Red Hat Enterprise Linux 
> Workstation
> release 6.5 (Santiago) 2.6.32-431.21.1.el6.x86_64
> *JDK full version: pxa6470_27sr1-20140411_01(SR1) and
> pxa6470sr7-20140410_01(SR7)
> java version "1.7.0"
> Java(TM) SE Runtime Environment (build pxa6470_27sr1-20140411_01(SR1))
> IBM J9 VM (build 2.7, JRE 1.7.0 Linux amd64-64 Compressed References 
> 20140410_195893 (JIT enabled, AOT enabled)
> J9VM - R27_Java727_SR1_20140410_1931_B195893
> JIT  - tr.r13.java_20140410_61421
> GC   - R27_Java727_SR1_20140410_1931_B195893_CMPRSS
> J9CL - 20140410_195893)
> JCL - 20140409_01 based on Oracle 7u55-b13
>            Reporter: Jason Plurad
>            Priority: Normal
>
> Cassandra crashes during start up when using IBM Java 7 and generates a core 
> dump.
> A workaround is to avoid the JNI native compressor by changing 
> LZ4Factory.fastestInstance() to LZ4Factory.fastestJavaInstance() in 
> src/java/org/apache/cassandra/transport/FrameCompressor.java and
> src/java/org/apache/cassandra/io/compress/LZ4Compressor.java
> I opened up an issue against lz4-java also at 
> https://github.com/jpountz/lz4-java/issues/42



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to