Pulpcore Gunicorn process consuming large amounts of memory
Issue
As seen from the ps
command output the Gunicorn processes are consuming the most memory and after restarting them the memory is then released.
# ps -aux --sort=-%mem | head
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
pulp 2430 5.2 58.1 19350176 18986280 ? S 07:18 9:51 /usr/bin/python3.9 /usr/bin/gunicorn pulpcore.app.wsgi:application --bind localhost:24817 --workers 2 --timeout 60 --access-logfile - --access-logformat pulp [%({correlation-id}o)s]: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
pulp 2712 3.1 33.2 11203380 10840276 ? S 09:08 2:27 /usr/bin/python3.9 /usr/bin/gunicorn pulpcore.app.wsgi:application --bind localhost:24817 --workers 2 --timeout 60 --access-logfile - --access-logformat pulp [%({correlation-id}o)s]: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
pulp 2663 0.1 0.4 523208 156008 ? Ss 09:07 0:06 /usr/bin/python3.9 /usr/bin/pulpcore-worker
pulp 2706 0.0 0.4 517196 149772 ? Ss 09:08 0:04 /usr/bin/python3.9 /usr/bin/pulpcore-worker
pulp 2707 0.0 0.4 512188 144800 ? Ss 09:08 0:04 /usr/bin/python3.9 /usr/bin/pulpcore-worker
pulp 2629 0.1 0.4 510984 143748 ? Ss 09:07 0:06 /usr/bin/python3.9 /usr/bin/pulpcore-worker
pulp 2708 0.0 0.4 509952 142496 ? Ss 09:08 0:04 /usr/bin/python3.9 /usr/bin/pulpcore-worker
pulp 2709 0.0 0.4 507572 140096 ? Ss 09:08 0:04 /usr/bin/python3.9 /usr/bin/pulpcore-worker
postgres 2749 0.1 0.4 289712 138732 ? Ss 09:08 0:04 postgres: pulp pulp ::1(49254) idle
# rhui-services-restart
# ps -aux --sort=-%mem | head
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
postgres 1616 0.0 0.4 287608 137972 ? Ss 07:17 0:02 postgres: background writer
pulp 11619 42.5 0.3 531800 107392 ? Sl 10:26 0:01 /usr/bin/python3.9 /usr/bin/gunicorn pulpcore.content:server --bind localhost:24816 --worker-class aiohttp.GunicornWebWorker --workers 2 --timeout 5 --access-logfile -
pulp 11626 37.7 0.3 531740 107264 ? Sl 10:26 0:01 /usr/bin/python3.9 /usr/bin/gunicorn pulpcore.content:server --bind localhost:24816 --worker-class aiohttp.GunicornWebWorker --workers 2 --timeout 5 --access-logfile -
pulp 11623 59.5 0.3 446044 107080 ? Ss 10:26 0:02 /usr/bin/python3.9 /usr/bin/pulpcore-worker
pulp 11613 54.2 0.3 446128 107020 ? Ss 10:26 0:02 /usr/bin/python3.9 /usr/bin/pulpcore-worker
pulp 11611 55.5 0.3 446168 106996 ? Ss 10:26 0:02 /usr/bin/python3.9 /usr/bin/pulpcore-worker
pulp 11621 42.5 0.3 446172 106948 ? Ss 10:26 0:01 /usr/bin/python3.9 /usr/bin/pulpcore-worker
pulp 11609 41.5 0.3 446132 106912 ? Ss 10:26 0:01 /usr/bin/python3.9 /usr/bin/pulpcore-worker
Environment
- Red Hat Update Infrastructure 4
- Red Hat Satellite 6.11
- Red Hat Satellite 6.12
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.