Jump to content

Archived

This topic is now archived and is closed to further replies.

bob_dole

php and connections

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.