Google Feed code leaking SQL connections

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Google Feed code leaking SQL connections

Post by AbleMods » Fri Apr 04, 2014 6:12 am

jguengerich wrote:The problem I was having was that more and more connections were being opened and never getting used or closed.
Understood. Just thought I'd share with you in case you see your site running high on connections. So far I'm seeing 60-80 open connections on production sites we've looked at thus far.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

jguengerich
Commodore (COMO)
Commodore (COMO)
Posts: 436
Joined: Tue May 07, 2013 1:59 pm

Re: Google Feed code leaking SQL connections

Post by jguengerich » Fri Apr 04, 2014 6:23 am

Joe,

OK, thanks. Now you've got me curious if that is what other production sites are seeing :). Of course, it depends on how busy the site is, server setup, etc., so I guess it is probably more important that the number remain in the same range for a given site rather than how it compares to other sites.

As I mentioned before, my site will be low-usage for quite a while, so I probably won't see that many connections.
Jay

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Google Feed code leaking SQL connections

Post by AbleMods » Fri Apr 04, 2014 6:25 am

You started it with your fancy sp_who2 query :)
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

jguengerich
Commodore (COMO)
Commodore (COMO)
Posts: 436
Joined: Tue May 07, 2013 1:59 pm

Re: Google Feed code leaking SQL connections

Post by jguengerich » Fri Apr 04, 2014 6:52 am

It is debugging situations like this that remind me what an amazing resource the Internet is. A few searches and a few minutes of reading turned up the error message and cause, that stored procedure and how to use it, and how to filter the results returned by a stored procedure using a table variable.
Jay

Post Reply