10-09-2007
With the information provided I think the best you're going to get are guesses. Might be worth taking a look at a good logging utility like log4c. You have the ability to pass all sorts of objects like arrays and vectors to it and it will display the contents of them giving you an easy overview of if their contents is growing. Adding some lines of debug code at various points in your code is another obvious solution.
You mention CPU usage increasing. Does memory usage also increase too? If so think about implimenting a Memory Printer class that peridocially prints the used/available memory.
Another thought, and one I've come across quite a bit within my own company, is your program talking to some sort of database? Is it performing read and writes to a specific table that is getting bigger and bigger. If you have a thread that is querying a table at a given interval then obviously the more rows in the table you have the poorer the performance of your application will become, well without proper indexing anyway.
10 More Discussions You Might Find Interesting
1. Programming
how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries
through a c program or java program
i want to store that data into database so i can show it graphically
thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
2. Shell Programming and Scripting
For analysis, I need to gather CPU usage from say 1:00 PM to 2:00 PM every 10 seconds on a given day. I heard this can be done with awk, but my UNIX is kind of rusty. (4 Replies)
Discussion started by: WG1
4 Replies
3. Programming
Please tell me solaris functions/api for getting following information
1- Function that tells how much memory used by current process
2- Function that tells how much memory used by all running processes
3- Function that tells how much CPU is used by current process
4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies
4. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
5. Solaris
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies
6. Solaris
Hello Friends,
On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization.
=========================================================================
$ prstat -a
... (4 Replies)
Discussion started by: mahive
4 Replies
7. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
8. Programming
Hi all,
I'm using python and psutil a library to get system informations like cpu usage (percent) for a given process.
My question is if I have the value in % of the cpu usage how I could get the cpu usage in cycle number I mean not in percent?
Thanks a lot
D. (5 Replies)
Discussion started by: Dedalus
5 Replies
9. AIX
Hi Guys,
I am a newbie on the forum. This is my first post, so first of all I would like to introduce myself.
I am a SAS Analyst programmer working for an Health Insurance client. SAS is installed on a 16 CPU AIX Server with partitions running with shared processor. I have couple of... (2 Replies)
Discussion started by: saurabhiim2003
2 Replies
10. AIX
Hi all,
I am currently having trouble to get nmon to print me the actual CPU usage for an interval for a process.
According to the manual, something like
# time nmon -t -C cron -s 5 -c 2 -F outfile
real 0m0.98s
user 0m0.03s
sys 0m0.04s
should print out at least the process... (15 Replies)
Discussion started by: zaxxon
15 Replies
LEARN ABOUT HPUX
display_accelerator
display_accelerator() display_accelerator()
Name
display_accelerator - Core method to display current accelerators.
Synopsis
typedef void (*XtStringProc)(Widget, String);
Widget w;
String string;
Inputs
w Specifies the source widget that supplied the accelerators.
string Provides the string representation of the accelerators that were installed.
Description
The Core display_accelerator() method is registered on the display_accelerator field of the Core class part structure, and is called when
the application installs a widget's accelerators with XtInstallAccelerators() or XtInstallAllAccelerators().
The argument w is the widget instance that has had its accelerators installed, and string is a string representation of the widget's accel-
erator table. Some widget classes will want to display themselves differently when accelerators are installed so that the user is aware
that they are available. (Menu buttons that display their keyboard equivalents are a good example.)
The method is passed a string version of the current accelerator table, in canonical form. This form may differ from the original source
of the accelerator table itself.
The display_accelerator() method is not chained. A widget class can inherit its superclass's display_accelerator() method by specifying
XtInheritDisplayAccelerator in its Core display_accelerator field. A widget that does not wish to display any accelerators may set this
field to NULL.
Usage
The translation table syntax is not particularly easy for a user to read or particularly easy for a widget to convert into a simpler form,
so a widget class may prefer to define a resource which is the string that should be displayed when the accelerator is installed. That way
the application programmer can specify both the accelerator and the representation of the accelerator that the user will see.
None of the Intrinsics or Xaw widget classes define a display_accelerator() method.
See Also
XtInstallAccelerators(1).
Xt - Intrinsics Methods display_accelerator()