@Toast, that's quite a memory leak if that's what is happening. Are you running clam or any add-on antivirus or spam components, or is this pure out-of-the-box Smartermail with nothing added?
We never were able to get an answer why our RAM would suddenly spike-- I'm talking about a vertical line going straight up on the graph, as in going from 40 or 50GB running, then suddenly up to 94 GB within 60 seconds.
The problem with diagnosing this kind of problem is, when they ran their JetBrains capture utility, it crushed the server to a dead stop for a very long time (45++ minutes) during the middle of a workday... something that we had to stop doing for obvious reasons. It took a long time to fully capture the entire system image (96 GB RAM server) and write it to disk, at the same time the server was also being crushed by the runaway mail process.
Consequently, with only the original few dumps to go on, no root cause was ever found... and we lived under a constant state of paranoia over when it would happen next. We set up additional external monitoring to send text alerts to the admin team if RAM use went above 80%. Since we couldn't do the JetBrains dump, we'd just restart the mail server process to get it back online.
We are REALLY hoping the "new" .NET 8 version doesn't have these problems.