Learn how to a build a cloud-first strategyRegister Now


ISAPI DLL Web Application - Out of Memory

Posted on 2004-11-08
Medium Priority
Last Modified: 2010-04-05
I have compiled a ISAPI DLL web application ...it 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 ...is 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

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

Author Comment

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

Expert Comment

ID: 12521711
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

by:Mohammed Nasman
ID: 12522049

  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

modulo earned 0 total points
ID: 13499244
PAQed with no points refunded (of 500)

Community Support Moderator

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month21 days, 4 hours left to enroll

810 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