Performance Monitoring"

From Documentation
Line 11: Line 11:
  
 
{{ZKDevelopersReferenceHeadingToc}}
 
{{ZKDevelopersReferenceHeadingToc}}
 
=Loading Monitors=
 
 
To know the loading of an application, you could implement <javadoc type="interface">org.zkoss.zk.ui.util.Monitor</javadoc> to count the number of desktops, sessions and requests.
 
 
Once implemented, you could register it by specifying the following in <tt>WEB-INF/zk.xml</tt> (assume the class is called foo.MyStatistic):
 
 
<source lang="xml">
 
<zk>
 
    <listener>
 
        <listener-class>foo.MyStatistic</listener-class>
 
    </listener>
 
</zk>
 
</source>
 
  
 
=Sample Implementations=
 
=Sample Implementations=

Revision as of 08:47, 29 November 2010


Performance Monitoring


To improve the performance of an Ajax application, it is better to monitor the performance for identifying the bottleneck. Depending on the information you'd like to know, there are a few approaches.

  • PerformanceMeter: Monitoring the performance from network speed, server-processing time and the client-rendering time.
  • EventInterceptor: Monitoring the performance of each event listener.
  • Monitor: Monitoring the number of desktops, sessions and other system load.
  • There are a lot of performance monitor tools, such as VisualVM and JProfiler. They could provide more insightful view of your application.



Sample Implementations

For sample implementations, you might take a look at the following articles:

Version History

Last Update : 2010/11/29


Version Date Content
     



Last Update : 2010/11/29

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.