Memory management issue
- From: Andreas Höschler <ahoesch@xxxxxxxxxxxx>
- Date: Fri, 14 Dec 2007 17:02:53 +0100
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
- Prev by Date: Trap 3e / Bad Superblock
- Next by Date: I can´t install on zones in solaris 10
- Previous by thread: Trap 3e / Bad Superblock
- Next by thread: I can´t install on zones in solaris 10
- Index(es):
Relevant Pages
|
|