Analysis on the Stability of Cavity Based on Cavity Monitoring System