当前位置:网站首页>"Could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32"
"Could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32"
2022-07-26 09:07:00 【Angry devil】
Just restarted nginx, result , The service doesn't work , Go to the error log file and have a look , result , I found this mistake : could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32 I searched the related posts , quite a lot , The solution is simple , Is in the http layer , Add the following : server_names_hash_bucket_size 64; #64 This value , It can be adjusted accordingly The reason for this error is : because Nginx Medium server Configuration in progress server_name The definition value of is too long ! What then? Server_name Too long will cause this problem , That's the key : Server name hash The table is ordered by server_names_hash_max_size and server_names_hash_bucket_size Controlled by . according to Nginx Analysis of official documents ,server_names_hash_bucket_size The default value of may be 32 It could be 64, Or some other value , The size of this default value depends on CPU Cache line length of . Parameters hash bucket size Always equal to hash The size of the table , And it's a multiple of the cache size of the processor along the way . After reducing the number of accesses in memory , Speed up the search in the processor hash Table key values become possible . If hash bucket size Equal to the size of the processor cache , So when it comes to finding keys , In the worst case, the number of lookups in memory is 2. The first time is to determine the address of the storage unit , The second time is to find the key value in the storage unit . therefore , If Nginx Give the need to increase hash max size or hash bucket size A hint of , So the first thing is to increase the size of the previous parameter .
边栏推荐
- Web overview and b/s architecture
- ext4文件系统打开了DIR_NLINK特性后,link_count超过65000的后使用link_count=1来表示数量不可知
- ONTAP 9文件系统的限制
- Elastic APM安装和使用
- Datax的学习笔记
- Espressif plays with the compilation environment
- How to quickly learn a programming language
- 原根与NTT 五千字详解
- Numpy Foundation
- Regular expression: judge whether it conforms to USD format
猜你喜欢

Horizontal comparison of the data of the top ten blue chip NFTs in the past half year

NFT与数字藏品到底有何区别?

ext4文件系统打开了DIR_NLINK特性后,link_count超过65000的后使用link_count=1来表示数量不可知

redis原理和使用-基本特性

Qtcreator reports an error: you need to set an executable in the custom run configuration

220. Presence of repeating element III

李沐d2l(四)---Softmax回归

Matlab 绘制阴影误差图

巴比特 | 元宇宙每日必读:元宇宙的未来是属于大型科技公司,还是属于分散的Web3世界?...

论文笔记: 知识图谱 KGAT (未完暂存)
随机推荐
ES6 modular import and export) (realize page nesting)
Typescript encryption tool passwordencoder
Unity topdown character movement control
Study notes of automatic control principle -- correction and synthesis of automatic control system
pycharm 打开多个项目的两种小技巧
Study notes of canal
巴比特 | 元宇宙每日必读:元宇宙的未来是属于大型科技公司,还是属于分散的Web3世界?...
Day06 homework -- skill question 1
Sklearn machine learning foundation (linear regression, under fitting, over fitting, ridge regression, model loading and saving)
The essence of attack and defense strategy behind the noun of network security
JVM触发minor gc的条件
NFT与数字藏品到底有何区别?
十大蓝筹NFT近半年数据横向对比
tornado之多进程服务
《Datawhale熊猫书》出版了!
Pop up window in Win 11 opens with a new tab ---firefox
[leetcode database 1050] actors and directors who have cooperated at least three times (simple question)
Typescript snowflake primary key generator
The largest number of statistical absolute values --- assembly language
at、crontab