Assumptions
- There are 200 different NodeJs ExpressJs apps and they have to be run concurrently.
- Consider 190 of these apps barely do something but still use considerable resources of the server.
- We use
pm2to run these apps. - Server config: Windows Server 2008, 8-core CPU, 32GB RAM and 2TB HDD.
Problem
Immediately, CPU usage will reach 100% and slows down the server even when some apps are literally idle.
Questions
- How to optimize this problem? Is it even possible to run 200 different apps on the same server?
- How to limit apps to use certain amount of resources?