[
https://issues.apache.org/jira/browse/CASSANDRA-2845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220631#comment-13220631
]
tyler cheung edited comment on CASSANDRA-2845 at 3/2/12 2:52 AM:
-----------------------------------------------------------------
hmm... when i start it w/ sudo /usr/sbin/cassandra, instead of the
/etc/init.d/cassandra script, the memory usage is fine...
{{Tasks: 156 total, 1 running, 154 sleeping, 0 stopped, 1 zombie}}
{{Cpu(s): 0.3%us, 0.2%sy, 0.0%ni, 99.5%id, 0.0%wa, 0.0%hi, 0.0%si,
0.0%st}}
{{Mem: 3934168k total, 2511668k used, 1422500k free, 176076k buffers}}
{{Swap: 4071420k total, 25572k used, 4045848k free, 1086980k cached}}
{{PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND}}
{{24815 root 20 0 1527m 69m 9.9m S 1 1.8 0:00.99 java}}
I am missing something?
was (Author: tcheung):
hmm... when i start it w/ sudo /usr/sbin/cassandra, the memory usage is
fine...
{{Tasks: 156 total, 1 running, 154 sleeping, 0 stopped, 1 zombie}}
{{Cpu(s): 0.3%us, 0.2%sy, 0.0%ni, 99.5%id, 0.0%wa, 0.0%hi, 0.0%si,
0.0%st}}
{{Mem: 3934168k total, 2511668k used, 1422500k free, 176076k buffers}}
{{Swap: 4071420k total, 25572k used, 4045848k free, 1086980k cached}}
{{PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND}}
{{24815 root 20 0 1527m 69m 9.9m S 1 1.8 0:00.99 java}}
I am missing something?
> 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