Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 07:30 AM
Graham Mattingley
Guest
 
Posts: n/a
Default 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("scripting.filesystemobject")
set act = fso.opentextfile(server.mappath ("/counters/year_count-"&
year(date())&".txt"))
countery = clng(act.readline)
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=rscateinfo("name").Value
leveltopurl=rscateinfo("link_url").Value

rscateinfo.MoveNext
loop
rscateinfo.close
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



  #2  
Old July 19th, 2005, 07:30 AM
vivek
Guest
 
Posts: n/a
Default Re: Close RS... "DLLHOST.EXE"

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@technocom.com> wrote in message
news:bh1138$glt$1$8302bc10@news.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("scripting.filesystemobject")
> set act = fso.opentextfile(server.mappath ("/counters/year_count-"&
> year(date())&".txt"))
> countery = clng(act.readline)
> 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=rscateinfo("name").Value
> leveltopurl=rscateinfo("link_url").Value
>
> rscateinfo.MoveNext
> loop
> rscateinfo.close
> 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]


  #3  
Old July 19th, 2005, 07:30 AM
Bob Barrows
Guest
 
Posts: n/a
Default Re: Close RS... "DLLHOST.EXE"

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("scripting.filesystemobject")
> set act = fso.opentextfile(server.mappath ("/counters/year_count-"&
> year(date())&".txt"))
> countery = clng(act.readline)
> 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=rscateinfo("name").Value
> leveltopurl=rscateinfo("link_url").Value
>
> rscateinfo.MoveNext
> loop
> rscateinfo.close
> 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]


  #4  
Old July 19th, 2005, 07:30 AM
Graham Mattingley
Guest
 
Posts: n/a
Default Re: Close RS... "DLLHOST.EXE"

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@yahoo.com> wrote in message
news:e5SATxeXDHA.1620@TK2MSFTNGP12.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@technocom.com> wrote in message
> news:bh1138$glt$1$8302bc10@news.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("scripting.filesystemobject")
> > set act = fso.opentextfile(server.mappath ("/counters/year_count-"&
> > year(date())&".txt"))
> > countery = clng(act.readline)
> > 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=rscateinfo("name").Value
> > leveltopurl=rscateinfo("link_url").Value
> >
> > rscateinfo.MoveNext
> > loop
> > rscateinfo.close
> > 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]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles