A node in a system is down due to memory overflow. The middleware of the system is weblogic, And the oracle of the database.
1. First Use IBM HeapAnalyzer to analyze the dump file during memory overflow, find the most memory-consuming requests, and
1. Strategy Mode VS simple factory
A simple factory is only a production object,
The policy mode is to use specific methods for production Objects Based on different objects at the same time.
2 Principles
(1) single responsibility
(2) reverse
First, you need to build the environment, that is, jdk and tomcat. You do not need to install it if you do not need to use it on the web! There is also the configuration, that is, the default comm. jar, javax. comm. properties, win32com. dll files
1. CollectionAPI
A Collection is a Collection of objects ). Collections are an important data interface in programming. Java provides a collection class library called CollectionAPI.
A set uses an object to represent a group of objects. Each object
The basic feature of NHibernate is to map object-oriented programming languages to relational databases. In NHibernate, persistence Object PO (Persistent Object) is used to complete persistence operations, PO operations can only be synchronized to
Design Pattern defines the State pattern: allows an object to change its behavior when its state changes. It seems that the object has modified its class. Alias: status object (Objects for State ).The State mode can be used in the following two
1. Visitor mode definition:
Indicates an operation that acts on each element in an object structure. It allows you to define new operations acting on these elements without modifying the element classes, that is, to dynamically add new methods.
Ii.
After the school competition is over, this school competition is very poor. There is no algorithm question, 2 water questions, 1 greedy, probability DP, DP, and number questions. DP hasn't started research yet. No number theory at all. The
DescriptionEnter N integers, then N integers. Create a single-chain table in reverse order based on these integers, and traverse the data of the output single-chain table in sequence.InputEnter an integer N in the first line ;;In the second row,
Description
A sequence has N numbers: A [1], A [2],…, A [N], and obtain the length of the longest non-descending subsequence.Train of Thought Analysis
Write code
Recursive code seems to be easier to understand, but the code with a circular method
Introduction to the hashcode method in Java
The hash table data structure is certainly not unfamiliar to most people, and hash tables are used in many places to improve the search efficiency. There is a method in the Object class of Java:
public
Question: enter an integer s to print all consecutive integer sequences (containing at least two numbers) for s ). For example, if input 9 is used, two sequences (2, 3, 4, 4, and 5) are output.
Solution 1: because a sequence requires at least two
Overview:
In a given undirected graph G = (V, E), (u, v) represents the edge connecting the vertex u and the vertex v (I .e.), while w (u, v) indicates the weight of the edge. If T is a subset of E (that is, a non-circular graph, and w (T) is the
For most systems, permission management is required to determine what users can see. How can we implement permission verification in Spring MVC? Of course, we can continue to use the Filter in servlet for implementation. However, with the help of
24. Map interface:
The Map interface defines the method for storing "key-value ing pairs". The Map cannot contain duplicate "keys ",
The "key-value" ing pairs stored in the Map implementation class are uniquely identified by keys. The "key" at the
This article was originally created on. I have a new experience in this review, so I will edit it again.
2014-02-12 09: 26:
2-second shard of sat! I read my papers for a long time yesterday (from Zhao Shuang and Yu Miao) and finally understood it!
25. Collections class:
Collections is a tool class used to operate Collections. It mainly provides sorting algorithms, including random sorting and reverse sorting.
The Collections class provides some static methods to implement some common
In general, there are three main differences between IO and NIO in java:
IO
NIO
Stream-oriented
Buffer-oriented
Blocking IO
Non-blocking IO
None
Selectors)
1. Stream-oriented and
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service