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)
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)
Hi All,
Does anyone know what the best commands in the UNIX command line are for obtaining this info:
current CPU usage
memory usage
virtual memory usage
preferably with date and time parameters too?
thanks
ocelot (4 Replies)
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)
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)
what is the best way to get the memory and cpu usage of a process on any system?
this is relatively simple. however, i'm looking for a unified method that would work on linux, sunos, hpux, aix.
ps -ef | egrep myprocess | awk '{print $4}' ---> there could be several instances of 'myprocess'... (3 Replies)
I am looking for a way to log and graphically display cpu and RAM usage of linux processes over time. Since I couldn't find a simple tool to so (I tried zabbix and munin but installation failed) I started writing a shell script to do so
The script file parses the output of top command through... (2 Replies)
I'm a newbie to shell scripting, I was given this script to modify. This script that monitors when CPU Usage is too high based off the top command. The comparison is not working as it should. Its comparing a decimal to a regualar interger. When it send me an email, it send an email and ignores the... (21 Replies)
Discussion started by: mhannor
21 Replies
LEARN ABOUT CENTOS
systemd-cgtop
SYSTEMD-CGTOP(1) systemd-cgtop SYSTEMD-CGTOP(1)NAME
systemd-cgtop - Show top control groups by their resource usage
SYNOPSIS
systemd-cgtop [OPTIONS...]
DESCRIPTION
systemd-cgtop shows the top control groups of the local Linux control group hierarchy, ordered by their CPU, memory, or disk I/O load. The
display is refreshed in regular intervals (by default every 1s), similar in style to top(1). If systemd-cgtop is not connected to a tty,
only one iteration is performed and no columns headers are printed. This mode is suitable for scripting.
Resource usage is only accounted for control groups in the relevant hierarchy, i.e. CPU usage is only accounted for control groups in the
"cpuacct" hierarchy, memory usage only for those in "memory" and disk I/O usage for those in "blkio". If resource monitoring for these
resources is required, it is recommended to add the CPUAccounting=1, MemoryAccounting=1 and BlockIOAccounting=1 settings in the unit files
in question (See systemd.resource-control(5) for details).
To emphasize this: unless "CPUAccounting=1", "MemoryAccounting=1" and "BlockIOAccounting=1" are enabled for the services in question no
resource accounting will be available for system services and the data shown by systemd-cgtop will be incomplete.
OPTIONS
The following options are understood:
-h, --help
Prints a short help text and exits.
--version
Prints a version string and exits.
-p
Order by control group path name.
-t
Order by number of tasks in control group (i.e. threads and processes).
-c
Order by CPU load.
-m
Order by memory usage.
-i
Order by disk I/O load.
-b, --batch
Run in "batch" mode: do not accept input and run until the iteration limit set with --iterations is exhausted or until killed. This
mode could be useful for sending output from systemd-cgtop to other programs or to a file.
-n, --iterations=
Perform only this many iterations.
-d, --delay=
Specify refresh delay in seconds (or if one of "ms", "us", "min" is specified as unit in this time unit).
--depth=
Maximum control group tree traversal depth. Specifies how deep systemd-cgtop shall traverse the control group hierarchies. If 0 is
specified, only the root group is monitored. For 1, only the first level of control groups is monitored, and so on. Defaults to 3.
KEYS
systemd-cgtop is an interactive tool and may be controlled via user input using the following keys:
h
Shows a short help text.
SPACE
Immediately refresh output.
q
Terminate the program.
p, t, c, m, i
Sort the control groups by path, number of tasks, CPU load, memory usage, or IO load, respectively.
%
Toggle between showing CPU time as time or percentage.
+, -
Increase or decrease refresh delay, respectively.
EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise.
SEE ALSO systemd(1), systemctl(1), systemd-cgls(1), systemd.resource-control(5), top(1)systemd 208SYSTEMD-CGTOP(1)