HELP! Console just stops sending anything (GMOD dedicated server )


So I have a problem:

This happeneds just 1-2 times per day but my server crashes ( or the console srcds stop sending stuff and is just standing still ).
Everyone on the server at this point gets disconnected, and when I monitor my CPU it spikes like crazy.
How can I do so the srcds restarts itself when it crashes for that long?