Discover java application performance, include the articles, news, trends, analysis and practical advice about java application performance on alibabacloud.com
Using VPA to quickly locate Java application performance bottlenecks
Introduction: Large Java applications call a large number of classes and methods, how to find the application performance bottlenecks in the thousands of lines
Java Application Performance optimization is a commonplace topic, the author based on personal experience, the Java performance optimization is divided into 4 levels: Application layer, database layer, framework layer, JVM layer.
Java Application Performance optimization is a commonplace topic, the author based on personal experience, the Java performance optimization is divided into 4 levels: Application layer, database layer, framework layer, JVM layer.
. This is an update to the version of the embedded Java (Java me and Java EE and Se installed servers and pc vms.
Good object-oriented design and architecture, application design model.For Java APIs, check whether the required functions are ready-made and can be called. M
, so in order for its advantages to fully play out, to avoid excessive thread context switching, the more ideal scenario is:Number of threads = number of CPU cores +1It can also be set to CPU cores, which depends on the version of the JDK and the CPU configuration (the server's CPU has Hyper-threading). For JDK1.8, it adds a parallel computation, a computationally intensive number of ideal threads = CPU Core Threads
Get CPU Cores in Java meth
, if the memcached server is also running on this machine and listening on port 11211 by default, just perform telnet localhost 11211. The following commands are important for Telnet management memcached:
set Add a new project to the cache , using the format is Set
get returns the value of the cache key , call get
add Add a new key , provided that the key does not exist before, such as add
replace overrides the value of a key , if this key already exists, such as replace
default, only to perform telnet localhost 11211. The following commands are important for Telnet management memcached:
set Add a new project to the cache , the format is Set
get returns the value of the cache key , call get
add Add a new key , provided that the key does not exist before. For example, add
replace Overrides a key Value, provided that the key already exists. For example, replace
delete Delete the cache entry for a key, call delete
Figure 4 sh
obtain the cause and cause of the problem, which usually leads to less downtime and better MTTR.
Slow SQL
Almost every application uses a JDBC database. A common problem in applications is poor SQL Performance, which is sometimes caused by the absence of an index on a field, the amount of data obtained, or other reasons. This is not conducive to application
NetBeans IDE 6.0 contains a powerful profiling tool that provides important information about the run-time behavior of your application. The NetBeans profiling tool allows us to easily monitor the application's thread state, CPU performance, and memory usage in the IDE, with relatively low overhead.
This article outlines the profiling tools that are included in the IDE and guides you through the quick star
GAE Java Application Performance Optimization
Reprint please retain the author information:
Author: 88250
Date: February 8, 2011
This article is the author of the development of GAE application performance optimization experience, mainly from the framework, caching, asynch
The popularity and wide application of Java, and its mechanism based on virtual machine operation, make the performance problem more and more important. This paper analyzes Java application design from the perspective of Java Virt
The most obvious performance problem is that the response time of the Web page slows down. In the Java EE system, the following more basic symptoms are often embodied:
Use of Application server resources
Usage of the JVM heap
Usage of system resources
Use of database resources
Network activity
These phenomena indicate that the
-ms column shows how long this request will take to complete, and the final success column shows whether the request was executed successfully. The bottom of the interface you can also see some statistics, the most concern should be average bar, that is, the corresponding average time.# Start execution of test planYou can now execute the test plan by clicking the menu bar run-start. Here is the result diagram for the test plan:Figure V: Results showJMeter is used for energy or
Recently, some friends talked about system performance analysis. The best way to analyze why a Java-based system is slow is to use profiler.
The principle of profiler is to use some drivers and JVM bindings to read the JVM runtime and get the time from loading the class to the execution to the end of the entire process, so as to know the methods of those functions make your system slow.
Good open-source pro
Introduction
System log is an important tool for application problem diagnosis and operation maintenance. Logback, log4j are the logging APIs that are commonly used in the Java platform. At present, most of the products are only the important parameters of the system, state changes and abnormal information through the log output. This article will introduce the PERF4J is a dedicated
In parts 1th and 2nd of this series (a total of three articles), I introduced the techniques and patterns for monitoring Java applications, in which I focused on the JVM and application classes. In this final installment, I'll introduce tips for collecting performance and availability data from application dependencies
EventSource interface.
This article describes how to use the asynchronous Beans EventSource to construct a thread factory, which includes a downloadable example called a concurrency adapter (Concurrent Adapter) that can be used with a third-party thread pool implementation to create the ability to A fast thread pool that works on a WebSphere application Server.
Global thread pool
WebSphere application S
from:http://chenjianjx.iteye.com/blog/1681681You find that your machine has a CPU usage of 100%, and it is found to be the result of your Java application, but which code in this application eats the performance?Here's a share from a colleague:1. Find out the thread that eats the p
1. BlackBerry Object handler to be sufficient
Programs cannot consume too many object handles
2. Or the BlackBerry object Handler, in Persistant store persistent object handles is also limited, to save the use
Reference: Performance of the persistent store
(BlackBerry manuals Help > documentation for developers > Java Development Guides and API Reference > D ATA storage-development guide-blackberry
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.