user6918: I have cardano-node and db-sync running just fine, latest versions.
Every now and then though, db-sync stops and message in console says "Killed".
This was not the case before the Vasil HF.
Why does db-sync stop and exit with message "Killed" ?
I start it back up, and it starts np - and runs fine for awhile, but sooner or later, after days...for some reason it will stop and the last thing in the console window is one line with the word: Killed.

user5122: Most likely it is killed because the server's RAM is exhausted. How much RAM does the server have? I assume it is running on mainnet.
You can double check with dmesg -T to see if it was really killed for Out of Memory (oom).
You should see something like this (but for cardano-db-sync, not for cardano-node):
[Wed Sep 21 15:18:41 2022] Out of memory: Kill process 77436 (cardano-node) score 637 or sacrifice child
[Wed Sep 21 15:18:41 2022] Killed process 77436 (cardano-node) total-vm:1075768476kB, anon-rss:13651644kB, file-rss:0kB, shmem-rss:0kB


user5926: db-sync has a rather high memory usage. We (I am one of the developers) are working on reducing it, but for now, the only solution is to provide more memory.
If you are running node on the same machine as db-sync (this is the recommended setup) the machine will likely need 32G of RAM.

6918: <p>I have cardano-node and db-sync running just fine, latest versions.
Every now and then though, db-sync stops and message in console says &quot;Killed&quot;.
This was not the case before the Vasil HF.</p>
<p>Why does db-sync stop and exit with message &quot;Killed&quot; ?</p>
<p>I start it back up, and it starts np - and runs fine for awhile, but sooner or later, after days...for some reason it will stop and the last thing in the console window is one line with the word: Killed.</p>
 5122: <p>Most likely it is killed because the server's RAM is exhausted. How much RAM does the server have? I assume it is running on mainnet.
You can double check with <code>dmesg -T</code> to see if it was really killed for <code>Out of Memory</code> (oom).
You should see something like this (but for cardano-db-sync, not for cardano-node):</p>
<pre><code>[Wed Sep 21 15:18:41 2022] Out of memory: Kill process 77436 (cardano-node) score 637 or sacrifice child
[Wed Sep 21 15:18:41 2022] Killed process 77436 (cardano-node) total-vm:1075768476kB, anon-rss:13651644kB, file-rss:0kB, shmem-rss:0kB
</code></pre>
 5926: <p><code>db-sync</code> has a rather high memory usage. We (I am one of the developers) are working on reducing it, but for now, the only solution is to provide more memory.</p>
<p>If you are running <code>node</code> on the same machine as <code>db-sync</code> (this is the recommended setup) the machine will likely need 32G of RAM.</p>
