Memory management issue



Hi all,

I have a general memory usage question. Our app allows users to fetch
objects from a database. The fetched raw data is converted to
Objective-C objects in memory. As the user continues to do fetches the
memory usages of the process goes up:

prstat
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
27357 paravici 423M 414M sleep 59 0 0:36:36 0.6% SmartClient/1
...

So far that is what I would expect. However, if the user closes a form
the dic and all the Objective-C objects are released (--> free). I
would expect memory usage to go down to 100M or so but it stays at
423M. I have made sure that memory allocated with malloc is actually
freed in the process, at least the method that should do that is called.

Shouldn't the process return memory to the operation system so that we
see decreased figures in prstat? I am seeing this on Solaris 10. I have
another process that reserves 1GB of memory at startup. The performance
of the process is rather bad though the machine has enough memory left
(6GB installed, no other memory intensive process running). Does
Solaris do not like processes to allocate so much memory and forces
page outs and ins though enough memory is available?

Both issues are probably related. Insights would be greatly appreciated!

Thanks in advance!

Regards,

Andreas
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • How to find out how many other processes share VM with $PID?
    ... I was a bit frustrated by bad quality of memory usage info ... I know how to detect and correctly account for threads ...
    (Linux-Kernel)
  • Re: Backup fails with volsnap error
    ... memory usage is way over the top. ... In fact, if you get Trend under control, you'll probably see Exchange grab ... The Trend requirments say 512MB of RAM for the system.... ... I will talk to Trend about the memory usage. ...
    (microsoft.public.windows.server.sbs)
  • Re: Memory problem
    ... > I test the memory usage with my System Resources Manager and the top ... > command (I work with Linux but the Mac forums are the only place to go ... There are two levels of memory allocation going on here, ... One level is the malloc level, where you can request things in byte-sized ...
    (comp.sys.mac.programmer.help)
  • Re: High Memory Usage Garbage Collection Question
    ... > whether I can reduce the memory usage. ... > I have an app that wakes up and processes text files into a database ... > public static string readLineResponse; ...
    (microsoft.public.dotnet.general)
  • Re: Indexing uses *lots* of memory
    ... I'm not worried about store.exe memory usage (the ... server supports over 500 users). ... please refer to the following Microsoft ...
    (microsoft.public.exchange2000.general)