We present a web system architecture using ontologies to improve the behavior of the system from the performance viewpoint. Since web system performance indexes depend on state and parameter values on runtime period, the proposed system configuration will change during this period. In order to perform this change, the web system is monitorized and gathered information stored into a knowledge base. We also model the performance of the different web system elements intervening in the configuration using the knowledge base expressed by means of ontologies. An example of the use of this ontology in cache tier is also presented. We propose the use of performance reasoners to change the configuration during runtime period based on the information supplied from the knowledge base.