books
Free Books / Computers / Practical mod_perl /

previous page: 20.1.5.6. Apache:DBI does not work
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: 20.2. Improving Performance

20.1.5.7. Skipping connection cache during server startup




Description

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

Does your error_log look like this?

10169 Apache::DBI PerlChildInitHandler
10169 Apache::DBI skipping connection cache during server startup
Database handle destroyed without explicit disconnect at
/usr/lib/perl5/site_perl/5.6.1/Apache/DBI.pm line 29.

If so, you are trying to open a database connection in the parent httpd process. If you do, the children will each get a copy of this handle, causing clashes when the handle is used by two processes at the same time. Each child must have its own unique connection handle.

To avoid this problem, Apache::DBI checks whether it is called during server startup. If so, the module skips the connection cache and returns immediately without a database handle.

You must use the Apache::DBI->connect_on_init( ) method (see the next section) in the startup file to preopen a connection before the child processes are spawned.

 

Continue to:

  • prev: 20.1.5.6. Apache:DBI does not work
  • Table of Contents
  • next: 20.2. Improving Performance

Books by Stas Bekman:















TOP
previous page: 20.1.5.6. Apache:DBI does not work
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: 20.2. Improving Performance

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