Wednesday, April 2, 2008

Performance tuning

Whenever your application is connecting to a resource, such as a database, running in another process, you should optimize by focusing on the time spent connecting to the resource, the time spent sending or retrieving data, and the number of round-trips.

- HTTP: apply caching, HTTP compression
- Database: connection pooling, store procedure (save round trips)

To add cache control in Apache config httpd.conf


<Directory "C:/webnms/webclient">
   <Files ~ "\.(gif|jpe?g|png|css|js)$">
     Header set Cache-Control "public,max-age=3600"
   </Files>
</Directory>

No comments: