public static String [ ] getUlimitMemoryCommand ( int memoryLimit ) { // ulimit isn't supported on Windows if ( WINDOWS ) { return null ; } return new String [ ] { ULIMIT_COMMAND , "-v" , String . valueOf ( memoryLimit ) } ; }
Get the Unix command for setting the maximum virtual memory available to a given child process . This is only relevant when we are forking a process from within the Mapper or the Reducer implementations . Also see Hadoop Pipes and Hadoop Streaming .