Originally posted by administrator
View Post
"Too many db connections" is a symptom, not a problem. By working out why that is happening, a variety of solutions will be discovered, most of which will warrant implementation.
A database is a living, evolving thing. It changes shape with time. It moves. Some bits get old and stagnant, young fresh growth occurs in unexpected places, often all over the place. It needs pruning, repotting, spraying and lots of TLC. Hacking off 20% of the trunk will not make it produce better apples.
Deleting TPD comes across as "we need to be seen to do something, so we'll do something to amuse the baying public then it's not our fault it if doesn't work". I think we can do better than that.
Without even looking at the box nor the detail of some of the suggestions already made, there is a list of likely areas of investigation that could yield huge performance improvements.
How is the server(s) configured? Is the o/s out of the box or tweaked for the role it is serving?
Hardware spec: how old is the box? How much RAM is needed and how much is there? How much free disk space is left?
Is it disk I/O bound? There's loads of fun to be had here, plus this is where most of the expertise is. But do not be distracted by fear of having a non-conformant database with weird indexes and the like; that is probably totally unnecessary. How is the data spread across the disk(s) and is balancing required? How has it being growing and does it need to be reorganised (a 'database defrag' if you like)? Would another drive controller or a couple of huge, cheap, faster drives help?
It is CPU bound? If so, why? What is running? There isn't a pretty screensaver or SETI@Home running taking up 100% of a CPU is there? (Seen that on a £2m setup; a huge SUN box spending 25% of its life running a fireworks screen saver on the oper console, FFS).
Is it n/w I/O bound? Is there a bottleneck between the CPU & the LAN (ie network card)? The network card and the building's connection to the outside world (LAN contention, dodgy hubs, crap wiring)?
Does the overall configuration warrant review? Is it one £1,000 box that was purchased in 2002 or a carefully maintained quartet of mirrored and load balanced dedicated file servers / dedicated application servers?
Is the service outsourced? Would switching to a specialist hosting service turn it into a fixed monthly cost but with far better performance and no maintenance issues? Would switching from outsourced to a dedicated server provide better performance and remove complexity from maintenance?
That's all easy stuff and before we even get into looking at the specialist skills areas of precise applications on those boxes and how they are performing (cue NickFitz's very generous activity). And any of those things might be the cause why a database connection timeout could occur.
Just lopping off one very popular, albeit silly, thread from your service seems a drastic and ill-conceived approach. Three or four of your users will be ecstatic, many others will stomp off in disgust. But you will have seriously damaged the 'culture' that is here. And quite likely only made an improvement to the performance of the system by losing half of your most active users.
Anway. Can I be of any help? I am willing. You know how to PM me.

your apostrophe usage.




Comment