Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nagworld9 committed Aug 23, 2023
1 parent 09e0835 commit 0714275
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions azurelinuxagent/ga/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,7 @@ def _check_agent_memory_usage(self):
"""
try:
if conf.get_enable_agent_memory_usage_check() and self._extensions_summary.converged:
# we delay first attempt memory usage check, so that current agent won't get blacklisted due to multiple restarts(because of memory limit reach) too frequently
if (self._initial_attempt_check_memory_usage and time.time() - self._last_check_memory_usage_time > CHILD_LAUNCH_INTERVAL) or \
(not self._initial_attempt_check_memory_usage and time.time() - self._last_check_memory_usage_time > conf.get_cgroup_check_period()):
self._last_check_memory_usage_time = time.time()
Expand Down

0 comments on commit 0714275

Please sign in to comment.