Re: [Catalyst] how do i truss an catalyst FCGI worker process?

2008-11-13 Thread Matt S Trout
On Wed, Oct 29, 2008 at 02:50:17PM +0300, Oleg Pronin wrote:
 Hi.
 
 I need to inspect my fcgi process, so i tried to do
 truss -p fcgi_worker_pid
 But fcgi process immediately exits when truss just starts.
 
 Does anyone know why does it happen and how to get it to work?

truss a separate copy fired up without -n against the same socket - then
you won't have the proc manager involved and the process won't exit. Since
it'll be sharing the socket with the rest of the fcgi procs it'll get its share 
of requests just the same, so the data should be just as valid.

-- 
  Matt S Trout   Need help with your Catalyst or DBIx::Class project?
   Technical Directorhttp://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/http://www.shadowcat.co.uk/servers/

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] how do i truss an catalyst FCGI worker process?

2008-10-29 Thread Vladimir Timofeev
Hi

On Wed, Oct 29, 2008 at 14:50, Oleg Pronin [EMAIL PROTECTED] wrote:
 Hi.

 I need to inspect my fcgi process, so i tried to do
 truss -p fcgi_worker_pid
 But fcgi process immediately exits when truss just starts.

 Does anyone know why does it happen and how to get it to work?

According to ptrace(2) used by truss:

  For the duration of the tracing session, the traced process will be
  ``re-parented'', with its parent process ID (and resulting behavior)
  changed to the tracing process.

And child exit after processing first request, because it's thinking
that manager die
(see FCGI::ProcManager pm_post_dispatch sub).

May be, for only debugging reason, you can temprorary off this check?


 Please anybody, try to do
 truss -p fcgi_worker_pid
 on standalone (not in apache) fcgi catalyst server.

Of course this work ;-)


 Thanks.

 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/



___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/