{"action":"opened","issue":{"url":"https://api.github.com/repos/Supervisor/supervisor/issues/907","repository_url":"https://api.github.com/repos/Supervisor/supervisor","labels_url":"https://api.github.com/repos/Supervisor/supervisor/issues/907/labels{/name}","comments_url":"https://api.github.com/repos/Supervisor/supervisor/issues/907/comments","events_url":"https://api.github.com/repos/Supervisor/supervisor/issues/907/events","html_url":"https://github.com/Supervisor/supervisor/issues/907","id":214049200,"number":907,"title":"Supervisor Kip killing my worker ","user":{"login":"beshoo1","id":20724721,"avatar_url":"https://avatars0.githubusercontent.com/u/20724721?v=3","gravatar_id":"","url":"https://api.github.com/users/beshoo1","html_url":"https://github.com/beshoo1","followers_url":"https://api.github.com/users/beshoo1/followers","following_url":"https://api.github.com/users/beshoo1/following{/other_user}","gists_url":"https://api.github.com/users/beshoo1/gists{/gist_id}","starred_url":"https://api.github.com/users/beshoo1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beshoo1/subscriptions","organizations_url":"https://api.github.com/users/beshoo1/orgs","repos_url":"https://api.github.com/users/beshoo1/repos","events_url":"https://api.github.com/users/beshoo1/events{/privacy}","received_events_url":"https://api.github.com/users/beshoo1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-14T11:55:20Z","updated_at":"2017-03-14T11:55:20Z","closed_at":null,"body":"I have a long CURL processes.\r\nIn past , (5 days before now) Supervisor was able to to run the worker .\r\nToday i note that worker is run for 15 sec then Supervisor restart it .... here is a part of LONG log : \r\n\r\n\r\n```\r\n2017-03-14 11:23:36,752 INFO exited: 01 (terminated by SIGKILL; not expected)\r\n2017-03-14 11:23:36,754 INFO spawned: '01' with pid 686253\r\n2017-03-14 11:23:36,792 INFO success: 01 entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)\r\n2017-03-14 11:23:40,757 INFO exited: 11 (terminated by SIGKILL; not expected)\r\n2017-03-14 11:23:40,760 INFO spawned: '11' with pid 686272\r\n2017-03-14 11:23:40,798 INFO success: 11 entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)\r\n2017-03-14 11:23:44,762 INFO exited: 01 (terminated by SIGKILL; not expected)\r\n2017-03-14 11:23:44,766 INFO spawned: '01' with pid 686288\r\n2017-03-14 11:23:44,804 INFO success: 01 entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)\r\n2017-03-14 11:23:48,768 INFO exited: 11 (terminated by SIGKILL; not expected)\r\n2017-03-14 11:23:48,770 INFO spawned: '11' with pid 686297\r\n2017-03-14 11:23:48,771 INFO success: 11 entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)\r\n2017-03-14 11:23:52,773 INFO exited: 01 (terminated by SIGKILL; not expected)\r\n\r\n```\r\n\r\nhere is Supervisor  conf : \r\n```\r\nroot@server [/output]# cat /etc/supervisord.conf\r\n\r\n[supervisorctl]\r\nserverurl=unix:///tmp/supervisor.sock ; use a unix:// URL  for a unix socket\r\n;serverurl = http://localhost:9001\r\n;serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket\r\n;username=chris              ; should be same as http_username if set\r\n;password=123                ; should be same as http_password if set\r\n;prompt=mysupervisor         ; cmd line prompt (default \"supervisor\")\r\n;history_file=~/.sc_history  ; use readline history if available\r\n\r\n; The below sample program section shows all possible program subsection values,\r\n; create one or more 'real' program: sections to be able to control them under\r\n; supervisor.\r\n\r\n;[program:theprogramname]\r\n;command=/bin/cat              ; the program (relative uses PATH, can take args)\r\n;process_name=%(program_name)s ; process_name expr (default %(program_name)s)\r\n;numprocs=1                    ; number of processes copies to start (def 1)\r\n;directory=/tmp                ; directory to cwd to before exec (def no cwd)\r\n;umask=022                     ; umask for process (default None)\r\n;priority=999                  ; the relative start priority (default 999)\r\n;autostart=true                ; start at supervisord start (default: true)\r\n;startsecs=1                   ; # of secs prog must stay up to be running (def. 1)\r\n;startretries=3                ; max # of serial start failures when starting (default 3)\r\n;autorestart=unexpected        ; when to restart if exited after running (def: unexpected)\r\n;exitcodes=0,2                 ; 'expected' exit codes used with autorestart (default 0,2)\r\n;stopsignal=QUIT               ; signal used to kill process (default TERM)\r\n;stopwaitsecs=10               ; max num secs to wait b4 SIGKILL (default 10)\r\n;stopasgroup=false             ; send stop signal to the UNIX process group (default false)\r\n;killasgroup=false             ; SIGKILL the UNIX process group (def false)\r\n;user=chrism                   ; setuid to this UNIX account to run the program\r\n;redirect_stderr=true          ; redirect proc stderr to stdout (default false)\r\n;stdout_logfile=/a/path        ; stdout log path, NONE for none; default AUTO\r\n;stdout_logfile_maxbytes=1MB   ; max # logfile bytes b4 rotation (default 50MB)\r\n;stdout_logfile_backups=10     ; # of stdout logfile backups (default 10)\r\n;stdout_capture_maxbytes=1MB   ; number of bytes in 'capturemode' (default 0)\r\n;stdout_events_enabled=false   ; emit events on stdout writes (default false)\r\n;stderr_logfile=/a/path        ; stderr log path, NONE for none; default AUTO\r\n;stderr_logfile_maxbytes=1MB   ; max # logfile bytes b4 rotation (default 50MB)\r\n;stderr_logfile_backups=10     ; # of stderr logfile backups (default 10)\r\n;stderr_capture_maxbytes=1MB   ; number of bytes in 'capturemode' (default 0)\r\n;stderr_events_enabled=false   ; emit events on stderr writes (default false)\r\n;environment=A=\"1\",B=\"2\"       ; process environment additions (def no adds)\r\n;serverurl=AUTO                ; override serverurl computation (childutils)\r\n\r\n\r\n\r\n[supervisord]\r\nlogfile=/output/supervisord.log ; (main log file;default $CWD/supervisord.log)\r\nlogfile_maxbytes=50MB        ; (max main logfile bytes b4 rotation;default 50MB)\r\nlogfile_backups=10           ; (num of main logfile rotation backups;default 10)\r\nloglevel=info                ; (log level;default info; others: debug,warn,trace)\r\npidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)\r\nnodaemon=false               ; (start in foreground if true;default false)\r\nminfds=1024                  ; (min. avail startup file descriptors;default 1024)\r\nminprocs=200                 ; (min. avail process descriptors;default 200)\r\n;umask=022                   ; (process file creation umask;default 022)\r\nuser=root                 ; (default is current user, required if root)\r\n;identifier=supervisor       ; (supervisord identifier, default is 'supervisor')\r\n;directory=/tmp              ; (default is not to cd during start)\r\n;nocleanup=true              ; (don't clean up tempfiles at start;default false)\r\n;childlogdir=/tmp            ; ('AUTO' child log dir, default $TEMP)\r\n;environment=KEY=\"value\"     ; (key value pairs to add to environment)\r\n;strip_ansi=false            ; (strip ansi escape codes in logs; def. false)\r\n;http_port=/tmp/supervisor.sock;\r\n\r\n\r\n[unix_http_server]\r\nfile = /tmp/supervisor.sock\r\nchmod = 0777\r\nchown= root:root\r\n\r\n[rpcinterface:supervisor]\r\nsupervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface\r\n\r\n[include]\r\nfiles = /etc/supervisor/*.conf\r\n```\r\nAnd here is the worker conf include file:\r\n\r\n```\r\n[program:gearmanworker]\r\ncommand=/usr/local/bin/php /home/myinstaranker/www/panel/boot/worker.php %(process_num)02d\r\nprocess_name=%(process_num)02d\r\nnumprocs=30\r\nstartsecs = 0\r\ndirectory=/output\r\nautostart=true\r\nautorestart=true\r\nuser=root\r\nstdout_logfile=/output/%(program_name)s_%(process_num)02d\r\npriority=1\r\n```\r\n\r\n\r\nsupervisord -v\r\n```\r\nroot@server [/etc/supervisor]# supervisord -v\r\n3.3.1\r\n```\r\n```\r\nroot@server [/etc/supervisor]# uname -a\r\nLinux server.net 2.6.32-673.26.1.lve1.4.22.el6.x86_64 #1 SMP Fri Feb 24 08:35:09 EST 2017 x86_64 x86_64 x86_64 GNU/Linux\r\nroot@server [/etc/supervisor]#\r\n```\r\n\r\nServer Ram\r\n```\r\nroot@server [/etc/supervisor]# free -m\r\n             total       used       free     shared    buffers     cached\r\nMem:         64242      63849        393          1        321      60491\r\n-/+ buffers/cache:       3035      61207\r\nSwap:         1952         29       1923\r\nroot@server [/etc/supervisor]#\r\n```\r\n```\r\n\r\nServer 24 CUP Info:\r\nprocessor       :0  -> 23\r\nvendor_id       : GenuineIntel\r\ncpu family      : 6\r\nmodel           : 45\r\nmodel name      : Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz\r\nstepping        : 7\r\nmicrocode       : 1808\r\ncpu MHz         : 2000.123\r\ncache size      : 15360 KB\r\nphysical id     : 1\r\nsiblings        : 12\r\ncore id         : 5\r\ncpu cores       : 6\r\napicid          : 43\r\ninitial apicid  : 43\r\nfpu             : yes\r\nfpu_exception   : yes\r\ncpuid level     : 13\r\nwp              : yes\r\nflags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid xsaveopt\r\nbogomips        : 3999.46\r\nclflush size    : 64\r\ncache_alignment : 64\r\naddress sizes   : 46 bits physical, 48 bits virtual\r\npower management:\r\n\r\n```\r\n"}}
{"actor":{"display_login":"beshoo1"}}