consider the following four main areas:
(1) Methods and modes of programming
A good design can improve the performance of the program, not only for Java, but also for any programming language. Because it makes full use of various resources, such as memory, CPU, cache, object buffer pool and multithreading, so as to design high-
embed this method only if the method belongs to final (final), Private (private), or static. And in some cases, it is also required that it should never have local variables. If your code spends a lot of time calling a method that doesn't contain any of these properties, consider writing a "final" version for it.I/O: buffers should be used whenever possible. Otherwise, it might end up being a single byte of input/output at a time. Note that JDK 1.0 's I/O classes take a lot of synchronization,
By using some assistive tools to find bottlenecks in the program, you can then optimize the code in the Bottleneck section. There are generally two scenarios: optimizing code or changing design methods. We generally choose the latter because it is better to improve the performance of the program than to call some optimized code without calling the following code. A well-designed program can streamline the code and improve performance.Here are some of
thread in the Asynchronouschannelgroup.As can be seen, the biggest difference between Proactor and reactor is:A) There is no need to use a multiplexer.b) handler does not need to perform specific IO operations (such as reading data or writing data), but only performing business processing of IO data.Iv. Summary1, the IO in Java has synchronous blocking, synchronous non-blocking, asynchronous non-blocking three operation modes, respectively, correspon
34
Steve Blank
United States
The author of the startup Owner ' s Manual (entrepreneur's Guide)
35
Oliver Gierke
Germany
SpringSource (now VMware 's division, providing Java Enterprise Application development Platform)
36
Nicolas Fr?nkel
Switzerland
Java EE
37
Blaise Doughan
United States
XML
Performance (lock, garbage collection, compilation optimization, etc.)
33
Extreme enthusiasm
Italy
Agile development
34
Steve Blank
United States
The author of the startup Owner ' s Manual (entrepreneur's Guide)
35
Oliver Gierke
Germany
SpringSource (now VMware's division, providing Java Enterprise Application devel
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. Through the introduction of Java
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. Through the introduction of Java
Java is a widely used software development platform, and it is of great practical significance to learn the optimization methods for Java programs. Java Program Performance optimization: Make your Java program faster and more stable with
. When the session information on a node is modified, the session is broadcast to other Tomcat nodes to keep the session synchronized. Disadvantage is that the network is prone to busy, affecting the efficiency of the system;6. Mature high-availability system solution: Terracotta, which is the Java open source software, a cross-JVM virtual machine dedicated to the distributed cache framework, using it can a
complete request content, in order to perform some column-related calculation processing to obtain the request results, Finally, the results are written back to the client via network IO. Using Bio's coding style, usually the same thread is responsible for a connected IO read, data processing, and IO writeback, which most of the time may be waiting for IO to be ready, with very little time to really take advantage of CPU resources.When the server wants to handle a large number of client connect
Italy
Agile development
34
Steve Blank
United States
The author of the startup Owner ' s Manual (entrepreneur's Guide)
35
Oliver Gierke
Germany
SpringSource (now VMware's division, providing Java Enterprise Application development platform)
36
Nicolas Fränkel
Switzerland
Java EE
37
Blaise Dou
JDBC-driven configuration in your Java application system, Then your Java EE application system has a database concept color, as a mature need to promote the Java application system, not recommended and specific database coupling, of course, how to ensure that the performance of J
want to save a snapshot as you are, so temporarily stop the inbound and outbound operations. Stack tracing contains not only one or two elements in the runtime stack, but also each element in the stack.
If you create an Exception, you have to pay the price. Fortunately, exception capturing does not overhead much, so try-catch can be used to wrap the core content. Technically, you can even throw an exception at will without a high cost.
Garbage collection optimization for high throughput and low latency Java applicationsHigh-performance applications form the backbone of modern networks. LinkedIn has many internal high-throughput services to meet user requests thousands of times per second. To optimize the user experience, it is important to respond to
Garbage collection optimization for high throughput and low latency Java applicationsHigh-performance applications form the backbone of modern networks. LinkedIn has many internal high-throughput services to meet user requests thousands of times per second. To optimize the user experience, it is important to respond to
knowledge of Java heap and garbage collection is critical to the performance tuning of applications;
Java stack: Java resource JVM is a Java-based stack operating mechanism, with an exception, dalvik, the android Virtual Machine of Google's mobile device operating system
Original link: LinkedIn translation: Importnew.com-hejianiLink: http://www.importnew.com/11336.htmlHigh-performance applications form the backbone of modern networks. LinkedIn has many internal high-throughput services to meet user requests thousands of times per second. To optimize the user experience, it is important to respond to these requests with low latency.For example, one feature that users often u
http://geek.csdn.net/news/detail/238243Original: 4 more techniques for Writing Better JavaJustin AlbanoTranslation: VincentTranslator: What would you do if you wanted to optimize the Java code you wrote now? This article describes four ways to improve system performance and code readability, and if you're interested, let's take a look. The translation is as follows.Our usual programming task is to apply the
A small website, such as personal website, can use the simplest HTML static page to achieve, with some pictures to achieve beautification effect, all the pages are stored in a directory, such a site on the system architecture, performance requirements are very simple, with the Internet business is constantly enriched, Website related technology After these years of development, has been subdivided into very fine aspects, especially for large sites, th
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.