tracing a memleak

Login to reply to this topic.
Tue, 2005-07-05 11:15
Joined: 2005-02-21
Forum posts: 47
Any idea how to trace the following:
application logs amount of phone's free mem and a heapsize of the current thread every 30secs. Heapsize does not decrease over the time but phone's free mem does - 40-60kB every 30secs. Some rear occasions with no leak are exceptions.
Application sends/receives couple of packets via TCP/IP during that 30secs. But remember - thread's heapsize does not decreases ie. thread does not consume memory by this op.

Where is the leak or do you have any idea where to look next?

best rgds,
  Ahti.

Tue, 2005-07-05 11:32
Joined: 2004-05-24
Forum posts: 56
Re: tracing a memleak
Hi,

Maybee free phone memory decreases because of log file?  Smiley  Or another app writes something in some file?  Undecided

br,
Addonic
Tue, 2005-07-05 11:42
Joined: 2005-02-21
Forum posts: 47
Re: tracing a memleak
Quote from: addonic
Maybee free phone memory decreases because of log file? Smiley Or another app writes something in some file? Undecided

Does not make sense and there's no other apps running but telephone itself and mine.
And as said - there are rare exceptions with no phonemem decreasal so the logging itself out of the suspection at first round.

Ahti.
Tue, 2005-07-05 14:02
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: tracing a memleak
When you send and received packets, then at least one more process is concerned: the socket server. Does this also happen when you're not logging? I know that can't know that since you're not logging, but there are other 3rd party application you can use, a good example is TaskSpy. You can monitor heap consumption with that tool, too.

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

  • Login to reply to this topic.