Chapter 11 . Server Configurations 299 Figure 11-8: (Http web server)
Sunday, September 30th, 2007Chapter 11 . Server Configurations 299 Figure 11-8: The [mysqld] section from the my-huge.cnf example configuration file for MySQL. When the performance of the MySQL server is degraded, it is time to analyze why it is happening. One item that can assist, though it does create performance degradation itself, is the log option in the configuration file. Using the logfunction, you can ensure that all queries to the server are logged (see Figure 11-9). Using this log- file, you can then determine whether queries can be optimized or whether you have to fine-tune a server variable. To enable the logfunction, add the keyword log within the [mysqld] section of the MySQL configuration file. Other logging options, as defined in Table 11-1, can assist in diagnosing what parameters and variables are working and which ones might not be. With some patience while tuning the server, you can use these logging options to help make MySQL s performance exceptional. Tip Be sure to turn off logging when it s needed; it can degrade performance. Caution Be careful not to increase too many values at once or make memory-based values too large. This can cause disk-swapping behavior as the server runs out of available RAM and has to use (slower) virtual memory.
We recommend high quality webhost to host and run your jsp application: christian web host services.