473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how can see the memory usage for one process in Windows/Solaris?

a.exe is one programming writen with c/c++ language.
a.exe will be called multi-times by another programming.

Now I want to check how much memory is used by a.exe
or whether some memory leak happens . Is there any API
interface availabe or tools for this purpose on both
windows and Unix?

RGS
Wavelet
Oct 10 '05 #1
3 6201
wavelet wrote:
a.exe is one programming writen with c/c++ language.
a.exe will be called multi-times by another programming.

Now I want to check how much memory is used by a.exe
or whether some memory leak happens . Is there any API
interface availabe or tools for this purpose on both
windows and Unix?


Sure, but this has nothing to do with C++.

You need to google for a memory profiler.

Regards,

--John Ratliff
Oct 10 '05 #2
* wavelet:

Now I want to check how much memory is used by a.exe
or whether some memory leak happens . Is there any API
interface availabe or tools for this purpose on both
windows and Unix?


Not in standard C++.

And system-specific APIs are off-topic in this group (read the
welcome-message, posted monthly here, and the FAQ).

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Oct 10 '05 #3
wavelet wrote:
a.exe is one programming writen with c/c++ language.
a.exe will be called multi-times by another programming.

Now I want to check how much memory is used by a.exe
or whether some memory leak happens . Is there any API
interface availabe or tools for this purpose on both
windows and Unix?

RGS
Wavelet


This question is off topic for comp.lang.c++.

I don't know much about windows, but Solaris has a a number of tools.
Firstly, "pmap" gives you a nice breakdown of the process' memory usage.
If you're on x86 you can probably compile Valgrind for solaris: that's
pretty much the golden standard. If you're on Sparc then I suggest the
open source Dmalloc library. Electric fence is an oldie but a goodie,
and it's had leak detection bolted on.

Jacques.
Oct 10 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: rbt | last post by:
Would a Python process consume more memory on a PC with lots of memory? For example, say I have the same Python script running on two WinXP computers that both have Python 2.4.0. One computer has...
6
by: Tom | last post by:
We have a VERY simple .NET C# Form Application, that has about a 23MB Memory Footprint. It starts a window runs a process and does a regular expression. I have done a GC.Collect to make sure that,...
4
by: yanchun.yang | last post by:
I wrote a large code, but it spends memory very quick. Is there any method to supervise memory's use and watch whether there is some waste?
8
by: clsmyth | last post by:
Folks, Hi, I have never posted to a language group before so please excuse me if this is inappropriate. I have posted this to comp.unix.solaris (well, I am one of the folks on the thread at...
4
by: RH | last post by:
Hi, I am building a windows application that has a feature that retrieves a set of records when a button is clicked. When the records are being retrieved I experience a complete system...
12
by: Tony | last post by:
Hi expert, I installed DB2 v8.2 server on Solaris 9 box. When I connect to DB2 using control centre or other applications(except command line), around 12 db2sysc processes pop up and each one...
17
by: Frank Rizzo | last post by:
Hello, I've compiled my app for AnyCPU setting in vs2005. Then I tried the app on both 32-bit Windows 2003 R2 and 64-bit Windows 2003 R2. The memory usage of the application when working on...
13
by: Ilias Lazaridis | last post by:
How to detect memory leaks of python programms, which run in an environment like this: * Suse Linux 9.3 * Apache * mod_python The problem occoured after some updates on the infrastructure....
11
by: dhtml | last post by:
(originally mis-posted on m.p.s.jscript...) I've just closed all windows in Firefox and its using 244MB of memory. I have no idea why. I had GMail open, a page from unicode, the CLJ FAQ. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.