The virtual service or pool events in any display time will fail to load and result in a request timeout. The API endpoint which fetches the client logs and system events will fail with a 500 Internal Server Error.
The HTTP 500 response code can be identified by using the web browser's inspect element and switching to the network tab.
Example:
Affects all versions running the Avi controller as a docker container.
This issue is caused by a low container memory threshold causing the controller to continuously restart services on the Avi controller. This in turn causes a high amount of event files, which leads to the GUI events timeouts.
***NOTE***: The log snippets below are examples and may vary from environment to environment.
/var/lib/avi/log/stats_collection.log
Container Memory - Avi registers a high memory consumptions although the available memory on the host is much more.
└─$ grep 'docker mode mem' stats_collection.log | sort | tail -n 4
[2025-01-16 19:52:55,934] INFO [stat_collector._get_memory_stats_docker:1833] docker mode memory: svmem(Total: 60.0G, Used: 48.5G, Available: 11.5G Percent: 80)
[2025-01-16 19:53:21,032] INFO [stat_collector._get_memory_stats_docker:1833] docker mode memory: svmem(Total: 60.0G, Used: 48.5G, Available: 11.5G Percent: 80)
[2025-01-16 19:53:46,125] INFO [stat_collector._get_memory_stats_docker:1833] docker mode memory: svmem(Total: 60.0G, Used: 48.6G, Available: 11.4G Percent: 80)
[2025-01-16 19:54:11,236] INFO [stat_collector._get_memory_stats_docker:1833] docker mode memory: svmem(Total: 60.0G, Used: 48.6G, Available: 11.4G Percent: 80)
Host Memory:
└─$ grep 'host mem' stats_collection.log | sort | tail -n 4
[2025-01-16 19:52:55,730] INFO [stat_collector.pprint_ntuple:216] host memory: Total : 125.9G, Available : 86.6G, Percent : 31.2%, Used : 31.8G, Free : 24.6G, Active : 48.3G, Inactive : 26.7G, Buffers : 2.0G, Cached : 67.5G, Shared : 5.0G, Slab : 23.6G
[2025-01-16 19:53:20,829] INFO [stat_collector.pprint_ntuple:216] host memory: Total : 125.9G, Available : 86.6G, Percent : 31.2%, Used : 31.8G, Free : 24.6G, Active : 48.3G, Inactive : 26.7G, Buffers : 2.0G, Cached : 67.5G, Shared : 5.0G, Slab : 23.6G
[2025-01-16 19:53:45,914] INFO [stat_collector.pprint_ntuple:216] host memory: Total : 125.9G, Available : 86.6G, Percent : 31.2%, Used : 31.8G, Free : 24.6G, Active : 48.4G, Inactive : 26.6G, Buffers : 2.0G, Cached : 67.5G, Shared : 5.0G, Slab : 23.6G
[2025-01-16 19:54:11,016] INFO [stat_collector.pprint_ntuple:216] host memory: Total : 125.9G, Available : 86.6G, Percent : 31.2%, Used : 31.8G, Free : 24.5G, Active : 50.5G, Inactive : 24.6G, Buffers : 2.0G, Cached : 67.6G, Shared : 5.0G, Slab : 23.6G
High number of statecachemgr daemon restarts
/var/lib/avi/log/cluster_manager*INFO*
└─$ zgrep 'Restarting avi-statecachemgr' cluster_manager*INFO* | wc -l
1373
High number of event files:
The memory threshold for docker container controllers will be increased to prevent such issues where system daemons are restarted. This fix will be added in the next releases of Avi, please check the product release notes.
Bug ID: AV-227721 - Events not available for some Virtual Services and Pools, due to high memory consumption.
Fix Version(s): 22.1.7-2p6, 30.2.2-2p4, 30.2.3
Release Notes for VMware Avi Load Balancer Version 30.2.3
Workaround(s):
sudo echo 150 > /proc/sys/vm/vfs_cache_pressure
sudo echo 3 > /proc/sys/vm/drop_caches
sudo docker exec -it avicontroller bash
sudo systemctl stop process-supervisor
find . -type f -name '*statecachemgr*' | wc -l
find . -type f -name '*statecachemgr*' -exec rm -rf {} \;
sudo systemctl start process-supervisor
**NOTE**