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 577EB9838 for ; Fri, 2 Mar 2012 02:47:23 +0000 (UTC) Received: (qmail 11721 invoked by uid 500); 2 Mar 2012 02:47:22 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 11678 invoked by uid 500); 2 Mar 2012 02:47:21 -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 11638 invoked by uid 99); 2 Mar 2012 02:47:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 02:47:20 +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; Fri, 02 Mar 2012 02:47:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 40784485F for ; Fri, 2 Mar 2012 02:46:59 +0000 (UTC) Date: Fri, 2 Mar 2012 02:46:59 +0000 (UTC) From: "tyler cheung (Issue Comment Edited) (JIRA)" To: commits@cassandra.apache.org Message-ID: <1867086605.10394.1330656419265.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <549948926.8584.1309525888996.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (CASSANDRA-2845) Cassandra uses 100% system CPU on Ubuntu Natty (11.04) 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-2845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220627#comment-13220627 ] tyler cheung edited comment on CASSANDRA-2845 at 3/2/12 2:46 AM: ----------------------------------------------------------------- OK - so what happened was I manually put in libjna 3.4.0 files (copied the tarball and redid the symlinks). The /etc/init.d script didn't work but the sudo /usr/sbin/cassandra did, and things seem to work a lot better. They just moved my office and I have a new core i5 w/ 4 gb RAM. I just redid the cassandra install w/ vanilla 11.10 (libjna 3.2.7), openjre6, jsvc1.0.6. There was a brief hiccup but its running. Top shows jsvc running cassandra consuming 35% memory as follows: {{Cpu(s): 0.2%us, 0.2%sy, 0.0%ni, 99.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st}} {{Mem: 3934168k total, 3805184k used, 128984k free, 175792k buffers}} {{Swap: 4071420k total, 26532k used, 4044888k free, 1083252k cached}} {{ PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND }} {{20452 root 20 0 166m 13m 8640 S 1 0.4 1:37.09 Xorg }} {{21906 tylerc 20 0 453m 16m 10m S 1 0.4 0:02.43 xfce4-terminal }} {{21337 tylerc 20 0 172m 12m 8704 S 0 0.3 0:10.59 xfwm4 }} {{21433 tylerc 20 0 698m 105m 38m S 0 2.7 2:59.83 chrome }} {{23067 tylerc 20 0 864m 59m 16m S 0 1.6 0:01.94 chrome }} {{23735 cassandr 20 0 1518m 1.3g 18m S 0 35.1 0:01.90 jsvc }} {{...}} I'm going to try and get the newer libjna again and see if this helps memory usage. Kernel is 3.0.0.12 generic. was (Author: tcheung): OK - so what happened was I manually put in libjna 3.4.0 files (copied the tarball and redid the symlinks). The /etc/init.d script didn't work but the sudo /usr/sbin/cassandra did, and things seem to work a lot better. They just moved my office and I have a new core i5 w/ 4 gb RAM. I just redid the cassandra install w/ vanilla 11.10 (libjna 3.2.7), openjre6, jsvc1.0.6. There was a brief hiccup but its running. Top shows jsvc running cassandra consuming 35% memory as follows: Cpu(s): 0.2%us, 0.2%sy, 0.0%ni, 99.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3934168k total, 3805184k used, 128984k free, 175792k buffers Swap: 4071420k total, 26532k used, 4044888k free, 1083252k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 20452 root 20 0 166m 13m 8640 S 1 0.4 1:37.09 Xorg 21906 tylerc 20 0 453m 16m 10m S 1 0.4 0:02.43 xfce4-terminal 21337 tylerc 20 0 172m 12m 8704 S 0 0.3 0:10.59 xfwm4 21433 tylerc 20 0 698m 105m 38m S 0 2.7 2:59.83 chrome 23067 tylerc 20 0 864m 59m 16m S 0 1.6 0:01.94 chrome 23735 cassandr 20 0 1518m 1.3g 18m S 0 35.1 0:01.90 jsvc ... I'm going to try and get the newer libjna again and see if this helps memory usage. Kernel is 3.0.0.12 generic. > Cassandra uses 100% system CPU on Ubuntu Natty (11.04) > ------------------------------------------------------ > > Key: CASSANDRA-2845 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2845 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.8.0 > Environment: Default install of Ubuntu 11.04 > Reporter: Steve Corona > Assignee: paul cannon > Priority: Critical > Fix For: 0.8.2 > > > Step 1. Boot up a brand new, default Ubuntu 11.04 Server install > Step 2. Install Cassandra from Apache APT Respository (deb http://www.apache.org/dist/cassandra/debian 08x main) > Step 3. apt-get install cassandra, as soon as it cassandra starts it will freeze the machine > What's happening is that as soon as cassandra starts up it immediately sucks up 100% of CPU and starves the machine. This effectively bricks the box until you boot into single user mode and disable the cassandra init.d script. > Under htop, the CPU usage shows up as "system" cpu, not user. > The machine I'm testing this on is a Quad-Core Sandy Bridge w/ 16GB of Memory, so it's not a system resource issue. I've also tested this on completely different hardware (Dual 64-Bit Xeons & AMD X4) and it has the same effect. > Ubuntu 10.10 does not exhibit the same issue. I have only tested 0.8 and 0.8.1. > root@cassandra01:/# java -version > java version "1.6.0_22" > OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1) > OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode) > root@cassandra:/# uname -a > Linux cassandra01 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux > /proc/cpu > Intel(R) Xeon(R) CPU E31270 @ 3.40GHz > /proc/meminfo > MemTotal: 16459776 kB > MemFree: 14190708 kB -- 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