Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Memory leakage in aspnet_wp ?

Memory leakage in aspnet_wp ?

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netcomsysadmin
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RickardB
    wrote on last edited by
    #1

    I have developed an application that shall server around 60 IE clients with data. Each client will automatically refresh itself ones per minute. On each refresh a couple of COM objects are used to retrieve the data necessary to construct the page. My problem is that the aspnet_wp process is using more and more memory, and eventually crasches after around 3 days with 30 clients. I know about the garbage collector in .NET so my question is, can .NET code still leak memory? Or is the memory leakages within the COM objects that I create in process? Thanks Rickard

    C 1 Reply Last reply
    0
    • R RickardB

      I have developed an application that shall server around 60 IE clients with data. Each client will automatically refresh itself ones per minute. On each refresh a couple of COM objects are used to retrieve the data necessary to construct the page. My problem is that the aspnet_wp process is using more and more memory, and eventually crasches after around 3 days with 30 clients. I know about the garbage collector in .NET so my question is, can .NET code still leak memory? Or is the memory leakages within the COM objects that I create in process? Thanks Rickard

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I've got $50 on your COM components. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

      R 1 Reply Last reply
      0
      • C Christian Graus

        I've got $50 on your COM components. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

        R Offline
        R Offline
        RickardB
        wrote on last edited by
        #3

        There is especially one COM component I use from within my managed code. This COM component in turns uses three OLE automation based COM components. From this component I pass a SAFE ARRAY of data on each call through an automation compatible interface. Could it be something with this? Do I have to erase the safewarray explicitly in my VB code? Or is it very likely that the memory leakage is within the COM objects that my com objects uses..? Rickard

        C 1 Reply Last reply
        0
        • R RickardB

          There is especially one COM component I use from within my managed code. This COM component in turns uses three OLE automation based COM components. From this component I pass a SAFE ARRAY of data on each call through an automation compatible interface. Could it be something with this? Do I have to erase the safewarray explicitly in my VB code? Or is it very likely that the memory leakage is within the COM objects that my com objects uses..? Rickard

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Best bet - isolate each component and run it in a process so you can see if it leaks memory. I'd do this with just a little vbscript that calls the methods in question over and over. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups