RE: Need help with "out of memory Errors" on server script
RE: Need help with "out of memory Errors" on server script
- Subject: RE: Need help with "out of memory Errors" on server script
- From: "Zavatone, Alex" <email@hidden>
- Date: Tue, 18 Sep 2001 13:02:54 -0700
Ok, first we have to start with some assumptions.
1) that just running the apps repeatedly is not causing the leak
2) that some of your code is eating up memory or leaking - not releasing it.
3) that the apps we assume are leaking are not using system memory but all
the memory it is using is within that app itself.
You can use a memory monitoring usility like saay, the about this mac
window, and turn on baloon help. When you roll over each app, it will tell
you how much memory it is using.
There is another more concise tool called memmapper (if memory serves) that
you van find on Google. It gives more indepth results.
You COULD output memory usage of your app to a window like "Applescript
Output" on a periodic basis as well. Output your variables too. If the
variables (strings and lists)keep getting larger, then this is something you
can fix.
Run your basic tests with a memory monitoring scheme in place. Verify that
memory does get eaten up.
Next, start commenting out lines of code and rerun your tests. When the out
of memory condition never happens. Then you have isolated the code that
causes the problem.
To start, try commenting out ALL your lines of code and run the test with
memory monitoring utils in place. If memory STILL gets eaten up then it is
the act of running the apps that is the issue.
Sound like a plan Stan?
- Zav
Hey, I'm not a real programmer either but I play one on TV
-----Original Message-----