Performance tuning using pipe streams highWaterMark