IntroductionThis article is the second article in the Java Performance Analysis tool series, the first article: Operating system Tools. In this article, you will learn more about Java applications and the JVM itself using built-in Java monitoring
Whether you're just getting started, or you've been developing for a while, programming with the right tools will help you get more done, and it will allow you to write code faster, quickly and timely to identify bugs that can make your code more quality.If you choose a programming language that is Java, you can find tools that focus on every aspect of developmen
During application maintenance for the customer, I noticed some performance problems under high load conditions. Theoretically, increasing the load on the application will reduce the performance, but I think the performance drop rate is much higher than the load increase. At the same time, I also found that, performance
JUnit.
JUnit is the originator of unit testing. Other tools are often created on the basis of JUnit, because JUnit provides two features required for both unit test and functional test: assertion check and result report. You can find JUnit at www.junit.org.
Httpunit
Httpunit is a testing framework built on JUnit. It supports black box
to disk per secondKB_CCWR/S: The number of disk writes per second that the process is canceling (in kilobytes)Command: Pull up the commands corresponding to the processPidstat [-P PID]-R [-T] 1 3 display memory information650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/8E/AC/wKioL1jI4LPRFg3WAAAVeqTOCp8268.png "title=" _ 20170315143457.png "alt=" Wkiol1ji4lprfg3waaaveqtocp8268.png "/>MINFLT/S: The total number of minor page faults (no paging of memory pages from disk) per second for
to disk per secondKb_ccwr/s: the number of disk writes per second that the process is canceling (in kilobytes)Command: pull up the commands corresponding to the processpidstat [-p pid]-r [-t] 1 3 display memory information650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/8E/AC/wKioL1jI4LPRFg3WAAAVeqTOCp8268.png "title=" _ 20170315143457.png "alt=" wkiol1ji4lprfg3waaaveqtocp8268.png "/>Minflt/s: the total number of minor page faults (no paging of memory pages from Disk) per second for
//open an article titled Building a Mirror from Dockerfile and publishing a Web projectBayiWebdriver.findelement (By.partiallinktext ("Build image from Dockerfile and publish Web project") . Click (); the theThread.Sleep (1000); - //move to the bottom - //( (Javascriptexecutor) webdriver). Executescript ("Window.scrollto (0, Document.body.scrollHeight)"); the //moves to the specified coordinates (moving relative to the current coordinate) the((Javascript
Directory1. Definition of class:Use of 2.Junit tools:3. Unit test the class and view the results:4. Record the time of each stage5. Record the process on your personal blog (GitHub address)1. Class definition: A class is a generic term for the same thing, a class is a carrier of the properties and behavior of the encapsulated object, and conversely, a class of entities with the same properties and behavior is called classes.Use of 2.Junit tools:The fi
end of the set.
Iii. Performance Testing
These classes have many different functions that can be tested. The shortlist is frequently used because it is considered to have good performance in random insert and delete operations. Therefore, the following analysis focuses on the performance of the insert operation
introduced Java package run may appear some error, basically is the jar file situation, as long as the LoadRunner classpath to find the basic no problem, there is the JDK must first import, otherwise it will directly prompt the process is terminated,Cannot run Java file4, LoadRunner for the introduction of Java files in a variety of ways, here the way to call th
Many developers think they understandJavaProgramming, the fact is that most developers only understand the Java platform, and what they learn is enough to copeWork. The author will explore the core functions of the Java platform in depth, reveal some little-known facts, and help you solve the most difficult programming difficulties.
When the application performance
Performance testing ToolsFor Java developers, it is cumbersome to learn performance testing tools.But sometimes there is a need for performance testing.JunitperfJunitperf is a performance
Java 1.5 and above are built in virtual machinesProgramPerformance tracking function, and provides Java profiling API, JPA for short, you can search for 'javaProfiling '. Java also provides a simple performance tracking tool jconsole, which can display the memory, threads, and other usage conditions. Also provided by S
JMeter is an Apache Jakarta project that is used for software stress testing (Load test), which allows for stress testing not only for HTTP, but also for databases (via JDBC), FTP, Web Service, Java objects, and more. Recently, it was used in our project. Our project is based on the BEA WebLogic, a Java EE project that
Recreate the classic, uncover the face of the pseudo-tall, easy to handle jvm!1. JVM base (selection, memory model, GC, etc.)2. JVM Key Parameters3. JVM monitoring (commands, tools)4. Typical JVM performance issues (CPU, memory leak, thread lock, etc.)Address: http://edu.51cto.com/course/course_id-4868.htmlPS: with Tomcat video betterAddress: http://edu.51cto.com/course/course_id-4166.html"Video"
In JDK 1.4, the NIO package is added, which is aimed at improving the IO speed. However, we all know that with the NIO package added, the old Io package is actually overwritten. Even if the NIO package is not displayed, You can obviously feel the speed improvement.
In addition, many people only know the inputstream or outputstream of the buffer when using the IO package, and the speed will be faster.
So, is there a gap in speed between the above? What is the gap? We will perform an I/O operation
Original: Java vs. io and NiO file read/write performance testSource code: Http://www.zuidaima.com/share/1550463508466688.htm1. NIO uses a way closer to the operating system to execute IO: Channels and buffers, as the name implies, data source data is transmitted by the buffer through the channel. 2. After JDK5, the raw IO system was optimized for NIO at the bottom, which can be found through Sun's publishe
interface function while encapsulating some of the application logic. Server-side database servers primarily provide data storage capabilities, and also provide partial application logic through triggers and stored procedures.
C/S/S structure is the client/application server/Database server three-tier structure, the middle of the addition of application server, usually implement the application logic, is the connection between the client and the database server bridge. It responds to requests f
. If the application you are publishing is not a relative directory, but a war package, then you need to read the following chapters below. If it is ear (EJBs), then you need to read some of the following User Guide advanced content. 1 jar Package There are two jar packages in Javamelody.zip, one is Javamelody.jar and the other is Jrobin-x.jar. Copy the two jar packages to the Web-inf/lib directory in the webapp corresponding to the war package. Or use Maven to add Javamelody-core dependent f
software and hardware products *.
Load TestingWe have all experienced load testing during performance testing and debugging. In that environment, it means that automatic tools are used to continuously increase the load on the system. For Web applications, the load is the number of concurrent users or HTTP connection
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.