Outils pour utilisateurs

Outils du site


tech:docker_nproc_nombre_maximum_de_process

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

tech:docker_nproc_nombre_maximum_de_process [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:docker_nproc_nombre_maximum_de_process [2025/04/04 20:17] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 {{tag>Docker}} {{tag>Docker}}
  
-Docker nproc nombre maximum de process+ 
 +Docker nproc nombre maximum de process
  
 Docker nproc Nombre maximum de process Docker nproc Nombre maximum de process
Ligne 7: Ligne 9:
 Erreur ''java.lang.OutOfMemoryError: unable to create new native thread'' Erreur ''java.lang.OutOfMemoryError: unable to create new native thread''
  
-== Exemple SystemD Docker  
  
-<code ->+## Exemple SystemD Docker  
 + 
 +~~~
 # CTR=`docker run --pids-limit 111 --detach --rm busybox /bin/sleep 8h` # CTR=`docker run --pids-limit 111 --detach --rm busybox /bin/sleep 8h`
 # cat /sys/fs/cgroup/pids/system.slice/docker-${CTR}.scope/pids.max # cat /sys/fs/cgroup/pids/system.slice/docker-${CTR}.scope/pids.max
Ligne 19: Ligne 22:
 # cat /sys/fs/cgroup/pids/system.slice/docker-${CTR}.scope/pids.max # cat /sys/fs/cgroup/pids/system.slice/docker-${CTR}.scope/pids.max
 max max
-</code>+~~~
 Source : https://access.redhat.com/solutions/3666581 Source : https://access.redhat.com/solutions/3666581
  
-== Exemple de configuration du daemon Dockerd+ 
 +## Exemple de configuration du daemon Dockerd
  
 Option ''--default-pids-limit=-1'' Option ''--default-pids-limit=-1''
-<code bash /etc/sysconfig/docker>+ 
 +''/etc/sysconfig/docker'' 
 + 
 +~~~bash
 # Modify these options if you want to change the way the docker daemon runs # Modify these options if you want to change the way the docker daemon runs
 OPTIONS='--selinux-enabled --log-driver=json-file --signature-verification=false --default-pids-limit=-1' OPTIONS='--selinux-enabled --log-driver=json-file --signature-verification=false --default-pids-limit=-1'
-</code>+~~~ 
 + 
 + 
 +### Diag sur OpenShift
  
-=== Diag sur OpenShift +~~~bash
-<code bash>+
 # oc debug node/$NODE_NAME # oc debug node/$NODE_NAME
 # chroot /host # chroot /host
Ligne 37: Ligne 46:
 # cat /sys/fs/cgroup/pids/"${cgroup}"/pids.max # cat /sys/fs/cgroup/pids/"${cgroup}"/pids.max
   4096   4096
-</code>+~~~
 Source : https://access.redhat.com/solutions/4074511 Source : https://access.redhat.com/solutions/4074511
  
-== Exemple de création de conteneur+## Exemple de création de conteneur
  
-<code bash>+~~~bash
 sudo docker create --name bankapp-inst -it \ sudo docker create --name bankapp-inst -it \
   --sysctl fs.mqueue.msg_max=10000 \   --sysctl fs.mqueue.msg_max=10000 \
Ligne 50: Ligne 59:
   --ulimit nproc=256:512 \   --ulimit nproc=256:512 \
   bankapp   bankapp
-</code>+~~~
 Source : https://github.com/endurox-dev/endurox-docker Source : https://github.com/endurox-dev/endurox-docker
  
  
tech/docker_nproc_nombre_maximum_de_process.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki