<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Have a solution.</p>
<p><br>
# clientlocal.cfg on xymon-server:<br>
<tt>toomanyprocs:/usr/sbin/apache2 -k
start|/usr/sbin/anotherproc|/usr/sbin/anotherproc2</tt><br>
</p>
<p><br>
# ps section on xymon-client:<br>
</p>
<p><tt>echo "[ps]"</tt><tt><br>
</tt><tt>PROCSTOCUT=`cat ${LOGFETCHCFG} | grep "^toomanyprocs:" |
awk -F: '{print $2}'`</tt><tt><br>
</tt><tt>if test -z "$PROCSTOCUT"; then</tt><tt><br>
</tt><tt> ps -Aww f -o
pid,ppid,user,start,state,pri,pcpu,time:12,pmem,rsz:10,vsz:10,cmd</tt><tt><br>
</tt><tt>else</tt><tt><br>
</tt><tt> ps -Aww f -o
pid,ppid,user,start,state,pri,pcpu,time:12,pmem,rsz:10,vsz:10,cmd
| egrep -v "${PROCSTOCUT}"</tt><tt><br>
</tt><tt> ORIGIFS=${IFS}; IFS="|"</tt><tt><br>
</tt><tt> for PROC in ${PROCSTOCUT}</tt><tt><br>
</tt><tt> do</tt><tt><br>
</tt><tt> ps -Aww f -o
pid,ppid,user,start,state,pri,pcpu,time:12,pmem,rsz:10,vsz:10,cmd
| grep "${PROC}" | grep -v grep | head -n 2</tt><tt><br>
</tt><tt> done</tt><tt><br>
</tt><tt>fi</tt><tt><br>
</tt><tt>IFS=${ORIGIFS}</tt><br>
</p>
Result: <span id="result_box" class="short_text" lang="en"><span
class="">only two lines in client message.</span></span><br>
<br>
<div class="moz-cite-prefix">Am 24.05.2017 um 21:22 schrieb Alex:<br>
</div>
<blockquote
cite="mid:221a980a-0821-3c79-3576-20712dafef36@bakarasse.de"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p>Am 24.05.2017 um 14:53 schrieb Jeremy Laidman:<br>
</p>
<blockquote type="cite"
cite="mid:CAAnki7Ah0gWytTHFDJgD1JApccWG3TBSsdG9J4O5FH7k35yAqA@mail.gmail.com">
<div dir="ltr">That's a lot of processes! I'm guessing they're
actually threads rather than processes, but the "ps" listing
in Xymon is showing the threads separately. Do all of the
httpd processes have the same process ID?
<div><br>
</div>
</div>
</blockquote>
There are apache2 prefork processes.<br>
www-data 27440 0.0 0.0 71164 4192 ? S May23 0:00
/usr/sbin/apache2 -k start<br>
www-data 27441 0.0 0.0 71164 4192 ? S May23 0:00
/usr/sbin/apache2 -k start<br>
www-data 27442 0.0 0.0 71164 4192 ? S May23 0:00
/usr/sbin/apache2 -k start<br>
www-data 27443 0.0 0.0 71164 4192 ? S May23 0:00
/usr/sbin/apache2 -k start<br>
www-data 27444 0.0 0.0 71164 4192 ? S May23 0:00
/usr/sbin/apache2 -k start<br>
<br>
It is a webserver for presentation of election results.<br>
It must concurrently satisfy a great number of visitors on the
election day.<br>
<br>
<blockquote type="cite"
cite="mid:CAAnki7Ah0gWytTHFDJgD1JApccWG3TBSsdG9J4O5FH7k35yAqA@mail.gmail.com">
<div dir="ltr">
<div>You might be able to have the threads collapsed into a
single line in the process listing by adjusting the "ps"
command line on your client. What OS are you running? On
Linux, the "-T" switch enables displaying of separate
threads, so if that's in your Xymon client settings, you
would want to remove that.</div>
<div><br>
</div>
<div>You can also increase the limit for client messages by
adjusting MAXMSG_CLIENT in xymonserver.cfg. But better to
reduce the message size than increase the limit, if you're
able to.</div>
</div>
</blockquote>
I try my best.<br>
<blockquote type="cite"
cite="mid:CAAnki7Ah0gWytTHFDJgD1JApccWG3TBSsdG9J4O5FH7k35yAqA@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>J</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 24 May 2017 at 21:50, Alexander
Bech <span dir="ltr"><<a href="mailto:alex@bakarasse.de"
target="_blank" moz-do-not-send="true">alex@bakarasse.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
We have several webserver with 24000 started apache2
processes.<br>
Xymonclient message is too large and are dropped.<br>
<br>
Does anyone have experience with this problem?<br>
<br>
<br>
Regards,<br>
Alex<br>
<br>
<br>
______________________________<wbr>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank"
moz-do-not-send="true">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.xymon.com/mailman<wbr>/listinfo/xymon</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Xymon mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a>
<a class="moz-txt-link-freetext" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a>
</pre>
</blockquote>
<br>
</body>
</html>