• 0

Memory leaks caused by ASP (VBScript) scripts


Question

I have been working on a server problem on behalf of a client, and the hosting company has decided that the slowdowns the website experiences periodically are due to "a memory leak somewhere in the code of the website." This website is not using any compiled code, so I don't see how it's even possible for the code to have a memory leak. I just want to make sure that I'm correct before I tear these idiots a new a-hole.

4 answers to this question

Recommended Posts

  • 0

Yes it is... if your DB connections and/or other objects are not properly closed at the end of every page execution, it can cause these objects to remain in memory. Remember... ASP does not have "garbage cleanup" like ASP.NET and even ASP.NET can be subject to these things.

And code does not need to be compiled to be loaded into memory... if you remember Computing 101 then you'll remember that before ANYTHING at all executes on any computer it is loaded into memory and run from there. So if these things are not released from system memory they may not always find their way out.

  • 0

Sure there is... Recordset objects, improperly used arrays, loops that dont exit properly, i mean you keep leaning towards "there's no way" but there's plenty, and much of it can't be pointed out without looking at your code.

Another thing to consider... if you're working with a large DB, ASP has a timeout period where if the page doesn't finish processing before that amount of time the server will terminate the process and when that happens everything doesn't always get closed/discarded correctly.

There is any number of things it could be... instead of leaning toward "it cant be" how about either helping us help you by posting code or really really going thru it yourself. No harm or hurt intended. :)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Tech demos are a declaration of desire, an horizon for what they pretend to put on those boxes call consoles (i still laugh at the poor implementation of Hairworks in W3 when you compare it with the demos)...being made on UE5 doesn't give me any confidence considering how poorly it runs in those things, and CDPR is not a marvel in that aspect neither. And about the game, so far is non existent besides the cinematic trailer. If from the get go they have to justify the whys for the protagonist, you start your narrative with the left foot.
    • Seen a 5090 for just over $3,000 at Best Buy just a couple days ago. It wasn't the sticker price that made me laugh... it's knowing that, for now... that kind of investment that includes drivers that don't work, is a headache no one should have to shell out for. But.. it's not the first time Nvidia has choked on crappy drivers, won't be the last.. so, if you spent a pretty penny on the next gen, hang in there... sure they'll get it right some day here soon.
    • Because they and their 801 partners are hungry for your data, and the web is the best facilitator of everything privacy-violating in this day and age... They want all your non-microsoft account data going to microsoft's servers:
    • Sorry, I found your question odd, that's all 😅.
    • "LOL The IoT version is for embedded systems" LOL. The IoT version is for whatever you want, why are you so stuck up? It's just A NAME. Open your mind, buddy 😅. It's not a different version of Windows, only the licensing model and the support dates change, nothing else. "there no real reason to do that" Everyone has their reasons. You love to use Linux. Why? You have YOUR reasons. Other people will have theirs. I use Windows 11 and Linux on the side. Why? I have my reasons. "No security updates? Who cares!" Many people do, just not you. Why not use a supported OS instead of an unsupported one if you can? LOL. I find it odd that a person that loves Linux and choice/freedom so much has such a hard time understanding why people do things different than him.
  • Recent Achievements

    • First Post
      m10d earned a badge
      First Post
    • Conversation Starter
      DarkShrunken earned a badge
      Conversation Starter
    • One Month Later
      jrromero17 earned a badge
      One Month Later
    • Week One Done
      jrromero17 earned a badge
      Week One Done
    • Conversation Starter
      johnwin1 earned a badge
      Conversation Starter
  • Popular Contributors

    1. 1
      +primortal
      251
    2. 2
      snowy owl
      157
    3. 3
      +FloatingFatMan
      140
    4. 4
      ATLien_0
      140
    5. 5
      Xenon
      128
  • Tell a friend

    Love Neowin? Tell a friend!