Skip to content

High CPU usage for Docker image #350

@agneevX

Description

@agneevX

Describe the bug
The python3 process is taking up a constant ~40% CPU.

~> docker top theme.park
UID                 PID                 PPID                C                   STIME               TTY                 TIME                CMD
root                2284                2136                0                   16:33               ?                   00:00:00            s6-svscan -t0 /var/run/s6/services
root                3596                2284                0                   16:33               ?                   00:00:00            s6-supervise s6-fdholderd
root                5425                2284                0                   16:33               ?                   00:00:00            s6-supervise nginx
root                5426                2284                0                   16:33               ?                   00:00:00            s6-supervise cron
root                5427                2284                0                   16:33               ?                   00:00:00            s6-supervise php-fpm
root                5428                2284                0                   16:33               ?                   00:00:33            s6-supervise themepark
root                5430                5426                0                   16:33               ?                   00:00:00            /usr/sbin/crond -f -S -l 5 -c /etc/crontabs
root                5431                5427                0                   16:33               ?                   00:00:00            php-fpm: master process (/etc/php7/php-fpm.conf)
root                5432                5425                0                   16:33               ?                   00:00:00            nginx: master process /usr/sbin/nginx -c /config/nginx/nginx.conf
agneev              5475                5432                0                   16:33               ?                   00:00:00            nginx: worker process
agneev              5476                5432                0                   16:33               ?                   00:00:00            nginx: worker process
agneev              5477                5432                0                   16:33               ?                   00:00:00            nginx: worker process
agneev              5478                5432                0                   16:33               ?                   00:00:00            nginx: worker process
agneev              5484                5431                0                   16:33               ?                   00:00:00            php-fpm: pool www
agneev              5485                5431                0                   16:33               ?                   00:00:00            php-fpm: pool www
root                138638              5428                36                  19:22               ?                   00:00:00            [python3]

This is on a Raspberry Pi install.

version: '3.9'
  theme.park:
    container_name: theme.park
    image: theme.park # compiled from src
    restart: unless-stopped
    environment:
      TP_SCHEME: http
      <<: *env
    ports:
      - 7070:80
    tmpfs:
      - /config:size=300m

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions