Windows has a hard coded file descriptor limit of 2048 when using the C runtime library which limits the number of files that can be opened simultaneously. This can be a significant performance issue when hosting a busy MySQL server on Windows as MySQL uses the C runtime library to access the file system. This limit of 2048 simultaneously opened files can cause performance issues for MySQL when the table cache value needs to be higher than this. To improve the performance of repeatedly opening tables MySQL places these tables in the table cache, however on a busy MySQL server the table cache may need to be set to a value of several thousand for optimal performance. The double whammy here is that the MyISAM database engine in MySQL needs to open two file descriptors for each unique open table. So by the time you account for temporary tables and other files the maximum effective table cache value for MySQL on Windows when using the MyISAM database engine is actually a good deal less than half of the hard coded file descriptor limit of 2048 imposed by Windows (circa 950 in my experience). So what can be done to work around this?
|Increasing MySQL open file limit on Windows||15583||4||8 years 39 weeks ago|
|Backing up and restoring MySQL databases from command line||7219||80%||0||9 years 18 weeks ago|
|Backing up MySQL automatically using a batch file||31267||100%||25||9 years 20 weeks ago|
|Assigning MySQL privileges via the command line||47762||100%||6||9 years 27 weeks ago|
|Creating a MySQL user via the command line||93107||100%||6||9 years 28 weeks ago|
|Creating a MySQL database via the command line||138005||80%||13||9 years 46 weeks ago|
|Install and Configure MySQL 5 on Windows||193474||80%||37||9 years 47 weeks ago|