books
Free Books / Computers / Practical mod_perl /

previous page: 21.7.3. Detecting Hanging Processes
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: 21.7.4.1. Using the Perl trace

21.7.4. Determination of the Reason




Description

This section is from the "Practical mod_perl" book, by Stas Bekman and Eric Cholet. Also available from Amazon: Practical mod_perl

Given the PID, there are three ways to find out where the server is hanging:

  • Deploy the Perl calls-tracing mechanism. This will allow you to spot the location of the Perl code that triggers the problem.

  • Use a system calls-tracing utility such as strace. This approach reveals low-level details about the misbehavior of some part of the system.

  • Use an interactive debugger such as gdb. When the process is stuck and you don't know what it was doing just before it got stuck, using gdb you can attach to this process and print its call stack, to reveal where the last call originated. Just like with strace, you see the C function call trace, not the Perl high-level function calls.

 

Continue to:

  • prev: 21.7.3. Detecting Hanging Processes
  • Table of Contents
  • next: 21.7.4.1. Using the Perl trace

Books by Stas Bekman:















TOP
previous page: 21.7.3. Detecting Hanging Processes
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: 21.7.4.1. Using the Perl trace

Topics

  • Animals
  • Architecture
  • Arts
  • Business
  • Computers
  • Crafts
  • Fairy Tales
  • Finance
  • Flora and Plants
  • Cooking
  • Gardening
  • Health and Healing
  • History
  • Home Improvements
  • Languages
  • New Age
  • Novels
  • Real Estate
  • Reference
  • Religion
  • Science
  • Society
  • Sports
  • Travel
  • Outdoors


Search

My Books

Headaches Begone! A Systemic Approach To Healing Your Headaches
Don't Let Your Bike Seat Ruin Your Sex Life Book

Discover

  • Answers FAQ

[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007-2021 StasoSphere.com