<p dir="ltr">The show graph.cgi binary is compiled with the rrdtool libraries, which in turn require some basic fonts to be able to write on the graphs..  </p>
<p dir="ltr">OK, to get the obvious questions out of the way, do all those font files really exist? Are you running any kind of X11 client that needs them? If not, can you relocate most of them somewhere else and see if that improves things?</p>

<p dir="ltr">You should be able to see in the source what fonts are required by show graph.c</p>
<p dir="ltr">Ralph Mitchell </p>
<div class="gmail_quote">On Oct 4, 2013 2:58 PM, "Novosielski, Ryan" <<a href="mailto:novosirj@ca.rutgers.edu">novosirj@ca.rutgers.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
On 10/04/2013 12:54 PM, Japheth Cleaver wrote:<br>
><br>
><br>
> On Fri, October 4, 2013 8:59 am, Novosielski, Ryan wrote:<br>
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1<br>
>><br>
>> Any ideas? Sorry to repost, but there was nothing but silence<br>
>> the first time.<br>
>><br>
>> On 09/30/2013 04:04 PM, Novosielski, Ryan wrote:<br>
>>> Hi all,<br>
>>><br>
>>> I was hoping you might be able to help me with a problem with<br>
>>> showgraph.cgi. It works, but lately it's been taking an<br>
>>> inordinate amount of time to complete. I did a truss on the<br>
>>> process when it runs, and it looks like what it's doing is<br>
>>> opening an endless list of fonts:<br>
>>><br>
>>> stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",<br>
>>><br>
>>><br>
0xFFBF6F28) = 0<br>
>>> open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiBold.ttf",<br>
>>><br>
>>><br>
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0 fstat(7,<br>
>>> 0xFFBF6D60)                         = 0 mmap(0x00000000, 317896, PROT_READ,<br>
>>> MAP_PRIVATE, 7, 0) = 0xFE170000 close(7)                                    = 0<br>
>>> munmap(0xFE170000, 317896)                  = 0<br>
>>> stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",<br>
>>><br>
>>><br>
0xFFBF6F28) = 0<br>
>>> open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansDemiOblique.ttf",<br>
>>><br>
>>><br>
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0 fstat(7,<br>
>>> 0xFFBF6D60)                         = 0 mmap(0x00000000, 91352, PROT_READ,<br>
>>> MAP_PRIVATE, 7, 0) = 0xFE1A0000 close(7)                                    = 0<br>
>>> munmap(0xFE1A0000, 91352)                   = 0<br>
>>> stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",<br>
>>><br>
>>><br>
0xFFBF6F28) = 0<br>
>>> open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansOblique.ttf",<br>
>>><br>
>>><br>
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0 fstat(7,<br>
>>> 0xFFBF6D60)                         = 0 mmap(0x00000000, 253724, PROT_READ,<br>
>>> MAP_PRIVATE, 7, 0) = 0xFE180000 close(7)                                    = 0<br>
>>> munmap(0xFE180000, 253724)                  = 0<br>
>>> stat("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",<br>
>>><br>
>>><br>
0xFFBF6F28) = 0<br>
>>> open("/usr/openwin/lib/X11/fonts/TrueType/LucidaSansRegular.ttf",<br>
>>><br>
>>><br>
O_RDONLY) = 7 fcntl(7, F_SETFD, 0x00000001)                     = 0 fstat(7,<br>
>>> 0xFFBF6D60)                         = 0 mmap(0x00000000, 486132, PROT_READ,<br>
>>> MAP_PRIVATE, 7, 0) = 0xFE140000 close(7)                                    = 0<br>
>>> munmap(0xFE140000, 486132)                  = 0<br>
>>><br>
>>> ...and so on. Any idea why this might have started happening<br>
>>> and what I can do about it? The server OS is Solaris 10<br>
>>> (probably relatively recently upgraded from S10u10 to S10u11.<br>
>>> The graph gets created immediately at the end of these font<br>
>>> openings.<br>
>><br>
>> - --<br>
><br>
> Unfortunately, I'm not especially familiar with Solaris any more...<br>
> My suspicion would be that the underlying rrdtool access is doing<br>
> this? Is truss equivalent to running strace with "-f" in follow<br>
> mode? AFAIK showgraph.cgi itself wouldn't have any reason to muck<br>
> directly with the font files...<br>
<br>
I suspect it's at least related to rrdtool, but when I do -f (it's the<br>
same as for strace), it is all the showgraph.cgi process ID doing the<br>
work.<br>
<br>
- --<br>
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*<br>
 || \\UTGERS      |---------------------*O*---------------------<br>
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer<br>
 || \\ and Health | <a href="mailto:novosirj@rutgers.edu">novosirj@rutgers.edu</a> - <a href="tel:973%2F972.0922" value="+19739720922">973/972.0922</a> (2x0922)<br>
 ||  \\  Sciences | OIT/EI-Academic Svcs. - ADMC 450, Newark<br>
      `'<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (GNU/Linux)<br>
Comment: Using GnuPG with Thunderbird - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
iEYEARECAAYFAlJPD74ACgkQmb+gadEcsb4HWwCfZ+sWiDI5rsjpkN7vPEL/glfM<br>
sZkAoKZ0Ba5lEvAbGZklUhtsG4at42wM<br>
=XHIp<br>
-----END PGP SIGNATURE-----<br>
<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>
</blockquote></div>