code: public void setLeakDetectionSettings(int interval, String output) throws IOException {
          this.leakDetectionInterval = interval;
          this.leakDetectionOutput = TrConfigurator.getLogLocation() + File.separator + output;
  
          if ((interval > -1) && (output != null)) {
              // clear file
              FileWriter outFile = new FileWriter(this.leakDetectionOutput, false);
              outFile.close();
          }
      }
docs: Set the memory leak detection parameters. If the interval is 0 or
  greater, then the detection code will enabled.
  
  @param interval the minimum amount of time between leak detection code
  will be ran. Also the minimum amount of time that a buffer can go without
  being accessed before it will be flagged as a possible memory leak.
  @param output The name of the output file where the memory leak information
  will be written.
  @throws IOException