Based on this paper from 2014 [0], you're probably gonna hit resource limits in the late thousands unless you apply some special techniques. Apparently the highest number of players that's been seen on a minecraft server simultaneously is somewhere around 10 000, but I don't know the details of this.
[0] https://exaquark.com/blog/scaling-minecraft-to-millions-of-u...