How can memory usage reached 20GB+ ? #2734
Unanswered
dikkoinfokes
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Thanks for sharing that! Just to clarify, are you looking to keep a week’s worth of data? You can use Can I ask how many requests you typically parse in a day, or for that 24GB log file, how many requests are you receiving? By the way, I’ve been working on a disk implementation, we will see how it evolves, so stay tuned for updates on that! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm curious why the GoAccess service consumes so much memory and continues to increase.
In my case, GoAccess uses an additional 1GB of memory each day, reaching up to 24.3GB. My server performs log rotation every week, and the log file size ranges between 6GB and 10GB each week. The memory is only released when the service is restarted. I assume this behavior is related to log data being cached.
If my assumption is correct, is there a way to control the memory usage? For example, could we implement a periodic flush or restart the service weekly?
This is goaccess process memory usage in my server:
This is the command that I use:
/usr/bin/goaccess -f /var/log/nginx/access.log --real-time-html --ws-url=wss://my-server-url:443/ws -o /var/www/html/analytics/report.html --port=7890 -p /etc/goaccess/goaccess.conf --origin=https://my-server-url --date-spec=now-2w
This is the report that tell me the process read 108 GB data and use 24.3GB memory
Beta Was this translation helpful? Give feedback.
All reactions