cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "graham sanderson (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-8325) Cassandra 2.1.x fails to start on FreeBSD (JVM crash)
Date Thu, 20 Nov 2014 02:56:34 GMT


graham sanderson commented on CASSANDRA-8325:

I don't have FreeBSD, but posting my comment from user thread

Only thing I can see from looking at the exception, is that it looks like maybe the “peer”
value in the RefCountedMemory object is probably 0

Given that Unsafe.allocateMemory should not return 0 even on allocation failure (it should
throw OOM, though you should add a log statement to the Memory class to check that) - I’d
suggest logging to see if anyone is calling SSTableReader.releaseSummary, which could set
the peer to 0
Note this particular use of sun.misc.Unsafe is new in 2.1, however I thought there were others
in 2.0. It is possible your JVM doesn't support {{public native long Unsafe.allocateMemory(long
l);}} and returns 0, though in that case you pretty much just need to switch back to the on
heap memtable allocator.
In either case, if you cannot recompile Cassandra for new logging, you can certainly write
a simple Jave program which calls {{public native long allocateMemory(long l);}}

> Cassandra 2.1.x fails to start on FreeBSD (JVM crash)
> -----------------------------------------------------
>                 Key: CASSANDRA-8325
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: FreeBSD 10.0 with openjdk version "1.7.0_71", 64-Bit Server VM
>            Reporter: Leonid Shalupov
>         Attachments: hs_err_pid1856.log, system.log
> See attached error file after JVM crash
> {quote}
> FreeBSD 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59
UTC 2014  amd64
> {quote}
> {quote}
>  % java -version
> openjdk version "1.7.0_71"
> OpenJDK Runtime Environment (build 1.7.0_71-b14)
> OpenJDK 64-Bit Server VM (build 24.71-b01, mixed mode)
> {quote}

This message was sent by Atlassian JIRA

View raw message