<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear all,<br>
    <br>
    i can believe that there is no monitoring tool for
    catalyst-application in production.<br>
    how do you debug/monitor your catalyst applications, if suddenly
    your perl/fcgi process are becoming bigger and bigger or an APP is
    no responsing for some time ?<br>
    one need to fine out, which request with which parameters burdens
    your apps... <br>
    of course the catalyst-logs (in debug-mode) gives you all
    information about a request, but its kind of hard to read/grep
    through tons of production logs ...<br>
    <br>
    i guess there are some middleware plugins for starman or PSGI, but
    the ones i found are specially not ment to be used in a production
    environemnt...<br>
    any ideas ?<br>
    <br>
    cheers,<br>
    bernhard<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 05.05.14 12:49, Robert Brown wrote:<br>
    </div>
    <blockquote cite="mid:53676CCD.3070800@intelcompute.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Are you using
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <a moz-do-not-send="true"
        href="https://metacpan.org/pod/Catalyst::Log">https://metacpan.org/pod/Catalyst::Log</a>
      for your own application-level logging?<br>
      <br>
      This would be step one.<br>
      <br>
      For performance testing, memory leaks, etc. I'm sure there's
      plenty of options on CPAN?<br>
      <br>
      <br>
      <br>
      <div class="moz-cite-prefix">On 05/05/2014 11:41 AM, Bernhard
        Bauch wrote:<br>
      </div>
      <blockquote cite="mid:53676ADB.8000307@zsi.at" type="cite">
        <pre wrap="">Dear all,

I'd need some help with debugging and monitoring an apache2+fastcgi
production environment ...
... i did not find any information about that online ?! :(

what i would need is logs of the fcgi processes that show:
* the request IP, url and paramters
* how long it took to answer a request
* cpu+mem usage of each process

putting a catalyst application into Debug-mode is one option;
but thats not clever for a production environment ... and its pretty
hard to scan through all that information.

any ideas ?


the story behind....

We are running a bunch of Catalyst applications in an Apache2 and
FastCGI production environemnt.
Since a few days it happend 2 times, that one of these applications ran
really "hot";
the fcgi processes of that application used 4times more ram and constant
high CPU-usage.
the result was, that apache spanned lots of processes trying to answer
all requests;
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <blockquote type="cite">
              <pre wrap="">so at the end *all* requests to apache2 returned a "timeout" ..
</pre>
            </blockquote>
          </blockquote>
        </blockquote>
        <pre wrap="">i tried to find out what the problem was; grubbed through lots of apache
access logs without any reasonable result :(

i'd be thankful for any hints how a catalyst+apache+fastcgi environment
can be monitored ..

thanks alot,
bernhard


</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
List: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a>
Listinfo: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a>
Searchable archive: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a>
Dev site: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</a>
</pre>
      </blockquote>
      <br>
      !DSPAM:53676cf3302503345520506!
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
List: <a class="moz-txt-link-abbreviated" href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a>
Listinfo: <a class="moz-txt-link-freetext" href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a>
Searchable archive: <a class="moz-txt-link-freetext" href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a>
Dev site: <a class="moz-txt-link-freetext" href="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</a>


!DSPAM:53676cf3302503345520506!
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Bernhard Bauch, Webdevelopment
ZSI - Zentrum f&uuml;r soziale Innovation
<a class="moz-txt-link-abbreviated" href="mailto:bauch@zsi.at">bauch@zsi.at</a>
Skype: berni-zsi</pre>
  </body>
</html>