Couldn't initialize multicast heartbeat socket: Cannot assign requested address


#1

Hi there,

I have a new installation for my dev env.

Running the community edition: 3.5.15 Centos 7. VM with 3gb ram.

I’ve done:

sysctl vm.overcommit_memory=2
echo "vm.overcommit_memory=2" >> /etc/sysctl.conf

as suggested in another thread, but no joy.

I’ve removed the bins as a final try just in-case they were stealing memory. Still no joy.

Full log below:

Aug 25 2015 00:43:13 GMT: INFO (as): (as.c::373) <><><><><><><><><><>  Aerospike Community Edition build 3.5.15  <><><><><><><><><><>
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104) # Aerospike database configuration file.
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104) service {
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     user root
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     group root
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     pidfile /var/run/aerospike/asd.pid
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     service-threads 4
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     transaction-queues 4
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     transaction-threads-per-queue 4
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     proto-fd-max 15000
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104) }
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104) logging {
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     # Log file must be an absolute path.
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     file /var/log/aerospike/aerospike.log {
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)         context any info
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     }
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104) }
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104) network {
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     service {
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)         address any              # IP of the NIC on which the service is
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)                                  # listening.
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)         port 3000                    # port on which the service is listening.
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     }
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     heartbeat {
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)         mode multicast                  # Send heartbeats using Multicast
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)         address 239.1.99.2              # multicast address
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)         port 9918                       # multicast port
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)         interface-address  # IP of the NIC to use to send out heartbeat
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)                                         # and bind fabric ports
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)         interval 150                    # Number of milliseconds between heartbeats
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)         timeout 10                      # Number of heartbeat intervals to wait
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)                                         # before timing out a node
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     }
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     fabric {
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)         port 3001 # Intra-cluster communication port (migrates, replication, etc).
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     }
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     info {
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)         port 3003 # Plain text telnet management port.
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104)     }
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3104) }
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3122) system file descriptor limit: 100000, proto-fd-max: 15000
Aug 25 2015 00:43:13 GMT: INFO (cf:misc): (id.c::119) Node ip: 172.16.153.176
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3178) Rack Aware mode not enabled
Aug 25 2015 00:43:13 GMT: INFO (config): (cfg.c::3181) Node id bb900007f96cacb
Aug 25 2015 00:43:13 GMT: INFO (as): (as.c::410) initializing services...
Aug 25 2015 00:43:13 GMT: INFO (tsvc): (thr_tsvc.c::916) shared queues: 4 queues with 4 threads each
Aug 25 2015 00:43:13 GMT: INFO (hb): (hb.c::2459) heartbeat socket initialization
Aug 25 2015 00:43:13 GMT: INFO (hb): (hb.c::2463) initializing multicast heartbeat socket : 239.1.99.2:9918
Aug 25 2015 00:43:13 GMT: WARNING (cf:socket): (socket.c::493) IP_MULTICAST_IF: 99 Cannot assign requested address
Aug 25 2015 00:43:13 GMT: CRITICAL (hb): (hb.c:as_hb_init_socket:2469) couldn't initialize multicast heartbeat socket: Cannot assign requested address
Aug 25 2015 00:43:13 GMT: WARNING (as): (signal.c::93) SIGABRT received, aborting Aerospike Community Edition build 3.5.15
Aug 25 2015 00:43:13 GMT: WARNING (as): (signal.c::95) stacktrace: found 9 frames
Aug 25 2015 00:43:13 GMT: WARNING (as): (signal.c::95) stacktrace: frame 0: /usr/bin/asd(as_sig_handle_abort+0x59) [0x46f5b5]
Aug 25 2015 00:43:13 GMT: WARNING (as): (signal.c::95) stacktrace: frame 1: /lib64/libc.so.6(+0x35650) [0x7f96cbb80650]
Aug 25 2015 00:43:13 GMT: WARNING (as): (signal.c::95) stacktrace: frame 2: /lib64/libc.so.6(gsignal+0x37) [0x7f96cbb805d7]
Aug 25 2015 00:43:13 GMT: WARNING (as): (signal.c::95) stacktrace: frame 3: /lib64/libc.so.6(abort+0x148) [0x7f96cbb81cc8]
Aug 25 2015 00:43:13 GMT: WARNING (as): (signal.c::95) stacktrace: frame 4: /usr/bin/asd(cf_fault_event+0x271) [0x502786]
Aug 25 2015 00:43:13 GMT: WARNING (as): (signal.c::95) stacktrace: frame 5: /usr/bin/asd() [0x4cb9da]
Aug 25 2015 00:43:13 GMT: WARNING (as): (signal.c::95) stacktrace: frame 6: /usr/bin/asd(main+0x330) [0x450016]
Aug 25 2015 00:43:13 GMT: WARNING (as): (signal.c::95) stacktrace: frame 7: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f96cbb6caf5]
Aug 25 2015 00:43:13 GMT: WARNING (as): (signal.c::95) stacktrace: frame 8: /usr/bin/asd() [0x44ec29]

