How can I solve memory exceeded error?

When I connect to manageiq, I get a 504 Gateway Time-out error.

So, when I checked evm.log, it came out below.

:enforce_resource_constraints: false
:kill_algorithm:
:name: :used_swap_percent_gt_value
:value: 80
:miq_server_time_threshold: 120
:nice_delta: 1
:poll: 2
:start_algorithm:
:name: :used_swap_percent_lt_value
:value: 60
:sync_interval: 1800
:wait_for_started_timeout: 600
[----] E, [2021-03-08T06:48:14.851487 #7:2aaba7573974] ERROR – : MIQ(MiqServer#start_algorithm_used_swap_percent_lt_value) Not allowing worker [ManageIQ::Providers::Azure::CloudManager::EventCatcher] to start since system memory usage has exceeded 60% of swap: Total: [4294963200], Used: [3197890560]
[----] I, [2021-03-08T06:48:14.914962 #7:2aaba7573974] INFO – : MIQ(MiqGenericWorker.sync_workers) Workers are being synchronized: Current #: [1], Desired #: [2]
[----] E, [2021-03-08T06:48:14.915610 #7:2aaba7573974] ERROR – : MIQ(MiqServer#start_algorithm_used_swap_percent_lt_value) Not allowing worker [MiqGenericWorker] to start since system memory usage has exceeded 60% of swap: Total: [4294963200], Used: [3197886464]
[----] I, [2021-03-08T06:48:14.919692 #7:2aaba7573974] INFO – : MIQ(MiqReportingWorker.sync_workers) Workers are being synchronized: Current #: [1], Desired #: [2]
[----] E, [2021-03-08T06:48:14.920285 #7:2aaba7573974] ERROR – : MIQ(MiqServer#start_algorithm_used_swap_percent_lt_value) Not allowing worker [MiqReportingWorker] to start since system memory usage has exceeded 60% of swap: Total: [4294963200], Used: [3197886464]
[----] I, [2021-03-08T06:48:14.927536 #7:2aaba7573974] INFO – : MIQ(MiqEmsMetricsProcessorWorker.sync_workers) Workers are being synchronized: Current #: [0], Desired #: [2]
[----] E, [2021-03-08T06:48:14.928560 #7:2aaba7573974] ERROR – : MIQ(MiqServer#start_algorithm_used_swap_percent_lt_value) Not allowing worker [MiqEmsMetricsProcessorWorker] to start since system memory usage has exceeded 60% of swap: Total: [4294963200], Used: [3197886464]
[----] I, [2021-03-08T06:48:14.939096 #7:2aaba7573974] INFO – : MIQ(ManageIQ::Providers::Amazon::CloudManager::MetricsCollectorWorker.sync_workers) Workers are being synchronized: Current #: [0], Desired #: [2]
[----] E, [2021-03-08T06:48:14.939736 #7:2aaba7573974] ERROR – : MIQ(MiqServer#start_algorithm_used_swap_percent_lt_value) Not allowing worker [ManageIQ::Providers::Amazon::CloudManager::MetricsCollectorWorker] to start since system memory usage has exceeded 60% of swap: Total: [4294963200], Used: [3197882368]
[----] I, [2021-03-08T06:48:14.945832 #7:2aaba7573974] INFO – : MIQ(ManageIQ::Providers::Azure::CloudManager::MetricsCollectorWorker.sync_workers) Workers are being synchronized: Current #: [0], Desired #: [2]
[----] E, [2021-03-08T06:48:14.946454 #7:2aaba7573974] ERROR – : MIQ(MiqServer#start_algorithm_used_swap_percent_lt_value) Not allowing worker [ManageIQ::Providers::Azure::CloudManager::MetricsCollectorWorker] to start since system memory usage has exceeded 60% of swap: Total: [4294963200], Used: [3197882368]
[----] I, [2021-03-08T06:48:14.952793 #7:2aaba7573974] INFO – : MIQ(ManageIQ::Providers::Google::CloudManager::MetricsCollectorWorker.sync_workers) Workers are being synchronized: Current #: [0], Desired #: [2]
[----] E, [2021-03-08T06:48:14.953410 #7:2aaba7573974] ERROR – : MIQ(MiqServer#start_algorithm_used_swap_percent_lt_value) Not allowing worker [ManageIQ::Providers::Google::CloudManager::MetricsCollectorWorker] to start since system memory usage has exceeded 60% of swap: Total: [4294963200], Used: [3197882368]
[----] I, [2021-03-08T06:48:14.981877 #7:2aaba7573974] INFO – : MIQ(ManageIQ::Providers::Azure::CloudManager::RefreshWorker.sync_workers) Workers are being synchronized: Current: , Desired: [[“ems_60”, “ems_61”]]
[----] E, [2021-03-08T06:48:14.982460 #7:2aaba7573974] ERROR – : MIQ(MiqServer#start_algorithm_used_swap_percent_lt_value) Not allowing worker [ManageIQ::Providers::Azure::CloudManager::RefreshWorker] to start since system memory usage has exceeded 60% of swap: Total: [4294963200], Used: [3197882368]

How can I solve this problem??


This is the disk usage of the entire VM.


And, This is the container’s resource utilization rate.(docker container stats [container name])

@Sso Are you giving enough memory to your docker subsystem? The monolithic docker image isn’t really meant for full production use…it’s more for trying it out. I’d recommend at least 12GB available if using the docker monolithic image.

If you are running on Docker on Mac, that means you might need to go into the docker settings and increase the VM’s memory amount. See Docker Desktop for Mac user manual | Docker Documentation for more information.