disable GCInspector on non-Sun JVMs. patch by Davanum Srinivas; reviewed by Roger Schildmeijer and jbellis for CASSANDRA-1061

git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.6@942118 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2010-05-07 15:16:32 +00:00
parent 5f72548d4a
commit 2d63ca7bb6
2 changed files with 11 additions and 1 deletions

View File

@ -9,6 +9,7 @@
* fix windows startup (CASSANDRA-948)
* make concurrent_reads, concurrent_writes configurable at runtime via JMX
(CASSANDRA-1060)
* disable GCInspector on non-Sun JVMs (CASSANDRA-1061)
0.6.1

View File

@ -313,7 +313,16 @@ public class StorageService implements IEndPointStateChangeSubscriber, StorageSe
}
DatabaseDescriptor.createAllDirectories();
GCInspector.instance.start();
try
{
GCInspector.instance.start();
}
catch (Throwable t)
{
logger_.warn("Unable to start GCInspector (currently only supported on the Sun JVM)");
}
logger_.info("Starting up server gossip");
MessagingService.instance.listen(FBUtilities.getLocalAddress());