We give blow-up analysis for the solutions of an elliptic equation under some conditions. Also, we derive a compactness result for this equation.