ISAPI DLL Web Application - Out of Memory

Posted on 2004-11-08
Last Modified: 2010-04-05
I have compiled a ISAPI DLL web application is running well last time ..but now, more and more users getting in, it can up to 50 user at the same time ...i did reboot my webserver machine once in a day ...but during weekend .nobody did it ...that's why the DLL always come out "Out of Memory" message ...i get this message by using try-except blocks there any way to find out why ?
if not, any source code which i can use to free my server machine memory ?


Question by:ivylnm
    LVL 14

    Expert Comment

    i guess it is best that you check your DLL for memory leakage... perhaps some objects are not freed, etc.?

    Author Comment

    i already checked many times, it is really hard to find out where is the leakage normal conditions, all the objects will be freed ....
    LVL 12

    Expert Comment

    For ISAPI projects, if would be better to add ShareMem unit to uses clause. It is responsible for memory allocation, deallocation and stuff like this. Compiling with standard memory manages cause problems.
    There was also FastShareMem (not from Borland). Take a look in Google for it. I haven't used it, but I've heard that it is better.
    LVL 22

    Expert Comment


      Most of cause of this problem came from two side, Memory leaks or Memory fragmentation

    for the first one, you can use of tools that will help you to detect the leaks in your code, look at these
    MemProof (Free)
    AQTime (not free but has more features and )

    and for memory fragmentation, you need to replace the borland memory manager that came with Delphi

    one of good and powerful MM for Delphi, and used by many 24x7 application is Nexusdb MM


    Accepted Solution

    PAQed with no points refunded (of 500)

    Community Support Moderator

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now