Real time integrity monitoring for high pressure membrane systems