Nonlinear frequency modulation (NLFM) signal is widely used in radar, communication and signal processing. The response of nonlinear system excited by this kind of signal has rich information. At the same time, enhancing different types of signals by resonance phenomenon has unique advantages in the field of signal processing. Compared with other signal processing methods, such as empirical mode decomposition (EMD), variational mode decomposition (VMD), wavelet transform (WT), signal filtering, etc., this kind of method can not only enhance the signal, but also effectively suppress the noise. Therefore, it has certain significance to study the optimal response of a nonlinear system excited by NLFM signal and enhance the NLFM signal through resonance phenomenon. This paper mainly studies the resonance phenomenon of nonlinear system excited by different types of NLFM signals, which is different from previous studies. Firstly, a real-time scale transformation method is proposed to process NLFM signals, its basic principle is to match different NLFM signals by real-time varying scale coefficients and system parameters. The signal frequency at each time corresponds to different scale coefficients and system parameters, so as to realize the optimal resonance response at each time. In order to describe the optimal resonance response of NLFM signal more accurately, different from the traditional spectral amplification factor, the real-time spectral amplification factor is introduced as the evaluation index. Then, the influence of system parameters on the optimal resonance response of the system is discussed and the optimal resonance region is obtained, which means the optimal resonance response can be achieved by selecting parameters in a reasonable range. This method not only greatly enhances the signal characteristics, but also maintains the continuity of signal time-frequency characteristics. Finally, the real-time scale transformation method is compared with the fixed scale transformation method, which shows the superiority of the proposed method in processing NLFM signal. The method and the results of this paper shows some potential in dealing with complex NLFM, which provides a reference for NLFM signal enhancement and detection, and has certain practical significance in signal enhancement. Furthermore, the relevant influence law of the system optimal response excited by the NLFM signal is given, which has a certain reference value for studying the system dynamic behavior under different signal excitations.