ivylnm
asked on
ISAPI DLL Web Application - Out of Memory
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 ?
thanks
if not, any source code which i can use to free my server machine memory ?
thanks
i guess it is best that you check your DLL for memory leakage... perhaps some objects are not freed, etc.?
ASKER
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 ....
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.
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.
Hello
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)
http://www.automatedqa.com/products/memproof.asp
AQTime (not free but has more features and )
http://www.automatedqa.com/products/aqnet.asp
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
http://www.nexusdb.com
Regards,
Mohammed
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)
http://www.automatedqa.com/products/memproof.asp
AQTime (not free but has more features and )
http://www.automatedqa.com/products/aqnet.asp
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
http://www.nexusdb.com
Regards,
Mohammed
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.