Parallel recovery of large oracle transactions leads to database performance degradation-high cpu usage-processing ideas parallel recovery of large oracle transactions leads to database performance degradation-high cpu usage processing ideas large transaction rollback large-scale transaction rollback has a very high co
script in cron and have it checked every minute:
The code is as follows
chmod +x limit.shVi/etc/crontab*/1 * * * */bin/sh/root/soft_shell/limit.sh
Ps:
N: Number of updates, and will exit top after completion
B: Batch file mode, with "n" Parameters used together, can be used to output the top results to the file
So top-bn 1 is the result of getting the top output once.
grep "^*[1-9]": To get the PID number d
Analysis on High CPU usage of HBase Thrift2High-level analysis of HBase Thrift2 CPU usageDirectory
Directory 1
1. symptom 1
2. Problem locating 2
3. Solution 5
4. Related Code 5
1. symptom description
Port 9090 of the external connection times out, but the telnet port always succeeds. Using the top Command, we found that the
This article describes how to obtain the memory and CPU usage information of a single process.
Memory consumption: VSS/RSS/PSS/USS
Terms• VSS-virtual set size virtual memory consumption (including memory occupied by shared libraries)• RSS-resident set size actually uses physical memory (including memory occupied by shared libraries)• Pss-proportional set size physical memory actually used (proportional allo
, we know that PID is 374, switch to log on using Tomcat user
VI jkiller.sh Enter the following script:
Copy Code code as follows:
#!/bin/sh
Export lang= "ZH_CN. UTF-8 ";Export Lc_all= "ZH_CN. UTF-8 ";
Log_file= "/tmp/jkiller.log";Jstack_file= "/tmp/jstack.log";
Pid= "$";Shifti=0;J= "$";If [-Z "${j}"]; Thenj=5;Fi
Ps-mp ${pid}-o Thread,tid,time | Sort-rn > ${log_file};Jstack ${pid} > ${jstack_file};
For line in ' Cat $
The estimation of Linux under the commonly used commands in the high usage of PS, today to translate this article PS related articles
Linux PS Command
The PS command on Linux are one of the most basic commands for viewing the processes running on the system. It provide
Top leads to high CPU usage: top
Top: Super high CPU usage: top-16:41:04 up 184 days, 2 users, load average: 19.97, 18.38, 18.36 Tasks: 584 total,
Top:Top-16:41:04 up 184 days, 2 users, load average: 19.97, 18.38, 18.36Task: 584 total, 1 running, 583 sleeping, 0 stopped, 0 zombieCpu (s): 0.0% us, 0.0% sy, 41.2% ni
Parallel recovery of large oracle transactions leads to database performance degradation-high cpu usage
The rollback of a large transaction has a very high cost, not only locking the required resources
And the CPU and IO consumption, especially IO, will be extremely intensive. At this time, we hope to reduce the number of rollback results.
. It is impossible to s
1. Use Android API functions to view1.1 activitymanager view available memory.Activitymanager. memoryinfo outinfo = new activitymanager. memoryinfo ();Am. getmemoryinfo (outinfo );Outinfo. availmem is available idle memory.1.2. Android. OS. debug queries memory usage information of a single process, such as PSS, VSS, and USS.Memoryinfo [] memoryinfoarray = aM. getprocessmemoryinfo (PIDS );Memoryinfo pidmemoryinfo = memoryinfoarray [0];Pidmemoryinfo. g
Methods and steps to analyze the high CPU usage of Java threads:
1) To view the CPU occupancy rate TOP10 PID
[Root@qipsuit1 ~]# Ps-aux | Sort-k3nr | head-10
Warning:bad syntax, perhaps a bogus '-'? See/usr/share/doc/procps-3.2.8/faq
root 30428 1.3 12513592 430904 pts/7 Sl 14:20 135:35 java -djava.ext.dirs=/qip/r
From: http://blog.csdn.net/ligt0610/article/details/7265903
1. Use the TOP command to find the process with the highest CPU utilizationRoot @ xxx :/#TopTop-09:36:26 up 22 min, 2 users, load average: 6.02, 5.10, 3.58Tasks: 43 total, 1 running, 42 sleeping, 0 stopped, 0 zombieCPU (s): 1.0% us, 12.6% Sy, 0.0% Ni, 86.4% ID, 0.0% wa, 0.0% hi, 0.0% Si, 0.0% StMem: 514336 k total, 53156 K used, 461180 K free, 6776 K BuffersSwap: 0 k total, 0 K used, 0 K fre
How to locate Java threads with high CPU usageTools:1Jstack:jstack is used to print the Java stack information for a given Java process ID or core file or remote Debugging service, if it is on a 64-bit machine, you need to specify the option "-j-d64", The Jstack usage of Windows only supports the following way. pidstat : pidstat is primarily used to monitor all or specified processes that consume system re
Tags: cat usage inf Deb CPU sequence and Pac AdeAdb:android Debug Bridge is a powerful tool in the Android SDK that allows you to operate an Android emulator or real-world device directly. Detection app:adb shell am start-w $package/. MainactivityStart timeadb shell Dumpsys meminfo $pidSpecify program Memory usageadb shell Dumpsys meminfo $package Specify program Memory usageadb shell Dumpsys cpuinfo $packa
The recent online frequent alarm CPU idle, so after emergency troubleshooting to share to everyone1. Use the top command to get the highest CPU-intensive process number2. View process information for thread numberCommand: Ps-ef|grep 226303. View thread information for the processCommand: Ps-mp22630-othread,tid,time | s
then compresses and collates the memory space.
Reference site: http://blog.csdn.net/lifetragedy/article/details/7708724
2, restart Tomcat after modifying the parameters to see if the parameters are valid
Jmap-heap javapid View JVM Memory Allocations
Jstat-gcutil Javapid 1000 30 View JVM Memory Recycle
The above modifications should be able to complete the high performance of the Tomcat process. If you run over a period of time and look at the usage
the server is difficult to log on to the terminal every afternoon, and the service is handled. # No response is returned for a long time. # After investigation, the shengteng terminal binding program has a large number of invalid connections with each terminal. Even if the resources occupied by terminal # offline are not released, a new connection is created at the next connection, # repeat. Until the available resources of the server are exhausted and the
memory that can be appropriated.The third line of data is swap partition swap, which is what we typically call virtual memory . (swap is frequently used to indicate that there is not enough physical memory.) WORKAROUND: 1.top See which processes consume more memory and kill them; 2.reboot server can effectively release swap)In order to improve disk access efficiency, Linux has done some careful design, in addition to the Dentry cache (for VFS, speed up the file path name to Inode conversion), b
Article Source: http://www.cnblogs.com/cy568searchx/archive/2013/10/28/3391790.htmlYour software stops service at some point, CPU usage reaches 100%+, one possible cause is a dead loop, assuming there is a potential dead loop in the program somewhere, and under certain conditions, this article uses an example to locate the location where the dead loop occurs.When there is a dead loop somewhere in the progra
-Turn off or turn on the first part of the four-line Mem and fifth line Swap information representationN-the list of processes in the order of the PID size (the third part is described later)P-List of processes in the Order of CPU Utilization (third part)M-Arrange the list of processes in the Order of Memory occupancy (Part III)S-Content Update frequencyN-Set the number of processes displayed in the process listQ-Exit Top Use pmap-d + process number;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.