Thanks for providing the information requested.
So, just to clarify based on what I’ve read about the AWS tier you are on:
2 vCPUs
4GB RAM
Generally I’d say this should be sufficient for your 30 websites, though if you are seeing the CPU peak often, it’s likely due to either a combination of background (cron) tasks running at certain times, and/or plugins within the WP installs that may either be unoptimized, a bit buggy, or just the sheer amount of plugins being run plus website visits hitting the VM. The traffic factor is likely more bots then humans but either way this can place a lot of stress on the sites and therefore VM.
Exhausting the CPU and/or Memory can lead to things crashing within the VM, typically related to an OOM triggering processes and services to be shutdown or similar.
As you are using Debian, journalctl is your best friend for identifying errors and other factors that could be causing stress and crashing things like Webmin within your system.
I’m not sure, as I’ve not really used AWS compute services in a while, but do they have historic “charts” that might reveal when “spikes” are occurring, or have you observed these spikes in real-time?
It’d be interesting to see when they occur, and what might be running within the VM during that period. This would help determine whether you are dealing with “normal” overload like tasks that are competing for system resources, or spikes related to a potential bot attack…
Another thing to check is the “logs” for the sites themselves. In particular you want to be reviewing the top “biggest” (in terms of file size) “error logs” as they may reveal less obvious errors within your WP sites like misbehaving code that is not being seen, but handled by PHP but also creating spikes in resource usage as a result of the real-time fixing nature PHP often employs. The less work PHP needs to do to “fix” a running script the more resources you’ll get back for more or equally important tasks.
Oh, and another important distinction is, are you using this to ALSO host “email”? Email can introduce another level of resource usage in itself.