We investigate a cosmological scenario in which the dark matter particles can be created during the evolution of the Universe. By regarding the Universe as an open thermodynamic system and using non-equilibrium thermodynamics, we examine the mechanism of gravitational particle production. In this setup, we study the large-scale structure (LSS) formation of the Universe in the Newtonian regime of perturbations and derive the equations governing the evolution of the dark matter overdensities. Then, we implement the cosmological data from Planck 2018 CMB measurements, SNe Ia and BAO observations, as well as the SH0ES local measurement for H 0 to provide some cosmological constraints for the parameters of our model. We see that the best case of our scenario (χ 2 tot = 3834.40) fits the observational data better than the baseline ΛCDM model (χ 2 tot = 3838.00) at the background level. We also see that this case results in the Hubble constant as H 0 = 68.79 ± 0.59 km s −1 Mpc −1 which is greater than H 0 = 68.20 +0.42 −0.38 km s −1 Mpc −1 given by the ΛCDM model, and hence we can alleviate the H 0 tension to some extent in our framework. Furthermore, the best case of our scenario gives a lower value for the best-fit of the S 8 parameter than the ΛCDM result, and therefore it also reduces the LSS tension slightly. We moreover estimate the growth factor of linear perturbations and show that the best case of our model (χ 2 f σ 8 = 40.84) fits the LSS data significantly better than the ΛCDM model (χ 2 f σ 8 = 44.29). Consequently, our model also makes a better performance at the level of the linear perturbations compared to the standard cosmological model.