支付宝接口集成时老是报Checking for connections, idleTimeout
发布网友
发布时间:2022-04-29 18:55
我来回答
共5个回答
热心网友
时间:2023-10-05 07:47
如果你使用了支付宝提供的API jar包,那么再调用com.alipay.util.AlipaySubmit#buildRequest
之类的请求方法时,支付宝会使用到com.alipay.util.httpClient
.HttpProtocolHandler.getInstance();,这是个单例,期中创建并维护了一个http请求链接池(这样在调用HttpProtocolHandler#execute方法时就不用考虑线程安全问题,所有请求都是由链接池派发的,每次调用exeucte都是线程安全的,而且高并发时支付宝发起的总请求数是可控的),而HttpProtocolHandler类中又为了管理释放连接池中的空闲链接维护了一个org.apache.commons.httpclient.util
.IdleConnectionTimeoutThread线程,你看到的就是这个线程的debug信息,如果看着觉得不舒服就单独配置一下这个类的日志级别,调整到INFO或更高即可
热心网友
时间:2023-10-05 07:47
发一段[Thread-17]第一次出现的日志,求马云一样的大神普渡众生~
18:22:49.603 [Thread-13] DEBUG o.a.c.h.util.IdleConnectionHandler - Checking for connections, idleTimeout: 1429784509603
18:22:49.603 [Thread-5] DEBUG o.a.c.h.util.IdleConnectionHandler - Checking for connections, idleTimeout: 1429784509603
18:22:49.603 [Thread-10] DEBUG o.a.c.h.util.IdleConnectionHandler - Checking for connections, idleTimeout: 1429784509603
18:22:49.918 [http-bio-80-exec-226] DEBUG o.a.c.h.params.DefaultHttpParams - Set parameter http.useragent = Jakarta Commons-HttpClient/3.0.1
18:22:49.921 [http-bio-80-exec-226] DEBUG o.a.c.h.params.DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.1
18:22:49.922 [http-bio-80-exec-226] DEBUG o.a.c.h.params.DefaultHttpParams - Set parameter http.connection-manager.class = class org.apache.commons.httpclient.SimpleHttpConnectionManager
18:22:49.922 [http-bio-80-exec-226] DEBUG o.a.c.h.params.DefaultHttpParams - Set parameter http.protocol.cookie-policy = rfc2109
18:22:49.922 [http-bio-80-exec-226] DEBUG o.a.c.h.params.DefaultHttpParams - Set parameter http.protocol.element-charset = US-ASCII
18:22:49.922 [http-bio-80-exec-226] DEBUG o.a.c.h.params.DefaultHttpParams - Set parameter http.protocol.content-charset = ISO-8859-1
18:22:49.925 [http-bio-80-exec-226] DEBUG o.a.c.h.params.DefaultHttpParams - Set parameter http.method.retry-handler = org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@69089fa1
18:22:49.926 [http-bio-80-exec-226] DEBUG o.a.c.h.params.DefaultHttpParams - Set parameter http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z]
18:22:49.932 [http-bio-80-exec-226] DEBUG o.a.c.h.params.DefaultHttpParams - Set parameter http.connection-manager.max-per-host = {HostConfiguration[]=30}
18:22:49.932 [http-bio-80-exec-226] DEBUG o.a.c.h.params.DefaultHttpParams - Set parameter http.connection-manager.max-total = 80
18:22:49.936 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - Java version: 1.7.0_55
18:22:49.936 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - Java vendor: Oracle Corporation
18:22:49.936 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - Java class path: /alidata/server/tomcat-7.0.54/bin/bootstrap.jar:/alidata/server/tomcat-7.0.54/bin/tomcat-juli.jar
18:22:49.937 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - Operating system name: Linux
18:22:49.937 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - Operating system architecture: amd64
18:22:49.937 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - Operating system version: 3.2.0-29-generic
18:22:49.937 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - SUN 1.7: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores, JavaPolicy Policy; JavaLoginConfig Configuration)
18:22:49.937 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - SunRsaSign 1.7: Sun RSA signature provider
18:22:49.937 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - SunEC 1.7: Sun Elliptic Curve provider (EC, ECDSA, ECDH)
18:22:49.937 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - SunJSSE 1.7: Sun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
18:22:49.937 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - SunJCE 1.7: SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC)
18:22:49.937 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - SunJGSS 1.7: Sun (Kerberos v5, SPNEGO)
18:22:49.938 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - SunSASL 1.7: Sun SASL provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, EXTERNAL, PLAIN, CRAM-MD5, NTLM; server mechanisms for: DIGEST-MD5, GSSAPI, CRAM-MD5, NTLM)
18:22:49.938 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - XMLDSig 1.0: XMLDSig (DOM XMLSignatureFactory; DOM KeyInfoFactory)
18:22:49.938 [http-bio-80-exec-226] DEBUG o.a.commons.httpclient.HttpClient - SunPCSC 1.7: Sun PC/SC provider
18:22:49.936 [Thread-17] DEBUG o.a.c.h.util.IdleConnectionHandler - Checking for connections, idleTimeout: 1429784509936
热心网友
时间:2023-10-05 07:48
线上 哪里有地方跳转了 本地的地址
热心网友
时间:2023-10-05 07:49
同问,一直刷新,没有解决
热心网友
时间:2023-10-05 07:49
解决了没啊?