Jump to content


php and connections

  • Please log in to reply
1 reply to this topic

#1 bob_dole

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 28 September 2006 - 09:01 PM

I am pretty sure this is a php session issue but not sure how to fix it.

We have been experiencing a lot of lag in one of our sites so I took a look at all the open ports and it looks like every time someone clicks to go to a new page on our site it opens up another connection. So we will have 100 open connections from one IP with 99% of them being in "Time Wait" status.  How do we fix this where it keeps the same connection or it immediately kills the old one when once it’s finished?

#2 Ninjakreborn

  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 28 September 2006 - 10:45 PM

If it is mysql, then simply close the connection at the bottom of each page that isn't using it anymore.  If it's session force it to destroy the session after the browser closes, put the garbage recycling to 50% or something.


Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users