#2

I forgot to add the IP:

interface-address 172.16.153.176  # IP of the NIC to use to send out heartbeat

Anyway, adding in 1 bin.

I now get:

Aug 25 2015 02:05:55 GMT: INFO (as): (as.c::373) <><><><><><><><><><>  Aerospike Community Edition build 3.5.15  <><><><><><><><><><>
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) # Aerospike database configuration file.
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) service {
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     user root
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     group root
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     pidfile /var/run/aerospike/asd.pid
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     service-threads 4
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     transaction-queues 4
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     transaction-threads-per-queue 4
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     proto-fd-max 15000
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) }
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) logging {
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     # Log file must be an absolute path.
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     file /var/log/aerospike/aerospike.log {
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         context any info
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     }
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) }
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) network {
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     service {
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         address any              # IP of the NIC on which the service is
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)                                  # listening.
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         port 3000                    # port on which the service is listening.
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     }
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     heartbeat {
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         mode multicast                  # Send heartbeats using Multicast
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         address 239.1.99.2              # multicast address
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         port 9918                       # multicast port
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         interface-address 172.16.153.176  # IP of the NIC to use to send out heartbeat
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)                                         # and bind fabric ports
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         interval 150                    # Number of milliseconds between heartbeats
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         timeout 10                      # Number of heartbeat intervals to wait
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)                                         # before timing out a node
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     }
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     fabric {
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         port 3001 # Intra-cluster communication port (migrates, replication, etc).
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     }
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     info {
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         port 3003 # Plain text telnet management port.
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     }
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) }
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) namespace cache {
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     memory-size 1G
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     replication-factor 2
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     storage-engine memory
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     default-ttl 0
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) 
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     storage-engine device {
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         file /opt/aerospike/data/cache.dat
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         filesize 1G
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         data-in-memory true # Store data in memory in addition to file.
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)         write-block-size 128K
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104)     }
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3104) }
Aug 25 2015 02:05:55 GMT: INFO (config): (cfg.c::3122) system file descriptor limit: 100000, proto-fd-max: 15000
Aug 25 2015 02:05:56 GMT: INFO (cf:misc): (id.c::119) Node ip: 172.16.153.176
Aug 25 2015 02:05:56 GMT: INFO (config): (cfg.c::3178) Rack Aware mode not enabled
Aug 25 2015 02:05:56 GMT: INFO (config): (cfg.c::3181) Node id bb900007f96220b
Aug 25 2015 02:05:56 GMT: INFO (namespace): (namespace_cold.c::101) ns cache beginning COLD start
Aug 25 2015 02:05:56 GMT: INFO (drv_ssd): (drv_ssd.c::4210) opened file /opt/aerospike/data/cache.dat: usable size 1073741824
Aug 25 2015 02:05:56 GMT: INFO (drv_ssd): (drv_ssd.c::1086) /opt/aerospike/data/cache.dat has 8192 wblocks of size 131072
Aug 25 2015 02:05:56 GMT: INFO (drv_ssd): (drv_ssd.c::3589) device /opt/aerospike/data/cache.dat: reading device to load index
Aug 25 2015 02:05:56 GMT: INFO (drv_ssd): (drv_ssd.c::3594) In TID 15336: Using arena #150 for loading data for namespace "cache"
Aug 25 2015 02:05:56 GMT: INFO (drv_ssd): (drv_ssd.c::3615) device /opt/aerospike/data/cache.dat: read complete: UNIQUE 0 (REPLACED 0) (GEN 0) (EXPIRED 0) (MAX-TTL 0) records
Aug 25 2015 02:05:56 GMT: INFO (drv_ssd): (drv_ssd.c::1051) ns cache loading free & defrag queues
Aug 25 2015 02:05:56 GMT: INFO (drv_ssd): (drv_ssd.c::985) /opt/aerospike/data/cache.dat init defrag profile: 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Aug 25 2015 02:05:56 GMT: INFO (drv_ssd): (drv_ssd.c::1075) /opt/aerospike/data/cache.dat init wblock free-q 8184, defrag-q 0
Aug 25 2015 02:05:56 GMT: INFO (drv_ssd): (drv_ssd.c::2768) ns cache starting device maintenance threads
Aug 25 2015 02:05:56 GMT: INFO (as): (as.c::410) initializing services...
Aug 25 2015 02:05:56 GMT: INFO (drv_ssd): (drv_ssd.c::1840) ns cache starting write worker threads
Aug 25 2015 02:05:56 GMT: INFO (drv_ssd): (drv_ssd.c::902) ns cache starting defrag threads
Aug 25 2015 02:05:56 GMT: INFO (tsvc): (thr_tsvc.c::916) shared queues: 4 queues with 4 threads each
Aug 25 2015 02:05:56 GMT: INFO (hb): (hb.c::2459) heartbeat socket initialization
Aug 25 2015 02:05:56 GMT: INFO (hb): (hb.c::2463) initializing multicast heartbeat socket : 239.1.99.2:9918
Aug 25 2015 02:05:56 GMT: INFO (paxos): (paxos.c::3127) partitions from storage: total 4096 found 0 lost(set) 4096 lost(unset) 0
Aug 25 2015 02:05:56 GMT: INFO (partition): (partition.c::4011) {cache} 4096 partitions: found 4096 absent, 0 stored
Aug 25 2015 02:05:56 GMT: INFO (paxos): (paxos.c::3131) Paxos service ignited: bb900007f96220b
Aug 25 2015 02:05:56 GMT: INFO (scan): (thr_tscan.c::2086) started 32 threads
Aug 25 2015 02:05:56 GMT: INFO (batch): (thr_batch.c::342) Initialize 4 batch worker threads.
Aug 25 2015 02:05:56 GMT: INFO (drv_ssd): (drv_ssd.c::4568) {cache} floor set at 45 wblocks per device
Aug 25 2015 02:05:56 GMT: CRITICAL (fabric): (fabric.c:as_fabric_start:1996) could not create thread to receive heartbeat
Aug 25 2015 02:05:56 GMT: WARNING (as): (signal.c::93) SIGABRT received, aborting Aerospike Community Edition build 3.5.15
Aug 25 2015 02:05:56 GMT: WARNING (as): (signal.c::95) stacktrace: found 9 frames
Aug 25 2015 02:05:56 GMT: WARNING (as): (signal.c::95) stacktrace: frame 0: /usr/bin/asd(as_sig_handle_abort+0x59) [0x46f5b5]
Aug 25 2015 02:05:56 GMT: WARNING (as): (signal.c::95) stacktrace: frame 1: /lib64/libc.so.6(+0x35650) [0x7f9622e98650]
Aug 25 2015 02:05:56 GMT: WARNING (as): (signal.c::95) stacktrace: frame 2: /lib64/libc.so.6(gsignal+0x37) [0x7f9622e985d7]
Aug 25 2015 02:05:56 GMT: WARNING (as): (signal.c::95) stacktrace: frame 3: /lib64/libc.so.6(abort+0x148) [0x7f9622e99cc8]
Aug 25 2015 02:05:56 GMT: WARNING (as): (signal.c::95) stacktrace: frame 4: /usr/bin/asd(cf_fault_event+0x271) [0x502786]
Aug 25 2015 02:05:56 GMT: WARNING (as): (signal.c::95) stacktrace: frame 5: /usr/bin/asd(as_fabric_start+0x17a) [0x4d1e61]
Aug 25 2015 02:05:56 GMT: WARNING (as): (signal.c::95) stacktrace: frame 6: /usr/bin/asd(main+0x3a3) [0x450089]
Aug 25 2015 02:05:56 GMT: WARNING (as): (signal.c::95) stacktrace: frame 7: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f9622e84af5]
Aug 25 2015 02:05:56 GMT: WARNING (as): (signal.c::95) stacktrace: frame 8: /usr/bin/asd() [0x44ec29]

