I want to find out how many memory is used by a process P. Process P
is running on Solaris 8 sun workstation. Basically, I want to know if
there is memory leaking from process P. Could someone tell me how to
do this?
Thanks
Thanks
Can you tell us, please,when your homework is due, so we know how
much time we have?
-Mike
First look at your code carefully to check whether you release theQuote:> Basically, I want to know if
> there is memory leaking from process P. Could someone tell me how to
> do this?
Memory leak detecting tools like Purify can help you more. If you want to
go for differrent tools like purify, then :-
www.cs.colorado.edu/homes/zorn/public_html/MallocDebug.html will give you
the answer.
--
Nithyanand.
Siemens, Bangalore, India.
(Opinions expressed are my own and do not reflect the opinions of my
employer, Siemens)
> Can you tell us, please,when your homework is due, so we know how
> much time we have?
> >: I want to find out how many memory is used by a process P. Process P
> >: is running on Solaris 8 sun workstation. Basically, I want to know if
> >: there is memory leaking from process P. Could someone tell me how to
> >: do this?
> >Can you tell us, please,when your homework is due, so we know how
> >much time we have?
> If process P's pid is 1234, then a comparison of ps -o osz -p 1234
> over time should tell you if the process is growing. That might
> not mean that it has a "leak" (faulty logic in freeing dynamically
> allocated memory). An analysis tool you can buy, purify, is designed
> for identifying memory leaks. There's tools in the solaris workshop
> too.
> -Mike
> I want to find out how many memory is used by a process P. Process P
> is running on Solaris 8 sun workstation. Basically, I want to know if
> there is memory leaking from process P. Could someone tell me how to
> do this?
> Thanks
--
md5sum - Unix virus scanner.
> > >Can you tell us, please,when your homework is due, so we know how
> > >much time we have?
> > If process P's pid is 1234, then a comparison of ps -o osz -p 1234
> > over time should tell you if the process is growing. That might
> > not mean that it has a "leak" (faulty logic in freeing dynamically
> > allocated memory). An analysis tool you can buy, purify, is designed
> > for identifying memory leaks. There's tools in the solaris workshop
> > too.
> thanks. Could you tell me what is the tools in solaris workshop?
--
Nithyanand.
Siemens, Bangalore, India.
(Opinions expressed are my own and do not reflect the opinions of my employer, Siemens)
...and monitor changes in the output, particularly in the "heap" section
> > > >: I want to find out how many memory is used by a process P. Process
P
> > > >: is running on Solaris 8 sun workstation. Basically, I want to know
if
> > > >: there is memory leaking from process P. Could someone tell me how
to
> > > >: do this?
> > > >Can you tell us, please,when your homework is due, so we know how
> > > >much time we have?
> > > If process P's pid is 1234, then a comparison of ps -o osz -p 1234
> > > over time should tell you if the process is growing. That might
> > > not mean that it has a "leak" (faulty logic in freeing dynamically
> > > allocated memory). An analysis tool you can buy, purify, is designed
> > > for identifying memory leaks. There's tools in the solaris workshop
> > > too.
> > thanks. Could you tell me what is the tools in solaris workshop?
> Didn't you read the other posts in this thread?. I had given the link
you and your solaris.Quote:> view of these Memory leak detecting tools.
> The link is
> www.cs.colorado.edu/homes/zorn/public_html/MallocDebug.html
> There are many such tools listed here. Select whichever is appropriate to
Quote:> --
> Nithyanand.
> Siemens, Bangalore, India.
> (Opinions expressed are my own and do not reflect the opinions of my
employer, Siemens)
Try "man watchmalloc"
Cheers J.
> >: I want to find out how many memory is used by a process P. Process P
> >: is running on Solaris 8 sun workstation. Basically, I want to know if
> >: there is memory leaking from process P. Could someone tell me how to
> >: do this?
> >Can you tell us, please,when your homework is due, so we know how
> >much time we have?
> If process P's pid is 1234, then a comparison of ps -o osz -p 1234
> over time should tell you if the process is growing. That might
> not mean that it has a "leak" (faulty logic in freeing dynamically
> allocated memory). An analysis tool you can buy, purify, is designed
> for identifying memory leaks. There's tools in the solaris workshop
> too.
> -Mike
The top utility shows the size of processes.
> > > >: I want to find out how many memory is used by a process P. Process P
> > > >: is running on Solaris 8 sun workstation. Basically, I want to know if
> > > >: there is memory leaking from process P. Could someone tell me how to
> > > >: do this?
> > > >Can you tell us, please,when your homework is due, so we know how
> > > >much time we have?
> > > If process P's pid is 1234, then a comparison of ps -o osz -p 1234
> > > over time should tell you if the process is growing. That might
> > > not mean that it has a "leak" (faulty logic in freeing dynamically
> > > allocated memory). An analysis tool you can buy, purify, is designed
> > > for identifying memory leaks. There's tools in the solaris workshop
> > > too.
> > thanks. Could you tell me what is the tools in solaris workshop?
> Didn't you read the other posts in this thread?. I had given the link where you can have the overall
> view of these Memory leak detecting tools.
> The link is
> www.cs.colorado.edu/homes/zorn/public_html/MallocDebug.html
> There are many such tools listed here. Select whichever is appropriate to you and your solaris.
My program uses STL List and Map classes and I put template class into
these Lists. When I monitor the output of vmstat for my workstation,
although the system may regain small portion of the memory, swap and
free memory have a trend to decrease , but I don't know which process
leaks memory.
Thanks you all for your help.
> thanks. Could you tell me what is the tools in solaris workshop?
-- ced
--
Chuck Dillon
Senior Software Engineer
Accelrys Inc., a subsidiary of Pharmacopeia, Inc.
-Mike
1. How to see memory used per user; memory used per process
I wont to find the offenders on our system..
sorry for a newbie quesion, couldn't find it in my books
3. finding memory leaks using HAT
4. Blocking unix signal in a device driver ??
5. What function could I use to find the size of memory usage by the process?
7. question about process memory usage and process memory limits
8. Can,t Use display through remote login: help!!
9. How to get virtual memory size and working set size of a process on AIX ?
10. How can a user find out how much memory his/her process is using?
11. how do I find out what programs/processes are using most resources/memory?
12. memory leaks by shared memory and fork
13. Sun workshop memory monitor does not detect all memory leak