We consider a quantum harmonic oscillator coupled to many quantum harmonic oscillators. By restricting the quantum state of the total system to a Gaussian state, we analytically define the temperature and the entropy production rate of the one harmonic oscillator both in Markovian and non-Makovian cases.