OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: ArunKumar S (akumarOMNESYSINDIA.COM)
Date: Mon Feb 04 2002 - 23:08:09 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    How do u do the garbage collection on the recordsets u return ?

    ----- Original Message -----
    From: Pete Davis <pdavisQUETEL.COM>
    To: <DCOMDISCUSS.MICROSOFT.COM>
    Sent: Tuesday, February 05, 2002 7:31 AM
    Subject: Page Swapping

    We have a COM+ server with around 40 components. I would say there are
    roughly 6 or so that are used repeatedly.

    We find that, even on servers with plenty of memory (like 700mb more than
    the COM+ app uses), we get a lot of page faults. Sometimes so bad that it
    affects CPU performance.

    I'm really at a loss for what could be causing so many page faults. The
    entire COM+ app is only about a meg and a half, so the code shouldn't be
    paging. Sometimes we have the database on the same machine, other times not,
    either way, the page faults are high.

    I know this is vague, and I can't really explain the entire app and can't
    show the code, but can anyone give us some hints at what to look for?

    We did find some major memory leaks and the COM+ components were consuming a
    great deal of memory. Basically, we were leaking interfaces that we were
    returning from the components. We didn't want to pass the interfaces in
    doing an in/out, because we didn't need the extra overhead, so we
    implemented garbage collection, which happens every 2 minutes. This took
    care of about 90% of the leaks (we're still searching for the other 10%)

    This still hasn't fixed the problem.

    Could it have something to do with returning interfaces? Actually, what we
    return are ADO recordsets, which we garbage-collect every 2 minutes.

    Any help would be greaty appreciated.

    Pete

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM