Hi Bianca,
first of all: on which OS you're running your Java application ?..
let's suppose it's Linux, then :
- you can see "java" process RAM and CPU usage via "Linux ProcLOAD"
or "Linux psSTAT"
- the difference between ProcLOAD and psSTAT is that the first one
is grouping (SUM) all the stats for all processes having the same
name, while the second one is showing the stats "per process" and to
each process can be identified by the name composed of <process
name>-<PID>, like in the following output example :
PNAME-PID UsrTM SysTM CPU% MinF MajF PRI NI Thr
VmSIZE VmLCK VmRSS VmData VmSTK VmEXE VmLIB VmPTE CUsrTM CSysTM
init-00001 0.00 0.00 0.0 0 0 20 0 1
23596 0 1644 332 88 140 2480 64 0.00 0.00
ksoftirqd/6-00029 0.00 0.01 0.0 0 0 20 0 1
0 0 0 0 0 0 0 0 0.00 0.00
ksoftirqd/20-00085 0.00 0.01 0.0 0 0 20 0 1
0 0 0 0 0 0 0 0 0.00 0.00
...
so, you can find then from collected stats :
- CPU% : global CPU usage by the process(es)
- UsrTM : User CPU Time
- SysTM : System CPU Time
NOTE: the last 2 stats are representing the corresponding time in
seconds and this time is related to the time interval you're using for
your stats collect and not to the number of CPU/cores you have on your
system (for ex. if you started your collect with 10sec time interval
and see your Java process using 5sec in UsrTM and 1sec in SysTM =
means you're using 6sec of CPU Time of a single CPU core (so, 60% of
this CPU core is used by your Java process), while if UsrTM growing to
30sec then you're using 3 CPU cores 100% (30sec CPU Time during
10sec), and so on..
for RAM usage by your process: VmSIZE is probably the most important,
while you may also be interested by RSS and others..
for IO usage by your process: there is no "easy way" (psSTAT is not
reporting them yet), so you can find some info from "/proc/PID/io",
the only problem is that the reported "IO" are generic (it can be any
read()/write() -- file, IP socket, etc.) -- so, this could give an
idea at least about the "IO" activity on the process, but then it's up
to you to correlate it with real I/O load on your system..
for general I/O stats on Linux you can get all the info from "Linux
iostat (v.10) Statistic(s)" Add-On.
Well, this all is supposing you're using Linux.. -- if you're using
another UNIX, the is similar, but different ;-)
Rgds,
-Dimitri
> --
> You received this message because you are subscribed to the Google Groups
> "dim_STAT" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
dimstat+u...@googlegroups.com.
> To post to this group, send email to
dim...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/dimstat.
> For more options, visit
https://groups.google.com/d/optout.
>