Embarcadero / paserver-docker

Docker script for RAD Studio Linux deployment via PAServer
https://hub.docker.com/r/radstudio/pa-radserver
Other
34 stars 13 forks source link

PAServer using 100% of CPU in docker-compose #4

Closed silvioprog closed 3 years ago

silvioprog commented 4 years ago

Hi.

Steps to reproduce the problem:

  1. Create a file called docker-compose.yml with the following content:
version: "3.6"
services:
  paserver:
    image: radstudio/paserver:10.3.2
    container_name: paserver
    ports:
      - 64211:64211/tcp    
      - 8082:8082/tcp
    restart: on-failure
  1. Run the following command:
$ docker-compose up
  1. Attach a shell to the container:
docker exec -it <ID> bash

<ID> = The container ID, e.g.: docker exec -it bbb5cb400d07 bash

  1. Inside the container, use the top command to watch the processes:
$ top

Now, notice the PAServer using 96.7 ~ 100% of CPU, e.g.:

top - 20:07:10 up 36 min,  0 users,  load average: 7.04, 5.76, 4.88
Tasks:   6 total,   2 running,   4 sleeping,   0 stopped,   0 zombie
%Cpu(s): 42.4 us, 23.7 sy,  0.0 ni, 31.3 id,  0.0 wa,  2.1 hi,  0.4 si,  0.0 st
KiB Mem :  5903916 total,  1600796 free,  2468084 used,  1835036 buff/cache
KiB Swap:  6037500 total,  5815292 free,   222208 used.  2868752 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                            
      8 root      20   0  364060  17092  15428 R  96.7  0.3   4:59.68 paserver                                                                                           
      1 root      20   0    4624    804    740 S   0.0  0.0   0:00.21 sh                                                                                                 
      6 root      20   0   18372   3044   2796 S   0.0  0.1   0:00.00 paserver_docker                                                                                    
      7 root      20   0  153452   5796   5208 S   0.0  0.1   0:00.00 broadwayd                                                                                          
     24 root      20   0   18504   3440   3000 S   0.0  0.1   0:00.77 bash                                                                                               
     34 root      20   0   36612   3036   2600 R   0.0  0.1   0:00.01 top
hunsche commented 4 years ago

For this not to happen it is necessary to enable tty: true