tencent cloud

TDSQL Boundless

max_allowed_packet

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-05-26 16:30:18

Feature Description

max_allowed_packet is used to specify the maximum packet size, in bytes, allowed during a single packet transmission between SQLEngine and a client. If a packet sent by a client exceeds the value of max_allowed_packet, SQLEngine rejects the packet.
When adjusting the max_allowed_packet parameter, consider the following factors:
System resources: Set an appropriate value based on the actual server resources. When resources are sufficient, you can appropriately increase the value of max_allowed_packet to improve the system's concurrent processing capability. When resources are constrained, you need to decrease the value of max_allowed_packet to avoid resource exhaustion.
Application requirements: Set an appropriate value based on the actual requirements of the application. For applications that require larger packet sizes, you may need to increase the value of max_allowed_packet to meet concurrent demands. For applications that require smaller packet sizes, you can decrease the value of max_allowed_packet to conserve system resources.
Database performance: Set an appropriate value based on the actual performance of the database. For databases with better performance, you may need to increase the value of max_allowed_packet to improve concurrent processing capability. For databases with poorer performance, you need to decrease the value of max_allowed_packet to avoid overloading the database.

Attribute Description

Required
Description
Parameter Type
ULONG
Default Value
67108864
Value Range
1024 ~ 1073741824
Note:
The value of this variable should be an integer multiple of 1024. If the value is not divisible by 1024, a warning will be issued and the value will be rounded down. For example, if set to 1025, the actual value used in TDSQL Boundless will be 1024.
Effective Scope
GLOBAL
SESSION
Restart Required
No

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック