Sponsored Content
Top Forums Programming Measuring memory used by a program? Post 302253508 by cbkihong on Friday 31st of October 2008 09:08:25 PM
Old 10-31-2008
For Java-based programs, the best monitoring means is in the JVM itself - JMX. If you are not monitoring for too long time, you can leave JConsole open and it has a function of exporting the data to CSV file.

Refer to an earlier reply of mine for a similar question for further details:

https://www.unix.com/unix-advanced-ex...light=jconsole

Last edited by cbkihong; 10-31-2008 at 10:17 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Program/ Memory Problems

I need some advise. I have an application server running several applications. When I try and start a particular application when the others are running I receive the following. This is appearing in the core file that is created. ... (1 Reply)
Discussion started by: dbrundrett
1 Replies

2. Shell Programming and Scripting

Program to find CPU,memory and I/O utilization

Can anyone please help me regarding this .sh script: The shell script should monitor CPU,memory and I/O utilization continuously after a defined time interval and should write it in an output file like excell. (1 Reply)
Discussion started by: Subhayan
1 Replies

3. Programming

how to check memory leak in C program under Unix

Hi, How to detect memory leak in C program under unix ? Thanks (6 Replies)
Discussion started by: useless79
6 Replies

4. Solaris

How to know the size of the program currently executing in memory

hey everybody, i am currently working on solaris 10 os on a m5000 server. my problem is when i want the exact size of a program in execution, i am unable to do it. earlier i thought the RSS field of prstat but because of its large size it cant be the size. pmap -x shows some output but it includes... (2 Replies)
Discussion started by: aryansheikh
2 Replies

5. Programming

Current and Peak Memory consumption of my program?

Hi, my C++ program does some memory consuming tasks and runs several minutes. During execution time, I want to print information on the current memory consumption and peak memory consumption of my program into a logfile. How can I retrieve this information, i.e. which functions are available... (0 Replies)
Discussion started by: DarthVader77
0 Replies

6. Programming

Memory Fault (core dumped) in ttpy program

I´m writing this program in QNX , I`m kinda new to UNIX and programing in general, and when I try to run it it gives me the Memory Fault error. Can anyone help? #include <stdio.h> #include <fcntl.h> void main(void) {int a,ter; char buf; printf("a="); scanf("%d",a); ter=open... (6 Replies)
Discussion started by: GiganteAsesino
6 Replies

7. AIX

Memory limit for C program

Greetings - I'm porting a C application to an AIX (6.1) system, and have bumped into the limits AIX imposes on memory allocation, namely the default limit of 256MB for a process. I'm aware of the compilation flag that allows an application to gain access to up to 8 memory segments (each 256MB,... (4 Replies)
Discussion started by: traviswheeler
4 Replies

8. Programming

Shared memory between two c program

i have to shared a variable between two different c programs with shared memory and i do these: int main() { int a=5,b=7; int buffer; int *point; int shmid; shmid=shmget(IPC_PRIVATE , sizeof(buffer),0666); point=(int *)shmat(shmid,NULL,0); point=a; ... (21 Replies)
Discussion started by: tafazzi87
21 Replies

9. Programming

Help regarding memory leak in this C program

I have written this code in C which reads a very large collection of text files and does some processing. The problem with this code is that there are memory leaks which I am not able to figure out as to where the problem is. When I run this code, and see the memory usage using top command, then I... (7 Replies)
Discussion started by: shoaibjameel123
7 Replies

10. Programming

Size of memory used by a program

Hello, Here is a portion of my code: a=(int *) malloc(dim*dim*sizeof(int)); b=(int *) malloc(dim*dim*sizeof(int)); c=(int *) malloc(dim*dim*sizeof(int)); for(i=0;i<dim;i++) for(j=0;j<dim;j++) c= rand(); for(i=0;i<dim;i++) for(j=0;j<dim;j++) b=rand(); ... (6 Replies)
Discussion started by: chercheur111
6 Replies
PSENSOR(1)							   User Commands							PSENSOR(1)

NAME
psensor - Temperature monitoring application SYNOPSIS
psensor [OPTION]... DESCRIPTION
psensor is a GTK application for monitoring hardware sensors, including temperatures and fan speeds. It displays a curve for each sensor, and uses Desktop Notification to raise an alarm when a temperature is too high. On Ubuntu an Applica- tion Indicator is also available, its icon changes when a temperature alert is raised. It can monitor: * the temperature of the motherboard and CPU sensors (using lm-sensors). * the temperature of the NVidia GPUs (using XNVCtrl). * the temperature and fan rotation speed of the ATI GPUs. * the temperature of the Hard Disk Drives (using hddtemp). * the rotation speed of the fans (using lm-sensors). * the sensors of a remote computer (using psensor-server). Psensor requires lm-sensors to be correctly installed and configured, it can be checked by running the command 'sensors'. If it has never be done, you may need to run the command 'sensors-detect' and follow the instruction. See the manpages of sensors(1) and sensors-detect(8) for more information. To retrieve the temperature of the Hard Disk Drives, the hddtemp daemon must be running. For remote monitoring: * start psensor-server(1) on the remote computer * run psensor with '--url' option: 'psensor --url=http://localhost:3131' ATI/AMD GPUs monitoring is available if the library libatiadlxx is present in the directory /usr/lib and psensor has been compiled with the ATI ADL SDK. Log is written to '$HOME/.psensor/log'. OPTIONS
-h, --help display this help and exit -v, --version display version information and exit -u, --url=URL the URL of the psensor-server, example: http://hostname:3131 -d, --debug=LEVEL set the debug level, integer between 0 and 3 REPORTING BUGS
Report bugs to: jeanfi@gmail.com psensor home page: <http://wpitchoune.net/psensor> COPYRIGHT
Copyright (C) 2010-2012 jeanfi@gmail.com License GPLv2: GNU GPL version 2 or later <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
psensor-server(1), sensors(1), sensors-detect(8), hddtemp(8) psensor 0.6.2.17 March 2012 PSENSOR(1)
All times are GMT -4. The time now is 04:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy