|
Other FactorsBufferingProviding larger buffers for the HTTP Listeners allows more efficient processing and generation of content, with less blocking and content switching. It also allows the TCP/IP protocol to more efficiently run it's sliding window protocol and avoid network latencies. Prior to Jetty release 4.2.10, the default buffer size was 4096 bytes. This has now been increased to 8192 bytes. The buffer size can be set as follows:
SecurityAuthenticated security constraints on a webapp can be expensive to check as often a realm is implemented using crypto algorithms or with a remote AAA server or database involved. Frequently a webapp page is constructed with many images that are not sensitive and do not need to be protected with an authenticated security constraint. Significant performance gains can be obtained by excluding such static resources from a security constraint. For example consider a webapp that protects the directory /private with an authenticated constraint, but has a number of non-sensitive images in the /private/images directory, then the following web.xml excerp can be used to protect the private directory without the expense of protecting the images directory. ... LoggingLogging of requests can add extra CPU load per request and an extra synchronization point. The following points should be considered to optimize the logging configuration:
The following request log configuration applies the points above.
ApplicationThe way a web application is written can greatly effect the efficiency of the service. The following points should be considered when writing or reviewing your webapplication:
|
|
||||||
© 2003 Core Developers Network Ltd "Core Developers Network", the stylized apple logo and "Core Associates" are trademarks of Core Developers Network Ltd. All other trademarks are held by their respective owners. Core Developers Network Ltd is not affiliated with any of the respective trademark owners. |