Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 119B7C5DA for ; Tue, 1 May 2012 14:34:10 +0000 (UTC) Received: (qmail 4841 invoked by uid 500); 1 May 2012 14:34:09 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 4791 invoked by uid 500); 1 May 2012 14:34:09 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 4782 invoked by uid 99); 1 May 2012 14:34:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 14:34:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 14:34:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8D419429FBE for ; Tue, 1 May 2012 14:33:48 +0000 (UTC) Date: Tue, 1 May 2012 14:33:48 +0000 (UTC) From: "Pierre Chalamet (JIRA)" To: commits@cassandra.apache.org Message-ID: <1002912752.13314.1335882828579.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <225105397.10996.1335821389253.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-4201) Node crash after truncating CF MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-4201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265837#comment-13265837 ] Pierre Chalamet commented on CASSANDRA-4201: -------------------------------------------- 1 gig. Using jvm options in cassandra.bat : set JAVA_OPTS=-ea^ -javaagent:"%CASSANDRA_HOME%\lib\jamm-0.2.5.jar"^ -Xms1G^ -Xmx1G^ -XX:+HeapDumpOnOutOfMemoryError^ -XX:+UseParNewGC^ -XX:+UseConcMarkSweepGC^ -XX:+CMSParallelRemarkEnabled^ -XX:SurvivorRatio=8^ -XX:MaxTenuringThreshold=1^ -XX:CMSInitiatingOccupancyFraction=75^ -XX:+UseCMSInitiatingOccupancyOnly^ -Dcom.sun.management.jmxremote.port=7199^ -Dcom.sun.management.jmxremote.ssl=false^ -Dcom.sun.management.jmxremote.authenticate=false^ -Dlog4j.configuration=log4j-server.properties^ -Dlog4j.defaultInitOverride=true > Node crash after truncating CF > ------------------------------ > > Key: CASSANDRA-4201 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4201 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.1.0 > Environment: Windows 7 x64, 4Gb, JRE 1.6.0_31 (x86) > Reporter: Pierre Chalamet > Attachments: cassandra.yaml > > > 1. Create a single node cluster, use default configuration, use cassandra.bat to start the server: > 2. run the following commands in cli: > {code} > create keyspace toto; > use toto; > create column family titi; > truncate titi; > {code} > 3. the node dies with this error: > {code} > ERROR 23:23:02,118 Exception in thread Thread[COMMIT-LOG-ALLOCATOR,5,main] > java.io.IOError: java.io.IOException: Map failed > at org.apache.cassandra.db.commitlog.CommitLogSegment.(CommitLogSegment.java:127) > at org.apache.cassandra.db.commitlog.CommitLogSegment.recycle(CommitLogSegment.java:202) > at org.apache.cassandra.db.commitlog.CommitLogAllocator$2.run(CommitLogAllocator.java:159) > at org.apache.cassandra.db.commitlog.CommitLogAllocator$1.runMayThrow(CommitLogAllocator.java:95) > at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30) > at java.lang.Thread.run(Unknown Source) > Caused by: java.io.IOException: Map failed > at sun.nio.ch.FileChannelImpl.map(Unknown Source) > at org.apache.cassandra.db.commitlog.CommitLogSegment.(CommitLogSegment.java:119) > ... 5 more > Caused by: java.lang.OutOfMemoryError: Map failed > at sun.nio.ch.FileChannelImpl.map0(Native Method) > ... 7 more > INFO 23:23:02,122 Stop listening to thrift clients > INFO 23:23:02,123 Waiting for messaging service to quiesce > INFO 23:23:02,125 MessagingService shutting down server thread. > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira