NabismoPrime on Nostr: Both kind of. I have a relay running on a server with 2GB of mem, added a metadata ...
Both kind of. I have a relay running on a server with 2GB of mem, added a metadata updater service to my relay’s docker compose stack, which I know is very mem intensive as it scans all relays and does some calculations.
Updater service memory climbs to about 6-700 MB under peak load but was hanging onto all that. As soon as I up the memory to 8GB automatic garbage collection kicks in and keeps memory below 200 after runs.
https://github.com/UTXOnly/metadata_updaterPublished at
2024-10-06 13:32:36Event JSON
{
"id": "782ba669f06652af08ef0182edfe165709ccbed7674630d1a574cf0ab8e4002b",
"pubkey": "4503baa127bdfd0b054384dc5ba82cb0e2a8367cbdb0629179f00db1a34caacc",
"created_at": 1728221556,
"kind": 1,
"tags": [
[
"e",
"d3435f8835e2f4b2d0af97431aced2cb11201e94d6e2a504b4455bf1a02fbe0f",
"",
"root"
],
[
"e",
"56a50577913b622ed2213936c524904af48696dd0fa59bd45229a065e1af040a",
"",
"reply"
],
[
"p",
"ae44681bb75c03a96f3af62e88b6d80de6d3f223f2d9459a31823e37bd27918d"
],
[
"r",
"https://github.com/UTXOnly/metadata_updater"
]
],
"content": "Both kind of. I have a relay running on a server with 2GB of mem, added a metadata updater service to my relay’s docker compose stack, which I know is very mem intensive as it scans all relays and does some calculations. \n\nUpdater service memory climbs to about 6-700 MB under peak load but was hanging onto all that. As soon as I up the memory to 8GB automatic garbage collection kicks in and keeps memory below 200 after runs. \n\nhttps://github.com/UTXOnly/metadata_updater",
"sig": "ecaa9c8943b5b6232790d9142172ad705116d1089c6bb0e1913de2456f5a626b9bc2b94437f93f283e2a7030f1eca0bcc4a9684a7c537687d6f1473bc8944351"
}