Menu

libnss opening too many connections

Help
Esoteric
2006-10-04
2013-04-17
  • Esoteric

    Esoteric - 2006-10-04

    is there a way to keep libnss from opening so many sql connections to the database? it is opening like 20-30+ for no reason that I can see. Thanks.

     
    • Ben Goodwin

      Ben Goodwin - 2006-10-05

      Due to the way libnss-mysql and most other NSS modules is constructed, each program that needes to access user information will require a connection to the MySQL server.  Apache, ssh, cron, etc., will all open connections.  You can limit how long these stick around for by adjusting the MySQL server's wait_timeout option.

      HTH,

         -=| Ben

       
    • Esoteric

      Esoteric - 2006-10-05

      Thanks for the quick reply.

      That makes sense to me. I will take a look at the timeout setting.

       
    • Esoteric

      Esoteric - 2006-10-22

      is there no way to limit the total of connections it opens, cause I am on the only person who ssh's into the system, and any system users are still in the passwd file, but for some reason, sometimes it will all of a sudden open up 60+ connections now.

      Thanks.

       

Log in to post a comment.