| The main application model of Smart Home System is that the user controls the smartterminal by intelligent mobile terminal through server system in public network. In order toimplement the communication between the mobile terminal and the smart terminal and theserver I/O-intensive applications, a server system development program based on ApacheMina was proposed.Firstly, based on the analysis of several common server development models, thenon-blocking I/O model of the Java NIO implementation and the Apache Mina based on JavaNIO was proposed.Secondly, through a comprehensive analysis of the server system requirements, thecommunication protocol of the system was designed; the communication, message handling,logging and other functional modules of system were designed and the system security policywas chosen; a server system development programs based on Apache Mina was proposed.Based on the Mina framework, the server system was implemented with object-orientedmethod.Finally, using LoadRunner11testing tools and manual ways tested the server systemperformance function in a public network environment. When the number of users reached20,000, the server system performance indicators,such as transaction response time, CPU andmemory utilization, met the requirements. Test results show that the design of Smart HomeServer System met the design requirements in functionality and performance in this paper,both in theoretical research and practical application has a high reference value. |