Improve the performance of query system

  First you select a primitive Jsp / Servlet + JavaBeans structure, jsp / Servlet thread is the fact that when concurrent users in the visit, that is multi-threaded, so, in your procedure, the first to visit the same multi-threaded a resource, especially Singleton, the problem has been considerable discussion in front of posts, such as: Originally parallel advance to a single-plank bridge, we must Serial forward, then much of a discount. 

  The best way is, an object as a thread, with 10 threads will visit 10 objects, such highest standards of efficiency, but at the same time note that if you target this Javabeans for each visit to create new, it is possible to waste performance, particularly Javabeans code many, many functions, then use pool, the system was activated, started generating these JavaBeans object in memory. 

  I said that these are functional Javabeans javaBeans through Pool JavaBeans improve functional performance.    There is also a data javabeans, specialized loading data, in part to increase the use of Cache. 

  EJB in the bottom of a state Session Bean Pool has been supported, if you will be functional JavaBeans code ported to achieve Session Beans, will increase the number of concurrent users processing performance, the use of the Local SLSB, closed its network performance loss; closed SLSB Service mechanisms (if not), this will become a pure SLSB Pool javaBeans a special support. 

  As EJB Entity bean is the bottom Cache support, it can be used for data javaBeans entity bean cache, but is generally recommended, preferably in their own to do some of the Web cache, so from the client recently, the best performance. 

  In short, the performance issue is the inadvertent choice of structure, in this forum to see a lot of Jsp + JavaBeans performance problems, why we have a system at the beginning, do not choose EJB powerful scalable architecture? Thus, in expand your system, you do not have headaches for system performance problems, and even lead to performance problems your Jsp + JavaBeans system failure. 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Tags: , ,

Releated Java Articles

Comments

Leave a Reply