Added apache memory usage check code