<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 1, 2020 at 12:59 PM jksjdevelop <<a href="mailto:jksjdevelop@gmail.com">jksjdevelop@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Thanks for the suggestion the limit seems to be 1000 which
sounds a lot<br>
</p>
<p>$ ulimit -a<br>
time(seconds) unlimited<br>
file(blocks) unlimited<br>
data(kbytes) unlimited<br>
stack(kbytes) 8192<br>
coredump(blocks) 0<br>
memory(kbytes) unlimited<br>
locked memory(kbytes) 65536<br>
process 13858<br>
nofiles 1024<br>
vmemory(kbytes) unlimited<br>
locks unlimited<br>
rtprio 0<br></p></div></blockquote><div><br></div><div><div style="font-family:monospace,monospace" class="gmail_default">1024 is low - we usually use 4096 in our products. Thing is - if it is SystemD running the program, it can easily not use the PAM limits from limits.conf.</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><p>
</p>
<p>however lsof | wc -l</p>
<p>produces 33410</p>
<p>monitoring the backend pid shows<br>
</p>
<p>lsof -p 1672 | wc -l<br>
5</p></div></blockquote><div><br></div><div><div style="font-family:monospace,monospace" class="gmail_default">It is not per pid if PAM based - it is system-wide per user. 33410 seems wonky though - it must contain multiple lines per fopen - not sure - never counted the output wholesale like that. I would use `lsof -u <username>`</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<p>I will monitor the number<br>
</p>
<div>On 01/09/2020 14:27, Greg Oliver wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Sep 1, 2020 at 6:04
AM John <<a href="mailto:jksjdevelop@gmail.com" target="_blank">jksjdevelop@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">v31.0-81-g05a613f9fa<br>
<br>
Has anybody seen the backend fail like this before?<br>
<br>
From the backend log<br>
<br>
Aug 31 22:06:37 tv systemd[1]: mythbackend.service: Main
process exited, <br>
code=killed, status=5/TRAP<br>
<br>
From Syslog<br>
<br>
Aug 31 22:06:37 tv kernel: [15079.668950] show_signal: 29
callbacks <br>
suppressed<br>
Aug 31 22:06:37 tv kernel: [15079.668957] traps:
MythSocketThrea[13492] <br>
trap int3 ip:7ff07424d0d5 sp:7fed87c569a0 error:0 in <br>
libglib-2.0.so.0.6400.3[7ff074211000+84000]<br>
Aug 31 22:06:37 tv mythbackend[1690]: (process:1690):
GLib-ERROR **: <br>
<span class="gmail_default" style="font-family:monospace,monospace"></span>
22:06:37.397: Creating pipes for GWakeup: Too many open
files<br>
Aug 31 22:07:12 tv systemd[1]: Stopped MythTV Backend.<br>
Aug 31 22:07:12 tv systemd[1]: Started MythTV Backend.<br>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div style="font-family:monospace,monospace">su to your mythtv user and run `ulimit
-a` and see how many open files are allowed in the user's
security limits.</div>
<div style="font-family:monospace,monospace"><br>
</div>
<div style="font-family:monospace,monospace"><span class="gmail_default" style="font-family:monospace,monospace"></span>
22:06:37.397: Creating pipes for GWakeup: Too many open
files</div>
</div>
</div><br>
</blockquote></div><br></blockquote></div></div>