IIS - DLHOST.EXE 100% utilisation?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jo Becaus

    IIS - DLHOST.EXE 100% utilisation?


    Hi,

    I have ASP site running, which has several include files.

    This is include file, most used in the HTML files.

    <%
    Public objDict
    Dim ObjFSO, objFolder
    Const Folder = "C:\WWW\MRTG\Co nfiguration\Dev ices\"
    Set ObjDict = CreateObject("S cripting.Dictio nary")
    Set ObjFSO = CreateObject("S cripting.FileSy stemObject")
    Call ShowSubFolders (objFSO.GetFold er(Folder))
    Function ShowSubFolders( Folder)
    Count = 0
    For Each Subfolder in Folder.SubFolde rs
    MyFoldArray = Split(Subfolder .path,"\",-1,1)
    Count = Count + 1
    objDict.Add Count, MyFoldArray(5)
    Next
    Set objFSO = Nothing
    'Set objDict = Nothing
    Set FolderFile = Nothing
    End Function
    %>

    Within the ASP file I use the objDict as reference for my needed values,
    as the code above is used several times can it cause the DLLHOST.EXE to
    stall?
    TaskMgr shows 100% CPU usage, I know it is caching all VBscript
    request/actions....

    Can I prevent it or otherway to get my values past to my webpages
    without using a database?

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • ASP.Confused

    #2
    Re: IIS - DLHOST.EXE 100% utilisation?

    How many folders/files do you have in the
    "C:\WWW\MRTG\Co nfiguration\Dev ices\" folder? If it's above 1000 or 2000,
    it will take a while. I ended up having to move to a database to make
    things quicker (since Windows looses it's mind when it trys to handle more
    than 1000 files ;) j/k.)

    Try adding a "response.w rite Subfolder.path" in your For loop, and a
    "response.buffe r=false" to the top of your code. this will help you with
    debugging.

    "Jo Becaus" <becausjp@msn.c om> wrote in message
    news:OEcCYExcEH A.3480@TK2MSFTN GP11.phx.gbl...[color=blue]
    >
    > Hi,
    >
    > I have ASP site running, which has several include files.
    >
    > This is include file, most used in the HTML files.
    >
    > <%
    > Public objDict
    > Dim ObjFSO, objFolder
    > Const Folder = "C:\WWW\MRTG\Co nfiguration\Dev ices\"
    > Set ObjDict = CreateObject("S cripting.Dictio nary")
    > Set ObjFSO = CreateObject("S cripting.FileSy stemObject")
    > Call ShowSubFolders (objFSO.GetFold er(Folder))
    > Function ShowSubFolders( Folder)
    > Count = 0
    > For Each Subfolder in Folder.SubFolde rs
    > MyFoldArray = Split(Subfolder .path,"\",-1,1)
    > Count = Count + 1
    > objDict.Add Count, MyFoldArray(5)
    > Next
    > Set objFSO = Nothing
    > 'Set objDict = Nothing
    > Set FolderFile = Nothing
    > End Function
    > %>
    >
    > Within the ASP file I use the objDict as reference for my needed values,
    > as the code above is used several times can it cause the DLLHOST.EXE to
    > stall?
    > TaskMgr shows 100% CPU usage, I know it is caching all VBscript
    > request/actions....
    >
    > Can I prevent it or otherway to get my values past to my webpages
    > without using a database?
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it![/color]


    Comment

    • Aaron [SQL Server MVP]

      #3
      Re: IIS - DLHOST.EXE 100% utilisation?



      --
      Please contact this domain's administrator as their DNS Made Easy services have expired.

      (Reverse address to reply.)




      "Jo Becaus" <becausjp@msn.c om> wrote in message
      news:OEcCYExcEH A.3480@TK2MSFTN GP11.phx.gbl...[color=blue]
      >
      > Hi,
      >
      > I have ASP site running, which has several include files.
      >
      > This is include file, most used in the HTML files.
      >
      > <%
      > Public objDict
      > Dim ObjFSO, objFolder
      > Const Folder = "C:\WWW\MRTG\Co nfiguration\Dev ices\"
      > Set ObjDict = CreateObject("S cripting.Dictio nary")
      > Set ObjFSO = CreateObject("S cripting.FileSy stemObject")
      > Call ShowSubFolders (objFSO.GetFold er(Folder))
      > Function ShowSubFolders( Folder)
      > Count = 0
      > For Each Subfolder in Folder.SubFolde rs
      > MyFoldArray = Split(Subfolder .path,"\",-1,1)
      > Count = Count + 1
      > objDict.Add Count, MyFoldArray(5)
      > Next
      > Set objFSO = Nothing
      > 'Set objDict = Nothing
      > Set FolderFile = Nothing
      > End Function
      > %>
      >
      > Within the ASP file I use the objDict as reference for my needed values,
      > as the code above is used several times can it cause the DLLHOST.EXE to
      > stall?
      > TaskMgr shows 100% CPU usage, I know it is caching all VBscript
      > request/actions....
      >
      > Can I prevent it or otherway to get my values past to my webpages
      > without using a database?
      >
      > *** Sent via Developersdex http://www.developersdex.com ***
      > Don't just participate in USENET...get rewarded for it![/color]


      Comment

      • Jo Becaus

        #4
        Re: IIS - DLHOST.EXE 100% utilisation?


        I tried running the include file straight ahead with Response write and
        I get the values.

        Once I put it in HTML as include file it hangs?

        I did same thing with my first page and works fine with the include
        file.

        From that page I open new page which runs same include code that past
        data to objDict then it hangs?

        In the first page on the end it has <%Set ObjDict = Nothing%>

        This should clear the dictionary.

        Is it just the fact I am using the include file twice?




        *** Sent via Developersdex http://www.developersdex.com ***
        Don't just participate in USENET...get rewarded for it!

        Comment

        • ASP.Confused

          #5
          Re: IIS - DLHOST.EXE 100% utilisation?

          If you're including the file twice, then you will have duplicate function
          definitions within your code, which is probably what is happening to you.
          Plus, since the FileSystemObjec t is natively slow, your code will go
          increasingly slower for every time that it is included.



          "Jo Becaus" <becausjp@msn.c om> wrote in message
          news:eNPr1X9cEH A.1672@TK2MSFTN GP12.phx.gbl...[color=blue]
          >
          > I tried running the include file straight ahead with Response write and
          > I get the values.
          >
          > Once I put it in HTML as include file it hangs?
          >
          > I did same thing with my first page and works fine with the include
          > file.
          >
          > From that page I open new page which runs same include code that past
          > data to objDict then it hangs?
          >
          > In the first page on the end it has <%Set ObjDict = Nothing%>
          >
          > This should clear the dictionary.
          >
          > Is it just the fact I am using the include file twice?
          >
          >
          >
          >
          > *** Sent via Developersdex http://www.developersdex.com ***
          > Don't just participate in USENET...get rewarded for it![/color]


          Comment

          Working...