Daily work - problems and worries tune

RocketMq tune worry

1, JVM set the maximum, minimum amount of memory

2, the message thread pool maximum, minimum number of

3, how much time consumption

4, how often pull a message

5, it has consumed the news, accounting for 70% of the disk (custom) to clean up (set in the configuration file)

Memory Leak

1, note that event listeners and callbacks, if a listener has been registered, but when the class is no longer used Shique not canceled, a memory leak occurs.

2, need to be set to null when a lot of times when a member variable objects point to other objects no longer in use

3, with a number of close () the connection is closed, such as database connection (dataSourse.getConnection ()), internet access (socket) and a io connection, unless explicitly call its close () method will close its connection, otherwise It is not automatically recovered GC.

4 some unused variables should be destroyed out

Process hang

1, the process of monitoring mechanisms, processes hang up immediately pull

2, hang the entire server, the server may implement hot standby, down from the master node when the master node. Why log analysis by the main down.

Database read and write slow

1, many of the fields into a plurality of tables of the table, not commonly used in a field of the table

2, using an index for quick access to specific information in a database table (index)

3, to prevent the collapse of the entire database of data loss, data backup and restore

 

 

 

 

Guess you like

Origin www.cnblogs.com/guixie/p/11853152.html