About the connector of Mina

Source: Internet
Author: User
Because Mina is used in actual work, you have been paying attention to its mail-list.

A problem recently discussed in the mail-List of Mina is the manual close ctor provided. This problem can hurt me.

The close method is not provided for socketconnector or vmpipeconne, and will not be released automatically.

Originally made a networkProgramThe client will create new socketconnector every time it is re-created. However, socketconnewill not be recycled by GC, And the threads and memory used will not be automatically released, this program will be re-connected when the server is disconnected. Therefore, when the server is restarted or the network is interrupted, memory leakage occurs, and the program slowly occupies more memory until it crashes!

To solve this problem, either use Singleton or 1.1.3 to be released!

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.