Close RS... "DLLHOST.EXE"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Graham Mattingley

    Close RS... "DLLHOST.EXE"

    Hello Group,

    I have had an issue on my server for a long time and what ever I have tryed
    I just cant fix it.

    I run mySQL and IIS, and my server will crash every few days because a file
    on the server called DLLHOST.EXE has taken all the memory, and the mySQL
    goes off line.

    I close all of the record sets, and all of the Text files I read, as below

    ========
    set fso = createobject("s cripting.filesy stemobject")
    set act = fso.opentextfil e(server.mappat h ("/counters/year_count-"&
    year(date())&". txt"))
    countery = clng(act.readli ne)
    countery = countery + 1
    act.close
    fso.close
    ========
    ============
    strQuery = "SELECT * FROM category WHERE CATEGORY_ID='"& top_id&"';"
    Set rscateinfo = adoConn.Execute (strQuery)

    Do While Not rscateinfo.EOF

    leveltop=rscate info("name").Va lue
    leveltopurl=rsc ateinfo("link_u rl").Value

    rscateinfo.Move Next
    loop
    rscateinfo.clos e
    set rscateinfo = Nothing
    =============

    each page I open the DLLHOST.EXE will will grow anything upto 150K per
    page.. in the SQL example above the table for category has 35 columns, would
    it make any differnace to memory if I selected the fields rather than all of
    the fields from the in SELECT * FROM

    The only solution I can come up with now is to buy more memory, but I am
    sure I must be doing someting wrong.

    Do I have to close the varables I have opened to stop this memory leek ????

    Kind Regards

    Graham Mattingley



  • vivek

    #2
    Re: Close RS... "DLLHOST.E XE"

    Make sure you close all the objects you are opening, dllhost.exe is nothing
    but the one which actually runs your asp. so there should be something wrong
    in the asp code thats causing load on that file.

    "Graham Mattingley" <graham@technoc om.com> wrote in message
    news:bh1138$glt $1$8302bc10@new s.demon.co.uk.. .[color=blue]
    > Hello Group,
    >
    > I have had an issue on my server for a long time and what ever I have[/color]
    tryed[color=blue]
    > I just cant fix it.
    >
    > I run mySQL and IIS, and my server will crash every few days because a[/color]
    file[color=blue]
    > on the server called DLLHOST.EXE has taken all the memory, and the mySQL
    > goes off line.
    >
    > I close all of the record sets, and all of the Text files I read, as below
    >
    > ========
    > set fso = createobject("s cripting.filesy stemobject")
    > set act = fso.opentextfil e(server.mappat h ("/counters/year_count-"&
    > year(date())&". txt"))
    > countery = clng(act.readli ne)
    > countery = countery + 1
    > act.close
    > fso.close
    > ========
    > ============
    > strQuery = "SELECT * FROM category WHERE CATEGORY_ID='"& top_id&"';"
    > Set rscateinfo = adoConn.Execute (strQuery)
    >
    > Do While Not rscateinfo.EOF
    >
    > leveltop=rscate info("name").Va lue
    > leveltopurl=rsc ateinfo("link_u rl").Value
    >
    > rscateinfo.Move Next
    > loop
    > rscateinfo.clos e
    > set rscateinfo = Nothing
    > =============
    >
    > each page I open the DLLHOST.EXE will will grow anything upto 150K per
    > page.. in the SQL example above the table for category has 35 columns,[/color]
    would[color=blue]
    > it make any differnace to memory if I selected the fields rather than all[/color]
    of[color=blue]
    > the fields from the in SELECT * FROM
    >
    > The only solution I can come up with now is to buy more memory, but I am
    > sure I must be doing someting wrong.
    >
    > Do I have to close the varables I have opened to stop this memory leek[/color]
    ????[color=blue]
    >
    > Kind Regards
    >
    > Graham Mattingley
    >
    >
    >[/color]


    Comment

    • Bob Barrows

      #3
      Re: Close RS... &quot;DLLHOST.E XE&quot;

      I don't see any code to close and destroy your connections. That needs to be
      done as well.

      Bob Barrows
      Graham Mattingley wrote:[color=blue]
      > Hello Group,
      >
      > I have had an issue on my server for a long time and what ever I have
      > tryed I just cant fix it.
      >
      > I run mySQL and IIS, and my server will crash every few days because
      > a file on the server called DLLHOST.EXE has taken all the memory, and
      > the mySQL goes off line.
      >
      > I close all of the record sets, and all of the Text files I read, as
      > below
      >
      > ========
      > set fso = createobject("s cripting.filesy stemobject")
      > set act = fso.opentextfil e(server.mappat h ("/counters/year_count-"&
      > year(date())&". txt"))
      > countery = clng(act.readli ne)
      > countery = countery + 1
      > act.close
      > fso.close
      > ========
      > ============
      > strQuery = "SELECT * FROM category WHERE CATEGORY_ID='"& top_id&"';"
      > Set rscateinfo = adoConn.Execute (strQuery)
      >
      > Do While Not rscateinfo.EOF
      >
      > leveltop=rscate info("name").Va lue
      > leveltopurl=rsc ateinfo("link_u rl").Value
      >
      > rscateinfo.Move Next
      > loop
      > rscateinfo.clos e
      > set rscateinfo = Nothing
      > =============
      >
      > each page I open the DLLHOST.EXE will will grow anything upto 150K per
      > page.. in the SQL example above the table for category has 35
      > columns, would it make any differnace to memory if I selected the
      > fields rather than all of the fields from the in SELECT * FROM
      >
      > The only solution I can come up with now is to buy more memory, but I
      > am sure I must be doing someting wrong.
      >
      > Do I have to close the varables I have opened to stop this memory
      > leek ????
      >
      > Kind Regards
      >
      > Graham Mattingley[/color]


      Comment

      • Graham Mattingley

        #4
        Re: Close RS... &quot;DLLHOST.E XE&quot;

        Thanks for that reply.....

        I have a few 100 ASP pages on my server, is the DLLHOST.EXE file supposed to
        grow in size at all, I have closed all of the objects and connections, and
        when I refresh the same page 10 times, the file will grow by a 125K per
        refresh

        is the ASP complied page cached in the DLLHOST.EXE file ??

        Kind Regards

        Graham Mattingley




        "vivek" <vivsandela@yah oo.com> wrote in message
        news:e5SATxeXDH A.1620@TK2MSFTN GP12.phx.gbl...[color=blue]
        > Make sure you close all the objects you are opening, dllhost.exe is[/color]
        nothing[color=blue]
        > but the one which actually runs your asp. so there should be something[/color]
        wrong[color=blue]
        > in the asp code thats causing load on that file.
        >
        > "Graham Mattingley" <graham@technoc om.com> wrote in message
        > news:bh1138$glt $1$8302bc10@new s.demon.co.uk.. .[color=green]
        > > Hello Group,
        > >
        > > I have had an issue on my server for a long time and what ever I have[/color]
        > tryed[color=green]
        > > I just cant fix it.
        > >
        > > I run mySQL and IIS, and my server will crash every few days because a[/color]
        > file[color=green]
        > > on the server called DLLHOST.EXE has taken all the memory, and the mySQL
        > > goes off line.
        > >
        > > I close all of the record sets, and all of the Text files I read, as[/color][/color]
        below[color=blue][color=green]
        > >
        > > ========
        > > set fso = createobject("s cripting.filesy stemobject")
        > > set act = fso.opentextfil e(server.mappat h ("/counters/year_count-"&
        > > year(date())&". txt"))
        > > countery = clng(act.readli ne)
        > > countery = countery + 1
        > > act.close
        > > fso.close
        > > ========
        > > ============
        > > strQuery = "SELECT * FROM category WHERE CATEGORY_ID='"& top_id&"';"
        > > Set rscateinfo = adoConn.Execute (strQuery)
        > >
        > > Do While Not rscateinfo.EOF
        > >
        > > leveltop=rscate info("name").Va lue
        > > leveltopurl=rsc ateinfo("link_u rl").Value
        > >
        > > rscateinfo.Move Next
        > > loop
        > > rscateinfo.clos e
        > > set rscateinfo = Nothing
        > > =============
        > >
        > > each page I open the DLLHOST.EXE will will grow anything upto 150K per
        > > page.. in the SQL example above the table for category has 35 columns,[/color]
        > would[color=green]
        > > it make any differnace to memory if I selected the fields rather than[/color][/color]
        all[color=blue]
        > of[color=green]
        > > the fields from the in SELECT * FROM
        > >
        > > The only solution I can come up with now is to buy more memory, but I am
        > > sure I must be doing someting wrong.
        > >
        > > Do I have to close the varables I have opened to stop this memory leek[/color]
        > ????[color=green]
        > >
        > > Kind Regards
        > >
        > > Graham Mattingley
        > >
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...