Replies: 7 comments 5 replies
-
pls, use discussions for questions like this. moved |
Beta Was this translation helpful? Give feedback.
-
I have several production instances of remark42 personally, one of them running on the site with tens of thousands of comments and db size is about 300M . It is running on 2g instance and utilizing 220M ram. I'm not aware of any memory leaks in remark42. Because this is a golang process and it does memory allocations, garbage collection decides what to keep in ram and for how long. The only parameter you can set in go is
There are two parts of remark42 utilizing relatively large chunks of memory:
Nothing else here should allocate noticeable chunks of memory. I don't think there is an actual problem here but rather a GC observing your memory and keeping it because you have it unused.
I don't see how this will reduce memory footprint |
Beta Was this translation helpful? Give feedback.
-
@leem32, could you please share the method of calculation you used for remark42 process RAM usage investigation and the actual numbers you got using it? RAM calculations in Linux are not always intuitive, and I would like to verify that the number we are talking about is actual RAM usage of the process and not cache that could be reused by OS at will. I propose to add |
Beta Was this translation helpful? Give feedback.
-
No problem, so you would just like me to restart Remark42, wait 24 hours and let you now the memory usage at that point, correct? |
Beta Was this translation helpful? Give feedback.
-
After restarting, the Remark42 memory usage is now very low. I'll post the top again in 24 hours. |
Beta Was this translation helpful? Give feedback.
-
@paskal for convenience I have added profiler support to go-pkgz/rest (master only for now) |
Beta Was this translation helpful? Give feedback.
-
Good news, 30 hours later and no change. |
Beta Was this translation helpful? Give feedback.
-
Looking at my server resource usage which has 12GB Ram, I notice Remark42 server is now using 8.8% of total Ram.
I don't remember Remark42 using such a high amount of Ram before (I would definitely have noticed), so I'm assuming this has increased over time based on the number of comments posted on my site. Is this correct? will Remark42 Ram usage increase based on number of comments Remark42 is holding?
Is there any way to decrease the amount of Ram Remark42 is using?
One way could be to automatically delete comments older than X time.
There isn't much value for my site in comments older than 12 months, so I would like Remark42 to delete them.
Its not really practical me deleting them manually because they're spread over hundreds of pages.
Note: Also Remark42 server on my dev server only uses 0.6% Ram of 4GB total Ram, so total comments is obviously causing this huge increase in production server.
Beta Was this translation helpful? Give feedback.
All reactions