<p dir="auto">i connect  apache-shardingsphere-5.0.0-alpha-shardingsphere-proxy by mysql client （8.0.25） ,when i executed some command ,a error was reported: as follows<br>
mysql -uroot -proot -h10.0.0.1 -P 3307<br>
root@10.1.1.1(sharding_db) 14:45&gt;show tables;</p>
<p dir="auto">ERROR 2027 (HY000): Malformed packet<br>
No connection. Trying to reconnect...<br>
Connection id:    10<br>
Current database: sharding_db</p>
<p dir="auto">The version of mysql client :<br>
mysql  Ver 8.0.25 for Linux on x86_64 (MySQL Community Server - GPL)</p>
<p dir="auto">After some troubleshooting, it is suspected that the MySQL client version is not compatible with proxy。so  i replaced mysql client to<br>
/usr/local/mysql8020/bin/mysql --version<br>
/usr/local/mysql8020/bin/mysql  Ver 8.0.20 for Linux on x86_64 (MySQL Community Server - GPL)<br>
and<br>
/root/mysql  Ver 14.14 Distrib 5.7.13, for linux-glibc2.5 (x86_64) using  EditLine wrapper<br>
shardingsphere@10.0.0.1(sharding_db) 14:52&gt;show tables;<br>
+---------------------+<br>
| Tables_in_demo_ds_1 |<br>
+---------------------+<br>
| t_no_shard          |<br>
| t_order             |<br>
| t_order_item        |<br>
+---------------------+<br>
The error described above did not recur 。</p>
<p dir="auto">Here are some of my main configurations,only the  datasource of the default config has been modified<br>
<strong>server.xml</strong><br>
governance:<br>
name: governance_ds<br>
registryCenter:<br>
type: ZooKeeper<br>
serverLists: 10.0.0.1:2181<br>
props:<br>
retryIntervalMilliseconds: 500<br>
timeToLiveSeconds: 60<br>
maxRetries: 3<br>
operationTimeoutMilliseconds: 500<br>
overwrite: false<br>
authentication:<br>
users:<br>
root:<br>
password: root<br>
sharding:<br>
password: sharding<br>
authorizedSchemas: sharding_db</p>
<p dir="auto">props:<br>
max-connections-size-per-query: 1<br>
acceptor-size: 16  # The default value is available processors count * 2.<br>
executor-size: 16  # Infinite by default.<br>
proxy-frontend-flush-threshold: 128  # The default value is 128.</p>
<p dir="auto"><strong>config-sharding.yaml</strong><br>
schemaName: sharding_db</p>
<h1 dir="auto"></h1>
<p dir="auto">dataSourceCommon:<br>
username: shardingsphere<br>
password: 123456<br>
connectionTimeoutMilliseconds: 30000<br>
idleTimeoutMilliseconds: 60000<br>
maxLifetimeMilliseconds: 1800000<br>
maxPoolSize: 50<br>
minPoolSize: 1<br>
maintenanceIntervalMilliseconds: 30000</p>
<p dir="auto">dataSources:<br>
ds_0:<br>
url: jdbc:mysql://10.0.0.2:3306/demo_ds_0?serverTimezone=UTC&amp;useSSL=false<br>
ds_1:<br>
url: jdbc:mysql://10.0.0.2:3306/demo_ds_1?serverTimezone=UTC&amp;useSSL=false</p>
<p dir="auto">rules:</p>
<ul dir="auto">
<li>
<p dir="auto">!SHARDING<br>
tables:<br>
t_order:<br>
actualDataNodes: ds_${0..1}.t_order_${0..1}<br>
tableStrategy:<br>
standard:<br>
shardingColumn: order_id<br>
shardingAlgorithmName: t_order_inline<br>
keyGenerateStrategy:<br>
column: order_id<br>
keyGeneratorName: snowflake<br>
t_order_item:<br>
actualDataNodes: ds_${0..1}.t_order_item_${0..1}<br>
tableStrategy:<br>
standard:<br>
shardingColumn: order_id<br>
shardingAlgorithmName: t_order_item_inline<br>
keyGenerateStrategy:<br>
column: order_item_id<br>
keyGeneratorName: snowflake<br>
bindingTables:</p>
<ul dir="auto">
<li>t_order,t_order_item<br>
defaultDatabaseStrategy:<br>
standard:<br>
shardingColumn: user_id<br>
shardingAlgorithmName: database_inline<br>
defaultTableStrategy:<br>
none:</li>
</ul>
<p dir="auto">shardingAlgorithms:<br>
database_inline:<br>
type: INLINE<br>
props:<br>
algorithm-expression: ds_${user_id % 2}<br>
t_order_inline:<br>
type: INLINE</p>
</li>
</ul>
<p dir="auto">MySQL client connection error</p>
<h2 dir="auto">Bug Report</h2>
<h2 dir="auto">num     #instances         #bytes  class name</h2>
<p dir="auto">1:        723701     1723060848  [C<br>
2:      23438021      562512504  java.util.LinkedList$Node<br>
3:      22989567      551749608  org.apache.shardingsphere.sql.parser.sql.segment.dml.expr.simple.ParameterMarkerExpressionSegment<br>
4:         19796       24885584  [B<br>
5:        720560       17293440  java.lang.String<br>
6:        348547       11153504  org.apache.shardingsphere.sql.parser.sql.segment.dml.column.ColumnSegment<br>
7:        284008        9088256  java.util.LinkedList<br>
8:        374714        8993136  org.apache.shardingsphere.sql.parser.sql.value.identifier.IdentifierValue<br>
9:         95366        8392208  java.lang.reflect.Method<br>
10:        113274        7787336  [Ljava.lang.Object;<br>
11:        246617        <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/shardingsphere/commit/5918808957c44723865570c30652cac234651f4c/hovercard" href="https://github.com/apache/shardingsphere/commit/5918808957c44723865570c30652cac234651f4c"><tt>5918808</tt></a>  org.apache.shardingsphere.sql.parser.sql.segment.dml.item.ColumnProjectionSegment<br>
12:        170195        5446240  java.util.concurrent.ConcurrentHashMap$Node<br>
13:        105644        4225760  java.util.LinkedHashMap$Entry<br>
14:         34045        3716200  java.lang.Class<br>
15:        110722        3543104  java.util.HashMap$Node<br>
16:         35275        3271760  [Ljava.util.HashMap$Node;<br>
17:         20645        3092088  [I<br>
18:         89022        2848704  org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.PredicateSegment<br>
19:         51995        2495760  org.aspectj.weaver.reflect.ShadowMatchImpl<br>
20:         64925        2077600  org.antlr.v4.runtime.atn.ATNConfig<br>
21:         84638        2031312  java.util.ArrayList<br>
22:          3380        1859456  [Ljava.util.concurrent.ConcurrentHashMap$Node;<br>
23:         51995        1663840  org.aspectj.weaver.patterns.ExposedState<br>
24:         69247        1661928  org.apache.shardingsphere.sql.parser.sql.segment.dml.assignment.InsertValuesSegment<br>
25:         29387        1645672  java.util.LinkedHashMap<br>
26:         71822        1538608  [Ljava.lang.Class;<br>
27:         31810        1526880  java.util.HashMap<br>
28:         53692        1417528  [Z<br>
29:         16298        1303840  java.lang.reflect.Constructor<br>
30:         26018        1248864  com.google.common.cache.LocalCache$StrongAccessEntry<br>
31:         25998        1247904  com.google.common.cache.LocalCache$SoftValueReference<br>
32:         51996        1247896  [Lorg.aspectj.weaver.ast.Var;<br>
33:         48475        1163400  org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.value.PredicateCompareRightValue<br>
34:         23523        1129104  org.apache.shardingsphere.sql.parser.sql.statement.dml.SelectStatement<br>
35:         27653        1106120  com.sun.org.apache.xerces.internal.dom.DeferredAttrImpl<br>
36:         33396        1068672  com.alibaba.metrics.LongAdder<br>
37:         63699        1019184  java.lang.Object<br>
38:         40309         967416  org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.value.PredicateBracketValue<br>
39:         40309         967416  org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.value.PredicateInRightValue<br>
40:         40309         967416  org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.value.PredicateLeftBracketValue<br>
41:         40309         967416  org.apache.shardingsphere.sql.parser.sql.segment.dml.predicate.value.PredicateRightBracketValue<br>
42:         23212         928480  com.sun.org.apache.xerces.internal.dom.DeferredTextImpl</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">org.apache.shardingsphere<br>
sharding-jdbc-spring-boot-starter<br>
4.1.1</p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<h3 dir="auto">Expected behavior</h3>
<h3 dir="auto">Actual behavior</h3>
<h3 dir="auto">Reason analyze (If you can)</h3>
<p dir="auto">SQLParseResultCache GC不了，即使我手动调用System.gc()。cache中的软引用依然存在<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11569710/132796828-6aeb1388-1e69-4da8-9583-26455274d39c.png"><img width="1120" alt="wecom-temp-130d4c4bea4878d4babcbd4400a15f4b" src="https://user-images.githubusercontent.com/11569710/132796828-6aeb1388-1e69-4da8-9583-26455274d39c.png" style="max-width: 100%;"></a></p>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>