There is no one answer to this question as it depends on the environment of the ecosystem - but if it's stable, and healthy, it's possible that it can remain stable for hundreds and thousands of years.