<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Topic: Seeing memory swap issue on cassandra nodes</title>
		<link>http://www.datastax.com/support-forums/topic/seeing-memory-swap-issue-on-cassandra-nodes</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Thu, 20 Jun 2013 00:24:26 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/topic/seeing-memory-swap-issue-on-cassandra-nodes" rel="self" type="application/rss+xml" />

		<item>
			<title>Sven on "Seeing memory swap issue on cassandra nodes"</title>
			<link>http://www.datastax.com/support-forums/topic/seeing-memory-swap-issue-on-cassandra-nodes#post-8161</link>
			<pubDate>Thu, 27 Dec 2012 17:10:38 +0000</pubDate>
			<dc:creator>Sven</dc:creator>
			<guid isPermaLink="false">8161@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Has reducing the max heap size resolved the swapping issue?&#60;/p&#62;
&#60;p&#62;Keep in mind that C* uses off heap memory as well to store cache data. You may want to look into tuning that, see here &#60;a href=&#34;http://www.datastax.com/docs/1.1/operations/tuning&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/docs/1.1/operations/tuning&#60;/a&#62; for more detail.&#60;/p&#62;
&#60;p&#62;With respect to the high memory usage reported for the Cassandra process, check here: &#60;a href=&#34;http://wiki.apache.org/cassandra/FAQ#mmap&#34; rel=&#34;nofollow&#34;&#62;http://wiki.apache.org/cassandra/FAQ#mmap&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;With respect to the high cached value. That is a Linux'ism, it is the OS level cache for file reads (see here for more information: &#60;a href=&#34;http://egloo.wordpress.com/2008/10/29/linux-cached-memory/)&#34; rel=&#34;nofollow&#34;&#62;http://egloo.wordpress.com/2008/10/29/linux-cached-memory/)&#60;/a&#62;. It should not interfere with normal operations as it will only use unused memory. To find out what processes are actually using swap (in case that is still an issue after tuning the JVM and C*), check here &#60;a href=&#34;http://stackoverflow.com/questions/479953/how-to-find-out-which-processes-are-swapping-in-linux&#34; rel=&#34;nofollow&#34;&#62;http://stackoverflow.com/questions/479953/how-to-find-out-which-processes-are-swapping-in-linux&#60;/a&#62;. I would expect that to be C*, but with some tuning you should be able to reduce swap use.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Sven
&#60;/p&#62;</description>
		</item>
		<item>
			<title>srk_user on "Seeing memory swap issue on cassandra nodes"</title>
			<link>http://www.datastax.com/support-forums/topic/seeing-memory-swap-issue-on-cassandra-nodes#post-8139</link>
			<pubDate>Wed, 26 Dec 2012 20:11:24 +0000</pubDate>
			<dc:creator>srk_user</dc:creator>
			<guid isPermaLink="false">8139@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Any update on this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>srk_user on "Seeing memory swap issue on cassandra nodes"</title>
			<link>http://www.datastax.com/support-forums/topic/seeing-memory-swap-issue-on-cassandra-nodes#post-8047</link>
			<pubDate>Fri, 21 Dec 2012 03:01:19 +0000</pubDate>
			<dc:creator>srk_user</dc:creator>
			<guid isPermaLink="false">8047@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I changed the MAX_HEAP_SIZE to &#34;4G&#34; and restarted the nodes. On Opscenter, when I check the OS:memory for each node, I see 4GB of used memory but cached memory is over 7GB and seems to growing.. My question is how do I control the cached memory?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>srk_user on "Seeing memory swap issue on cassandra nodes"</title>
			<link>http://www.datastax.com/support-forums/topic/seeing-memory-swap-issue-on-cassandra-nodes#post-8030</link>
			<pubDate>Thu, 20 Dec 2012 14:45:00 +0000</pubDate>
			<dc:creator>srk_user</dc:creator>
			<guid isPermaLink="false">8030@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;We are seeing memory swap issues on cassandra nodes. We are running DataStax Enterprise 2.1.1. Each node with 6CPU 16GB memory. &#60;/p&#62;
&#60;p&#62;The heap is setup as follows&#60;/p&#62;
&#60;p&#62;MAX_HEAP_SIZE=&#34;8G&#34;&#60;br /&#62;
HEAP_NEWSIZE=&#34;800M&#34;&#60;/p&#62;
&#60;p&#62;Here's what we are seeing on the server.. Any idea why we are seeing the swap issue and how can we resolve it&#60;/p&#62;
&#60;p&#62;top - 09:43:06 up 36 days, 19:25,  1 user,  load average: 0.00, 0.03, 0.02&#60;br /&#62;
Tasks: 169 total,   1 running, 168 sleeping,   0 stopped,   0 zombie&#60;br /&#62;
Cpu(s):  0.2%us,  0.1%sy,  0.0%ni, 96.6%id,  3.0%wa,  0.0%hi,  0.0%si,  0.0%st&#60;br /&#62;
Mem:  16435996k total, 15833124k used,   602872k free,   465808k buffers&#60;br /&#62;
Swap:  2068400k total,  2068356k used,       44k free,  5466128k cached&#60;/p&#62;
&#60;p&#62;  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND&#60;br /&#62;
 4479 casadmin  23   0  268g  12g 3.9g S  0.7 78.8   5595:34 /usr/java/jre1.6.0_29/bin/java -ea -javaagent:/opt/nosql/dse-2.1.1/resources/cassandra/lib/jamm-0.2.5.jar -&#60;br /&#62;
21326 sr88197   15   0 12756 1180  844 R  0.7  0.0   0:00.01 top&#60;br /&#62;
31548 casadmin  18   0  507m 114m 9580 S  0.7  0.7 184:30.81 /usr/java/jre1.6.0_29/bin/java -Xmx40M -Xms40M -Djavax.net.ssl.trustStore=ssl/agentKeyStore -Djavax.net.ssl
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
