Here is a summary of the steps to find the thread resource consumption problem for Linux, Sun (Oracle) JDK, in Linux, when the Java process is found to occupy a high CPU resource, and want to further find out which Java thread is consuming CPU resources, Follow these steps to find:
Use the top command to find the
Tomcat + java web programs continue to occupy cpu issues for debugging
Symptom:
Deploy Java web applications in tomcat. After a while, the java Process of tomcat continues to occupy up to 100% of the cpu, leading to blocked web application access.
Possible Cause Analysis:
T
Troubleshoot high CPU usage in Java
THE top Command finds that a process occupies 100% of the CPU. Use the ps command to determine which process is faulty. View the CPU usage list of the thread.
# Ps-mp PID-o THREAD, tid, time
Find the thread with the highest CPU usage,
First view the CPU-intensive process PID through the top command, and then press 1 after top to see each core occupancy ratio
Top
Here because I am using the virtual machine, even if my Java process occupies a high CPU is only a virtual machine, and the entire machine's CPU is not high. We found pid=7957 here.And the
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. pidsta
Linux lookup Java process consumes high CPU cause1. Find a processTop View Process Usage resourcesIt is obvious that Java's two processes 22714,12406 consume too much CPU.2. Find ThreadsUse Top-h-P 3. Finding stack information for JavaConvert thread ID to hexadecimal#printf%x 15664#3d30Then use Jstack to query the thread's stack informationSyntax: Jstack Jstack T
1, phenomenonWrite a storm application that synchronizes the table to hbase primarily via MySQL's binlog. After running for a period of time found that the CPU usage often soared to more than 200%, and then a variety of message accumulation alarm and so on, there are various problems2, research processCPU usage is high, so first find the process, through the top command, monitor the utilization of the process, and then through H, see the
? The query business code sees the EXEC function and verifies that it does result in a clone system call with the following command:shell> strace-eclone php-r ' exec ("ls"); 'Finally, we have a question: if we use Strace to track a process, the output is very small, is not that the process is very idle? Actually try Ltrace, you may find Shia. Remember that there are kernel states and user-State points.This article is from the "Little Rookie" blog, please be sure to keep this source http://baishu
Java gets CPU, memory, disk and other informationSource: Java gets CPU, memory, disk and other informationSource code:http://www.zuidaima.com/share/1550463331306496.htmPackage Com.zuidaima.util;import Java.io.file;import Java.io.InputStreamReader; Import Java.io.LineNumberReader; Import java.util.ArrayList; Import java
Today landed a colleague of the gateway began to think that the hive environment can not landing, a closer look at the next is because the machine is very card, I have to wait a few seconds without landing on the CTRL + C, see the next is a Java process cpu:340.4% mem:14.6%The general workaround is to use the top command to identify the high-resource thread ID and to view all system calls to that thread usi
The production of Java applications, CPU usage has been very high, often up to 100%, through the following steps to solve the perfect, share. 1.jps gets the PID of the Java process. 2.jstack PID >> java.txt Exports the thread stacks that the CPU consumes high processes. 3.top-h-P PID to see which thread of the correspo
The production of Java applications, CPU usage has been very high, often up to 100%, through the following steps to solve the perfect, share.1.jps gets the PID of the Java process.2.jstack PID >> Java.txt Exports the thread stacks that the CPU consumes high processes.3.top-h-P PID to see which thread of the correspondi
1. Locate the PID corresponding to the Java process. Through Task Manager. Linux---Top2. Then export the Java process snapshot. Run the command directly. Stack-l 31372 > c:/31372.stack 3. Under Windows, you can only view the CPU utilization of the process, to see the CPU utilization of the thread with other tools, I us
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
Original source:Http://www.blogjava.net/hankchenPhenomenon:Deploying Java Web Applications in Tomcat, the Java process that appeared after Tomcat for a period of time continued to consume up to 100% of the CPU, causing Web program access to be blocked.Possible cause Analysis:It is possible that the program is actually doing data calculations, or the program enter
Using Tomcat as a Java container, the CPU occupies a high reason, the current company server running on the Ubuntu environment Nginx+tomcat+mysql run for some time after the Java process CPU high, will appear the site can not open the situation. So the following analysis is carried out.
First, look at the Tomcat log,
registers in the CPU.We consider a number of contiguous memory units as a segment, by moving a segment address to the left 4 bits to form the base address, and then through the base site to locate the beginning address of the segment, and finally through the offset address can be accurately positioned to the memory unit in the segment.Since the start address of a memory segment is a segment address left 4 bits, the starting address of the memory segment must be a multiple of 16. and the memory
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.