code: @Deprecated
    public long getMaxVirtualMemoryForTask() {
      LOG.warn(
        "getMaxVirtualMemoryForTask() is deprecated. " +
        "Instead use getMemoryForMapTask() and getMemoryForReduceTask()");
  
      long value = getLong(MAPRED_TASK_MAXVMEM_PROPERTY, DISABLED_MEMORY_LIMIT);
      value = normalizeMemoryConfigValue(value);
      if (value == DISABLED_MEMORY_LIMIT) {
        value = Math.max(getMemoryForMapTask(), getMemoryForReduceTask());
        value = normalizeMemoryConfigValue(value);
        if (value != DISABLED_MEMORY_LIMIT) {
          value *= 1024*1024;
            }
          }
      return value;
    }
docs: Get the memory required to run a task of this job, in bytes. See
  {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  <p/>
  This method is deprecated. Now, different memory limits can be
  set for map and reduce tasks of a job, in MB.
  <p/>
  For backward compatibility, if the job configuration sets the
  key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  from {@link #DISABLED_MEMORY_LIMIT}, that value is returned.
  Otherwise, this method will return the larger of the values returned by
  {@link #getMemoryForMapTask()} and {@link #getMemoryForReduceTask()}
  after converting them into bytes.
  
  @return Memory required to run a task of this job, in bytes,
  or {@link #DISABLED_MEMORY_LIMIT}, if unset.
  @see #setMaxVirtualMemoryForTask(long)
  @deprecated Use {@link #getMemoryForMapTask()} and
  {@link #getMemoryForReduceTask()}