anchor.diff:                               "bin", "erl"]),
       [{spawn_executable, ErlPath},
        [{args, AllArgs},
  -      {env, [{"NS_SERVER_BABYSITTER_COOKIE", atom_to_list(erlang:get_cookie())}]},
  +      {env, [{"NS_SERVER_BABYSITTER_COOKIE", atom_to_list(erlang:get_cookie())},
  +             {"MALLOC_MMAP_MAX_", "0"}]},
         exit_status, use_stdio, stream, eof]].
   
   child_start(Arg) ->
  
positive.code: 
  -export([arguments_to_args/1,
           child_start/1,
           open_port_args/0]).
  
  get_ns_server_vm_extra_args() ->
      case os:getenv("COUCHBASE_NS_SERVER_VM_EXTRA_ARGS") of
  
negative.code:             end
      end.
  
  alloc_params() ->
      ["+Mummc", "0",
       "+Mummmbc", "0",
       "+Mummsbc", "0"].
  
  open_port_args() ->
      AppArgs = arguments_to_args(init:get_arguments()),
      ErlangArgs = ["+A" , "16",
                    "-smp", "enable",
                    "+sbt",  "u",
                    "+P", "327680",
                    "+K", "true"
                    ] ++ alloc_params() ++ [
                    "-setcookie", "nocookie",
                    "-kernel", "inet_dist_listen_min", "21100", "inet_dist_listen_max", "21299",
                    "error_logger", "false",
  