Improvement of openfire Performance

Source: Internet
Author: User

Openfire supports concurrency of about 6 kb by default. The following are the key points of optimization:

1. asynchronous Io is used at the network layer, and epoll is used in Linux.

Java. NiO,

NIO of JDK 6.0 and JDK 5.0 Update 9 supports epoll (Linux only), It will significantly improve the performance of concurrent idle connections, which is a lot of network server applications.ProgramYes.

The method for enabling is as follows:

 -Djava. NiO. channels. SPI. selectorprovider = sun. NiO. Ch. epollselectorprovider 

For more information about epoll, see the c10k problem.

Http://www.kegel.com/c10k.html

2. optimized the string parsing API. for high-performance servers, XML data still consumes bandwidth and resolution costs.

3. Use cache to reduce database queries. You can place a memcached server between the database and openfire. As far as I know, many large Web 2.0 websites are using this service.

4. enable multiple connection managers.

Other optimizations: TCP stack tuning, Linux Kernel Tuning, and JVM tuning.

Refer:

Http://www.olat.org/docu/install/EnablingTheInstantMessagingComponent.html#Openfire Performance Tuning (cache)

Http://www.igniterealtime.org/about/OpenfireScalability.pdf

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.