|
Joined: Dec 2005
Posts: 122
member
|
member
Joined: Dec 2005
Posts: 122 |
is there any particular advantage in enabling persistent connections? are there any known issues in enabling it?
|
|
|
|
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
|
Pooh-Bah
Joined: Jul 2006
Posts: 2,143 |
the advantage is that apache doesn't have to start a new connection with every page view. apache can spawn a new child if needed, connect to the database, and stay connected until the server is restarted.
the disadvantages can be great however, if you are not able to balance the number of apache children and connections allowed in your MySQL setup. get them out of balance and you'll likely get a ton of MySQL max connection errors or out of memory errors.
|
|
|
|
Joined: Dec 2005
Posts: 122
member
|
member
Joined: Dec 2005
Posts: 122 |
thanks for that ... i think i'll leave it off for the time being!
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
thanks for that ... i think i'll leave it off for the time being! I would, specifically if you have more than just your site on the server...
|
|
|
|
Joined: Dec 2005
Posts: 122
member
|
member
Joined: Dec 2005
Posts: 122 |
hmmm ... i do in fact have multiple domains on my VPS. is this what you mean? five of these domains use relatively simple mysql applications. so you think there are definitely no down sides, in the case of ubbthreads?
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
I would always recommend not using them... Unless you have the memory on the server to allow for a large amount of users on at once (I'm talking a lot, several hundred, not including guest/bots)...
|
|
|
|
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
|
Pooh-Bah
Joined: Jul 2006
Posts: 2,143 |
It's not memory that is the issue, it's balancing your apache and MySQL. Unless you have the time/knowledge/resource don't turn it on.
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (1 invisible),
831
guests, and
191
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|