iOS下 HTTP/2(TCP) 的工作模式,内存占用越来越高,自动重启了,有内存泄漏?
Mac 下内存占用也不小160多MB了,使用 http/1.1没有这问题(https),使用http/2 会出现
都是最新的,iOS build 3661,Mac 是6.5.0-10900,下面是 iOS下部分日志
2026-04-10 13:28:39.626517 <NOTIFY> [SGLog] Memory usage: 39.86MB (received memory warning)
2026-04-10 13:28:39.663800 <NOTIFY> [SGLog] Memory usage: 39.99MB (received memory warning)
2026-04-10 13:28:39.664216 <NOTIFY> [SGLog] Memory usage: 40.00MB (received memory warning)
2026-04-10 13:28:39.615719 <WARNING> [PacketTunnelProvider] Using too much memory (40.00MB), entering low memory mode, performance may be limited.
2026-04-10 13:28:39.615792 <NOTIFY> [PacketTunnelProvider] General cache size: 124 KB
2026-04-10 13:28:39.616198 <WARNING> [BaseObject] Instance count:
SGSocket-86
SGConnectionLimiter-1
KDLRUCache-4
SGHTTPEngine-1
SGConnectorMasterConnectionManager-1
SGConnectorPool-1
SGWGSession-1
SGDNSServer-1
SGUnifiedConnection-83
SGJournalInterfaceSessionRecord-2
SGProxyServerManager-1
SGUDPForwarder-1
SGSocketConnectJob-2
SGTLSWrapperSocketCompatible-514
SGWGDNSClient-1
SGFileDescriptor-117
SGHTTPController-1
SGJournalRequestRecord-536
SGOutgoingSelector-1
SGTMain-1
SGJSVMServer-1
SGController-1
SGWGManager-1
SGNetworkQuality-1
SGTRuleUsageDumper-1
SGDNSClient-1
SGEEventCenter-1
SGTrustTunnelConnector-514
SGICMPContext-21
SGDNSClientResult-209
SGHTTPClient-1
SGUDPConnectorDirect-4
SGTrafficStatManager-1
SGConnectionLimiterContainer-1
SGUDPForwarderContextDrop-17
SGJournalSessionRecord-105
SGControlInterface-1
SGExternalResource-1
SGUDPSocket-4
SGICMPForwarder-1
SGProxyTestManager-1
SGNTPClient-1
SGTCPConnectionManager-1
STNetworkInterfaceManager-1
SGDirectConnector-7
SGLwipSocket-83
SGListener-6
SGTrustTunnelH2Stream-507
SGVirtualIPDatabase-1
SGPonteManager-1
SGConnectionSetupContext-14
SGUDPForwarderContext-4
SGJournalRecordContainer-1
SGJSVM-1
SGTrustTunnelH2Master-507
2026-04-10 13:28:39.617435 <NOTIFY> [SGProxyServerManager] 0 idle outgoing connections purged
2026-04-10 13:28:39.619007 <WARNING> [PacketTunnelProvider] 104 connections: