Can a mass on a spring oscillate when it is in contact with a heat bath? I am reading statistical mechanics from Concepts in Thermal Physics, the author states the following after deriving the equipartition theorem.
A mass on a spring has energy $E$ which is given as the sum of two quadratic terms:
$$E = \frac{1}{2}mu^2 + \frac{1}{2}kx^2$$
and by Equipartition theorem we have:
$$ E = 2\cdot\frac{1}{2}k_\mathrm{B} T$$
What troubles me is the following:

How big is this energy? At room temperature, $k_\mathrm{B} \approx 0.025$ eV, which is a tiny energy. This energy isn’t going to set a $10$ kg mass on a stiﬀ spring vibrating very much!

Isn't the energy of the system,
$$E = \sum_{i=1}^n E_i =\sum_{i=1}^{n} (K_i + P_i)$$
where $n$ is the number of particles composing the system? Are the two expressions for energy equal?
Edit
What I can't understand is what are the degrees of freedom of the system. When we have a box filled with gas particles we don't examine the macroscopic motion of the box (or at least this is not subject of statistical mechanics). Why the author considers the macroscopic velocity of the mass on the spring? Shouldn't we take only into account the (solid) particles that constitute the mass on the spring?
Also if there is vibration then some force must have initiate this motion.  For example, we must first stretch the string in order to start vibrating.
 A: The two expressions
$$E = \frac{1}{2}mu^2 + \frac{1}{2}kx^2;$$
$$E = \sum_{i=1}^{n} (K_i + P_i)$$
are aren't quite equivalent; they have different reference values. (Energy has no absolute value; we always need to specify a reference, and we often use different reference levels for convenience in different analysis frameworks.)
The first equation ignores thermal energy, or alternatively sets the reference value of energy as a motionless mass and an undeformed spring at room temperature. Here, we've also implicitly assumed that the mass is rigid (i.e., that any energy change of interest is associated only with its bulk kinetic energy, or the kinetic energy of its center of mass) and that the spring is massless (i.e., that any energy change of interest consists of only strain energy).
The second equation dispenses with the lumped-component assumptions of a mass and spring, which makes it more general but also less amenable to problems involving such idealized macroscale objects.
A practical example is spontaneous vibration of atomic-force-microscopy cantilevers. These extremely thin beams—deliberately designed to be compliant enough to deform from atomic-scale asperities and attractive forces on surfaces—are also compliant enough to detectably vibrate at room temperature from thermal energy alone:

Sevim, S., Shamsudhin, N., Ozer, S. et al. An atomic force microscope with dual actuation capability for biomolecular experiments. Sci Rep 6, 27567 (2016). 
Here, the feature of interest is the 18 kHz peak in air, indicating the excitation of natural resonance from thermal motion. (The peak is dampened and shifted to 4 kHz in water.)
From the equipartition theorem, we can estimate the amplitude of the resulting motion or the speed of the cantilever tip at any particular temperature. For the former, we set $\frac{1}{2}k_BT=\frac{1}{2}k\widehat{x^2}$, where $\widehat{x^2}$ (sometimes $\langle{x^2}\rangle$) is the mean squared thermal deflection, as discussed by Butt & Jaschke in "Calculation of thermal noise in atomic force microscopy."
For more discussion and references in this context, see Ma et al., "Thermal noise in contact atomic force microscopy".
A: Short answer is: Mass will oscillate with an amplitude given by the following expression:

