<div dir="ltr">Is it quick to run the showgraph.cgi binary manually?  Like so:<div><br></div><div>SCRIPT_NAME= REQUEST_METHOD=GET QUERY_STRING='host=<a href="http://hostname.example.com">hostname.example.com</a>&service=la&graph=hourly' /path/to/showgraph.cgi<br>

</div><div><br></div><div>If that's slow, probably not an Apache problem.</div><div><br></div><div>Are you running xymond_rrd with the "--no-cache" option?</div><div><br></div><div>J</div><div> </div></div>
<div class="gmail_extra">
<br><br><div class="gmail_quote">On 29 April 2014 12:20, Vernon Everett <span dir="ltr"><<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div><div><div>Hi<br><br></div>Nope, no IPv6.<br></div>Did a little constructive Googling on this error, and it's a fairly well known one.<br></div><div>All the notes I can find tell me to add <br></div>


<div><span style="font-family:courier new,monospace">Listen <a href="http://0.0.0.0:443" target="_blank">0.0.0.0:443</a></span><br></div><div>to my httpd.conf file, and the error will go away.<br><br></div><div>But that would be too easy. Not working in my world. And I still get the error. :-/<br>


</div><div>In desperation, I upgraded Apache to version: Apache/2.2.26 (Unix), and it just takes longer before showing the errors after a restart.<br></div><div><br></div><div>But, I think this error is a red herring, and is probably quite unrelated to the slow, high CPU utilisation of the graph rendering.<br>


</div><div>Lots of junk in the error.log file I can fix with an appropriate entry in logadm.<br></div><div>Taking forever to draw my graphs is a pain.<br><br></div><div>Has anybody experienced problems with the rrd graphs taking long to render?<br>


<br></div><div>Regards<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Vernon<br></div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5">

<div class="gmail_extra"><br><br><div class="gmail_quote">On 25 April 2014 03:02, Galen Johnson <span dir="ltr"><<a href="mailto:Galen.Johnson@sas.com" target="_blank">Galen.Johnson@sas.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div name="divtagdefaultwrapper" style="font-size:12pt;margin:0;font-family:Calibri,Arial,Helvetica,sans-serif">
That looks like IPv6.  Is IPv6 enabled? Is it actually listening on IPv6 (netstat -tan | grep -i listen | grep 443)  I typically disable it on my systems since using it is a mixed bag currently...especially on solaris (when I was managing it).
<div><br>
</div>
<div>=G=</div>
<div><br>
<div style="color:rgb(40,40,40)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Vernon Everett <<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>><br>
<b>Sent:</b> Thursday, April 24, 2014 4:46 AM<br>
<b>To:</b> Galen Johnson<br>
<b>Cc:</b> Xymon mailinglist<br>
<b>Subject:</b> Re: [Xymon] High CPU Load Rendering Graphs</font>
<div> </div>
</div><div><div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Yes, and no.<br>
<br>
</div>
Have just enabled the status page in the web config, and it appears to have got rid of the one error message.<br>
</div>
(Not sure how I missed the config change at initial install time)<br>
<br>
</div>
But, I still get the other error<br>
[warn] (128)Network is unreachable: connect to listener on [::]:443<br>
</div>
And my graphs still take way too long to render, and send my CPU utilisation through the roof.<br>
<br>
</div>
Public holiday here tomorrow, so only back at this client on Tuesday.<br>
<br>
</div>
Thanks<br>
</div>
Vernon<br>
<div>
<div><br>
<br>
<br>
<br>
<br>
<div>
<div>
<div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 24 April 2014 10:27, Galen Johnson <span dir="ltr"><<a href="mailto:Galen.Johnson@sas.com" target="_blank">Galen.Johnson@sas.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div name="divtagdefaultwrapper" style="font-size:12pt;margin:0;font-family:Calibri,Arial,Helvetica,sans-serif">
Do you have apache trending graphs enabled?  If so, did you enable the status page in your apache configs?
<div><br>
</div>
<div>=G=</div>
<div><br>
<div style="color:rgb(40,40,40)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Xymon <<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.com</a>> on behalf of Vernon Everett <<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>><br>



