The "Tragedy of the Commons" refers to an economic problem where individuals compete to gain the greatest benefit from a common and scarce resource in order to survive, leading to its exploitation and depletion.
For example, the ocean offers a variety of marine species that we feed on. In time, if the increasing human population exceeds the rate of production of these marine resources, there will come a time that they would face extinction.
Moreover, aside from the burgeoning human population, though these marine resource are renewable, there are human activities that aggravate the depletion of these resources, like excessive pollution, development of new technology, illegal fishing activities, use of pesticides (for agricultural production which can be carried off to the sea).
As for the non-renewable resource, one example could be the excessive use of petroleum that can be attributed to global industrialization. Because the demand for fuel is constantly increasing, because it is a non-renewable resource, using the concept of the "Tragedy of the Commons", we know that soon, these will be depleted too.