
190
Monitoring and maintaining processes
HPE Comware 7 is a full-featured, modular, and scalable network operating system based on the
Linux kernel. Comware 7 software features run the following types of independent processes:
•
User
process
—Runs in user space. Most Comware 7 software features run user processes.
Each process runs in an independent space so the failure of a process does not affect other
processes. The system automatically monitors user processes. Comware 7 supports
preemptive multithreading. A process can run multiple threads to support multiple activities.
Whether a process supports multithreading depends on the software implementation.
•
Kernel
thread
—Runs in kernel space. A kernel thread executes kernel code. It has a higher
security level than a user process. If a kernel thread fails, the system breaks down. You can
monitor the running status of kernel threads.
Displaying and maintaining processes
Commands described in this section apply to both user processes and kernel threads. You can
execute these commands in any view.
The system identifies a process that consumes excessive memory or CPU resources as an anomaly
source.
To display and maintain processes:
Task Command
Display memory usage.
display memory
[
slot
slot-number
[
cpu
cpu-number
] ]
Display process state
information.
display
process
[
all
|
job
job-id
|
name
process-name
] [
slot
slot-number
[
cpu
cpu-number
] ]
Display CPU usage for all
processes.
display
process
cpu
[
slot
slot-number
[
cpu
cpu-number
] ]
Monitor process running state.
monitor process
[
dumbtty
] [
iteration
number
] [
slot
slot-number
[
cpu
cpu-number
] ]
Monitor thread running state.
monitor thread
[
dumbtty
] [
iteration
number
] [
slot
slot-number
[
cpu
cpu-number
] ]
For detailed information about the
display memory
[
slot
slot-number
] command, see
Fundamentals Command Reference
.
Displaying and maintaining user processes
Execute
display
commands in any view and other commands in user view.
Task Command
Display log information for all
user processes.
display
process
log
[
slot
slot-number
[
cpu
cpu-number
] ]
Display memory usage for all
user processes.
display process memory
[
slot
slot-number
[
cpu
cpu-number
] ]
Display heap memory usage for a
user process.
display
process
memory
heap
job
job-id [
verbose
] [
slot
slot-number
[
cpu
cpu-number
] ]
Display
the addresses of memory
display process memory heap job job-id
size memory-size
[
offset