Currently, when downloading mods (and probably for other purposes), the dedicated server on Linux uses /tmp for downloads. On some systems, that is a memory-backed filesystem and thus can lead to OOMs. It would be better if the server honored the TMPDIR environment variable, and only fall back to /tmp if it is unset.
See also: https://en.wikipedia.org/wiki/TMPDIR
I am unsure about a similar mechanism for Windows dedicated servers.