Hi Abhishek, In sysctl.conf file we have below setting:
vm.swappiness = 10 vm.dirty_ratio = 60 vm.dirty_background_ratio = 2 vm.max_map_count = 1048575 so I need to apply patch for same? From: Abhishek Verma [mailto:ve...@uber.com] Sent: 22 March 2017 23:04 To: user@cassandra.apache.org Cc: Abhishek Kumar Maheshwari <abhishek.maheshw...@timesinternet.in> Subject: Re: [Cassandra 3.0.9] Cannot allocate memory Just a shot in the dark, but what is your setting of vm.max_map_count in /etc/sysctl.conf ? It is recommended to set it to: vm.max_map_count = 1048575 Source: https://docs.datastax.com/en/landing_page/doc/landing_page/recommendedSettingsLinux.html We saw a similar problem in the past where mmap failed and we added a check to emit warning as a part of https://issues.apache.org/jira/browse/CASSANDRA-13008. On Wed, Mar 22, 2017 at 9:57 AM, Thakrar, Jayesh <jthak...@conversantmedia.com<mailto:jthak...@conversantmedia.com>> wrote: Is/are the Cassandra server(s) shared? E.g. do they run mesos + spark? From: Abhishek Kumar Maheshwari <abhishek.maheshw...@timesinternet.in<mailto:abhishek.maheshw...@timesinternet.in>> Date: Wednesday, March 22, 2017 at 12:45 AM To: "user@cassandra.apache.org<mailto:user@cassandra.apache.org>" <user@cassandra.apache.org<mailto:user@cassandra.apache.org>> Subject: [Cassandra 3.0.9] Cannot allocate memory Hi all, I am using Cassandra 3.0.9. while I am adding new server after some time I am getting below exception. JVM option is attaches. Hardware info: Ram 64 GB. Core: 40 Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007fe9c44ee000, 12288, 0) failed; error='Cannot allocate memory' (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 12288 bytes for committing reserved memory. Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f5c056ab000, 12288, 0) failed; error='Cannot allocate memory' (errno=12) [thread 140033204860672 also had an error] Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f5c0566a000, 12288, 0) failed; error='Cannot allocate memory' (errno=12) [thread 140033204594432 also had an error]Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007fe9c420c000, 12288, 0) failed; error='Cannot allocate memory' (errno=12) Java HotSpot(TM) 64-Bit Server VM warning: [thread 140641994852096 also had an error]INFO: os::commit_memory(0x00007f5c055a7000, 12288, 0) failed; error='Cannot allocate memory' (errno=12) Please let me know what I miss? Thanks & Regards, Abhishek Kumar Maheshwari +91- 9999805591<tel:+91%2099998%2005591> (Mobile) Times Internet Ltd. | A Times of India Group Company FC - 6, Sector 16A, Film City, Noida, U.P. 201301 | INDIA P Please do not print this email unless it is absolutely necessary. Spread environmental awareness. YES Bank & The Economic Times Global Business Summit (GBS) is back on 27-28 March. The 3rd edition of GBS will see participation of 2000+ delegates from over 20 countries as they bear witness to leaders sharing insights into how to best navigate a dynamic future. Visit www.et-gbs.com<http://www.et-gbs.com>