bob_dole Posted September 28, 2006 Share Posted September 28, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/22419-php-and-connections/ Share on other sites More sharing options...
Ninjakreborn Posted September 28, 2006 Share Posted September 28, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/22419-php-and-connections/#findComment-100538 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.