Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Fwd: Connection Pool crashing problems?: msg#00212

db.tds.freetds

Subject: Fwd: Connection Pool crashing problems?

Forgot to cc list.


---------- Forwarded message ----------
From: Brian Bruns <brian.bruns@xxxxxxxxx>
Date: Sun, 12 Dec 2004 10:30:13 -0500
Subject: Re: [freetds] Connection Pool crashing problems?
To: craigs <s.craig@xxxxxxxxxxxxx>


I just applied a one liner (and your patch as well) to CVS. Please
give it a try and let me know if it works. As a bonus, this should
make it much easier to add TDS7/8 support to the pool.

Cheers,

Brian



On Fri, 10 Dec 2004 11:24:59 +0000, craigs <s.craig@xxxxxxxxxxxxx> wrote:
> thats one hell of a film! thanks for looking into it, next year we have
> predicted that we will average over 3000 clients hitting the pool every
> hour so it would be good if we could track it down sooner rather than later.
>
>
>
> Brian Bruns wrote:
>
> >The good: I was able to get it to crash on the same line.
> >The bad: Looks like a buffer overflow
> >The ugly: This means it originated elsewhere in the code and is
> >therefore hard to track down.
> >
> >Still plugging away at it, i'll let you know what i find.
> >
> >On Fri, 10 Dec 2004 10:30:24 +0000, craigs <s.craig@xxxxxxxxxxxxx> wrote:
> >
> >
> >> here is a detailed list of what we are running! we have a suse 9.2 linux
> >>server, using tds version 4.2 for connection pooling, snapshot
> >>freetds-0.64.dev.20041207, client programs written in C using db-lib. the
> >>pool goes down at least a few times every hour, we are using 3 max
> >>connections and receiving approx 1200 clients an hour and each client does
> >>at least 2 querys and an insert with few doing 1 or 2 more.
> >>
> >> we have written a process watcher that watchs the connection pool and
> >>restarts it if it crashes, before we added a patch it would take the
> >>connection pool nearly a minute to come back up, it wouldnt release the
> >>socket, or the socket had to wait to time out, now the pool comes back up
> >>again within a few seconds.
> >>
> >> Brian Bruns wrote:
> >>
> >>
> >> Craig, Wanna send along the patch for that? I'll merge it. I've been
> >>planning on spending some time on this, and may get around to it this
> >>weekend. What is your server/version? I'll try to do some load testing and
> >>see if I can reproduce your error locally, and failing that scan the code
> >>for something. Brian On Thu, 09 Dec 2004 09:17:32 +0000, craigs
> >><s.craig@xxxxxxxxxxxxx> wrote:
> >>
> >>
> >> Frediano Ziglio wrote:
> >> Il mer, 2004-12-08 alle 13:52, craigs ha scritto:
> >> Brian Bruns wrote: Program received signal SIGSEGV, Segmentation fault.
> >>0x0804b5b0 in pool_process_users (pool=0x804d008, fds=0xbfffdbd0) at
> >>user.c:131 131 if (FD_ISSET(puser->tds->s, fds)) { is this any help? Shaun.
> >>Yes, probably puser->tds == NULL or puser->tds->s < 0. In other words
> >>connection closed freddy77 Any ideas why the connection is closing, would it
> >>be on my C clients side or maybe something to do with ms sql. when it does
> >>crash it takes nearly a minute to come up again which can cause problems for
> >>ourselfs, we have added a line in pool_main_loop which releases the socket
> >>as soon it crashes, our up time again has been greatly reduced because of
> >>this line, would this be of any use to anyone?
> >> _______________________________________________ FreeTDS mailing list
> >>FreeTDS@xxxxxxxxxxxxxxxxx http://lists.ibiblio.org/mailman/listinfo/freetds
> >>_______________________________________________ FreeTDS mailing list
> >>FreeTDS@xxxxxxxxxxxxxxxxx http://lists.ibiblio.org/mailman/listinfo/freetds
> >>_______________________________________________ FreeTDS mailing list
> >>FreeTDS@xxxxxxxxxxxxxxxxx http://lists.ibiblio.org/mailman/listinfo/freetds
> >>
> >>
> >>
>
>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe