Open wimfabri opened 3 years ago
You're going to have to provide more info than that if you want me to be able to reproduce the issue. How many alerts are in the database? How many do you have displayed in the web UI per page? How many environments do you have? How many alerts per environment? Does it happen immediately after logging in without you doing anything or does it only start after you click around for a while? For example, clicking on the environment tabs?
How long have you observed the memory leak for? Minutes, hours, days? And the memory never returns to a lower level? It keeps growing indefinitely? Which memory? JS Heap, documents, nodes, listeners? Please include a screenshot of the Performance console that demonstrates the "memory leak". Thanks.
This issue is blocked waiting on more information. The description or subsequent comments do not provide enough information to triage, investigate or resolve the issue. Please review the description against the issue template and ensure all relevant information is included. If you do not know what is expected you can ask on Slack.
Closing due to inactivity. If you believe this issue has been closed prematurely please provide more information to help progress the issue. If you do not know what is expected you can ask on Slack.
Issue Summary When you leave the alerts page open in the browser (tested with both chrome and firefox) the memory usage of the browser process keeps growing.
Environment
OS: Linux
API version: 8.5.0
Deployment: Docker
Database: Postgres
Server config:
Auth enabled? Yes
Auth provider? LDAP
Customer views? Yes
/config
endpoint output:
{"actions":[],"alarm_model":{"colors":{"severity":{"acc_critical":"#aac8ff","acc_error":"#bedcff","acc_warning":"#d2f0ff","critical":"#ffaab4","dev_critical":"#cdcfce","dev_error":"#ebede6","dev_warning":"#ffffff","error":"#ffc8c8","indeterminate":"#888888","major":"#ffc8c8","tst_critical":"#cdcfce","tst_error":"#ebede6","tst_warning":"#ffffff","warning":"#ffe1d7"}},"defaults":{"normal_severity":"ok","previous_severity":"indeterminate","status":"open"},"name":"Alerta 8.5.0","severity":{"acc_critical":3,"acc_error":4,"acc_warning":6,"critical":1,"dev_critical":7,"dev_error":8,"dev_warning":9,"error":2,"indeterminate":11,"major":2,"normal":10,"ok":10,"security":0,"tst_critical":7,"tst_error":8,"tst_warning":9,"warning":5},"status":{"ack":"C","assign":"B","blackout":"E","closed":"F","expired":"G","open":"A","shelved":"D","unknown":"H"}},"audio":{"new":null},"auth_required":true,"aws_region":"us-east-1","azure_tenant":"common","client_id":null,"cognito_domain":null,"colors":{"severity":{"acc_critical":"#aac8ff","acc_error":"#bedcff","acc_warning":"#d2f0ff","critical":"#ffaab4","dev_critical":"#cdcfce","dev_error":"#ebede6","dev_warning":"#ffffff","error":"#ffc8c8","indeterminate":"#888888","major":"#ffc8c8","tst_critical":"#cdcfce","tst_error":"#ebede6","tst_warning":"#ffffff","warning":"#ffe1d7"}},"columns":["severity","status","createTime","environment","service","resource","event","value","text","note"],"customer_views":true,"dates":{"longDate":"ddd D MMM, YYYY HH:mm:ss.SSS Z","mediumDate":"ddd D MMM HH:mm","shortTime":"HH:mm"},"debug":false,"email_verification":false,"endpoint":"https://alerta_tst2.infra.xenit.eu/api","environments":["Production","Development"],"filter":{"status":["open","ack"]},"font":{"font-family":"\"Sintony\", Arial, sans-serif","font-size":"13px","font-weight":500},"github_url":"https://github.com","gitlab_url":"https://gitlab.com","indicators":{"queries":[{"query":[["environment","Production"]],"text":"Production"},{"query":[["environment","Development"]],"text":"Development"},{"query":{"q":"event:Heartbeat"},"text":"Heartbeats"},{"query":"group=Misc","text":"Misc."}],"severity":["critical","major","minor","warning","indeterminate","informational"]},"keycloak_realm":null,"keycloak_url":null,"oidc_auth_url":null,"provider":"ldap","refresh_interval":20000,"severity":{"acc_critical":3,"acc_error":4,"acc_warning":6,"critical":1,"dev_critical":7,"dev_error":8,"dev_warning":9,"error":2,"indeterminate":11,"major":2,"normal":10,"ok":10,"security":0,"tst_critical":7,"tst_error":8,"tst_warning":9,"warning":5},"signup_enabled":false,"site_logo_url":"","sort_by":"createTime","timeouts":{"ack":0,"alert":86400,"heartbeat":86400,"shelve":7200},"tracking_id":null}
web UI version: 8.5.0
CLI version: 8.5.0
To Reproduce Steps to reproduce the behavior:
For web app issues, include any web browser JavaScript console errors: none
Expected behavior memory usage should not keep growing
Screenshots just opened: after 2 hours:
Additional context Add any other context about the problem here. nr of alerts: 512 customers: 4 environments: 12
NOTE: Please provide as much information about your issue as possible. Failure to provide basic details about your specific environment make it impossible to know if an issue has already been fixed, can delay a response and may result in your issue being closed without a resolution.
I'm also seeing high memory and CPU usage in Firefox after cca hour:
number of alerts: 160 (some of them with thousand of duplicates) customers: 3 environments: 3
Alerta UI: 8.4 Alerta API: 8.3.3 Firefox: 90.0.2
I will be happy provide more information for debugging, let me know.
When you leave the alerts page open in the browser (tested with both chrome and firefox) the memory usage of the browser process keeps growing. version: docker image alerta-web:latest digest: 7f9be380bf07f2bf4a0d49de1ac1a0538054c1bbff0473489a15e0472e598f76 alerta.conf: