1. Check the database code
select userenv('language') from dual;
2. View the system cpu usage log
ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head
top -H -p $PID
strace -p $PID # 线程所有调用
- Field analysis
PID : process ID USER : process owner PR : priority level of the process, the smaller the priority is to be executed
VIRT : virtual memory occupied by the process RES : physical memory occupied by the process SHR : shared memory used by the process
S : process’s status. S means dormant, R means running, Z means dead state, N means that the priority value of the process is negative
%CPU : the usage rate of the CPU occupied by the process %MEM : the percentage of physical memory and total memory used by the process
TIME+ : after the process is started The total CPU time occupied, that is, the cumulative value of the occupied CPU time.
COMMAND : Process start command name
ps -eo pid,ppid,%mem,%cpu,cmd --sort=-%cpu | head
View system log
sar -u -f /var/log/sa/saxx
4. Set the vim encoding format
vim ~/.vimrc
set encoding=utf-8 to
refresh and import to take effect
. ~/.vimrc