<b>Sent:</b> Wednesday, April 23, 2014 10:17 PM<br>
<b>To:</b> Xymon mailinglist<br>
<b>Subject:</b> [Xymon] High CPU Load Rendering Graphs</font>
<div> </div>
</div>
<div>
<div>
<div>
<div dir="ltr">
<div>Hi all<br>
<br>
</div>
My Xymon server 4.3.10 is burning the CPU cycles when we view multiple graphs, like the trends page, and takes about 5 seconds to render a single graph in a single-graph page view.<br>
<br clear="all">
<div>
<div>It's a Sun Fire X4150 with 4Gb of RAM, running Solaris 10 update 5..<br>
<span style="font-family:courier new,monospace"><br>
Version                          Location Tag<br>
-------------------------------- --------------------------<br>
Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz CPU 1<br>
</span><br>
</div>
<div>Not a very powerful box, and a bit dated, but I have seen significantly better performance on far lesser systems.<br>
</div>
<div>So I am not really thinking the issue is with the hardware.<br>
</div>
<div>It's been slow since it was installed. <br>
If I view the trends column, I can see the CPU load jump from below 1 to over 10 at times.<br>
</div>
<div>Running prstat or top in another window while viewing the trends column, the process ranking by CPU gets dominated by showgraph.cgi, owned by the web server user.
<br>
</div>
<div>Top under normal conditions.<br>
</div>
<div><font size="1"><span style="font-family:courier new,monospace">CPU states: 99.9% idle,  0.0% user,  0.1% kernel,  0.0% iowait,  0.0% swap</span></font><br>
Top rendering the trends column.<br>
<font size="1"><span style="font-family:courier new,monospace">CPU states:  0.0% idle, 93.8% user,  6.2% kernel,  0.0% iowait,  0.0% swap</span></font><br>
<br>
</div>
<div>Also getting this error<br>
<span style="font-family:courier new,monospace">(128)Network is unreachable: connect to listener on [::]:443</span><br>
</div>
<div>in my Apache error.log file, repeated every second while rendering the graphs.<br>
</div>
<div>And from time to time, I get this one. <br>
<span style="font-family:courier new,monospace">File does not exist: /opt/csw/apache2/share/htdocs/server-status</span><br>
</div>
<div><br>
</div>
<div>Anybody seen anything like this?<br>
</div>
<div>Perhaps know of somewhere I can look for more info?<br>
<br>
</div>
<div>I have looked at this <a href="http://lists.xymon.com/archive/2014-January/038780.html" target="_blank">
http://lists.xymon.com/archive/2014-January/038780.html</a><br>
</div>
<div>But it doesn't seem relevant. Only 2 errant files, and deleting them made absolutely no difference.<br>
</div>
<div><br>
</div>
<div>Other info that may be important....<br>
<span style="font-family:courier new,monospace">bash-3.00# ./httpd -v<br>
Server version: Apache/2.2.22 (Unix)<br>
Server built:   Jun  1 2012 05:09:20<br>
bash-3.00# ./httpd -V<br>
Server version: Apache/2.2.22 (Unix)<br>
Server built:   Jun  1 2012 05:09:20<br>
Server's Module Magic Number: 20051115:30<br>
Server loaded:  APR 1.4.5, APR-Util 1.3.12<br>
Compiled using: APR 1.4.6, APR-Util 1.3.12<br>
Architecture:   32-bit<br>
Server MPM:     Prefork<br>
  threaded:     no<br>
    forked:     yes (variable process count)<br>
Server compiled with....<br>
 -D APACHE_MPM_DIR="server/mpm/prefork"<br>
 -D APR_HAS_SENDFILE<br>
 -D APR_HAS_MMAP<br>
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)<br>
 -D APR_USE_FCNTL_SERIALIZE<br>
 -D APR_USE_PTHREAD_SERIALIZE<br>
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT<br>
 -D APR_HAS_OTHER_CHILD<br>
 -D AP_HAVE_RELIABLE_PIPED_LOGS<br>
 -D DYNAMIC_MODULE_LIMIT=128<br>
 -D HTTPD_ROOT="/opt/csw/apache2"<br>
 -D SUEXEC_BIN="/opt/csw/apache2/sbin/suexec"<br>
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"<br>
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"<br>
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"<br>
 -D DEFAULT_ERRORLOG="logs/error_log"<br>
 -D AP_TYPES_CONFIG_FILE="etc/mime.types"<br>
 -D SERVER_CONFIG_FILE="etc/httpd.conf"</span><br>
<br>
</div>
<div>Thanks<br>
</div>
<div>Vernon<br>
</div>
<div><br>
<br>
-- <br>
<span>"Accept the challenges so that you can feel the exhilaration of victory"</span>
<div><span>- General George Patton</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<span>"Accept the challenges so that you can feel the exhilaration of victory"</span>
<div><span>- General George Patton</span></div>
</div>
</div>
</div></div></div>
</div>
</div>
</div>

</blockquote></div><br><br clear="all"><br>-- <br><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div>
</div>
</div></div><br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>