Also getting:

Aug 25 2015 02:16:40 GMT: INFO (hb): (hb.c::2459) heartbeat socket initialization
Aug 25 2015 02:16:40 GMT: INFO (hb): (hb.c::2463) initializing multicast heartbeat socket : 239.1.99.2:9918
Aug 25 2015 02:16:40 GMT: INFO (paxos): (paxos.c::3127) partitions from storage: total 4096 found 0 lost(set) 4096 lost(unset) 0
Aug 25 2015 02:16:40 GMT: INFO (partition): (partition.c::4011) {cache} 4096 partitions: found 4096 absent, 0 stored
Aug 25 2015 02:16:40 GMT: INFO (paxos): (paxos.c::3131) Paxos service ignited: bb900007fa023cb
Aug 25 2015 02:16:41 GMT: CRITICAL (scan): (thr_tscan.c:as_tscan_init:2072) can't create scan thread 31
Aug 25 2015 02:16:41 GMT: WARNING (as): (signal.c::93) SIGABRT received, aborting Aerospike Community Edition build 3.5.15
Aug 25 2015 02:16:41 GMT: WARNING (as): (signal.c::95) stacktrace: found 9 frames
Aug 25 2015 02:16:41 GMT: WARNING (as): (signal.c::95) stacktrace: frame 0: /usr/bin/asd(as_sig_handle_abort+0x59) [0x46f5b5]
Aug 25 2015 02:16:41 GMT: WARNING (as): (signal.c::95) stacktrace: frame 1: /lib64/libc.so.6(+0x35650) [0x7fa024add650]
Aug 25 2015 02:16:41 GMT: WARNING (as): (signal.c::95) stacktrace: frame 2: /lib64/libc.so.6(gsignal+0x37) [0x7fa024add5d7]
Aug 25 2015 02:16:41 GMT: WARNING (as): (signal.c::95) stacktrace: frame 3: /lib64/libc.so.6(abort+0x148) [0x7fa024adecc8]
Aug 25 2015 02:16:41 GMT: WARNING (as): (signal.c::95) stacktrace: frame 4: /usr/bin/asd(cf_fault_event+0x271) [0x502786]
Aug 25 2015 02:16:41 GMT: WARNING (as): (signal.c::95) stacktrace: frame 5: /usr/bin/asd(as_tscan_init+0xb5) [0x4b96cd]
Aug 25 2015 02:16:41 GMT: WARNING (as): (signal.c::95) stacktrace: frame 6: /usr/bin/asd(main+0x36d) [0x450053]
Aug 25 2015 02:16:41 GMT: WARNING (as): (signal.c::95) stacktrace: frame 7: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fa024ac9af5]
Aug 25 2015 02:16:41 GMT: WARNING (as): (signal.c::95) stacktrace: frame 8: /usr/bin/asd() [0x44ec29]

#3

I finally got this to work on a small memory footprint. I think this was the main problem.

I set:

 sysctl vm.overcommit_memory=1

To make persistent:

echo "vm.overcommit_memory=1" >> /etc/sysctl.conf

For more info:

http://serverfault.com/questions/606185/how-does-vm-overcommit-memory-work