当我使用jstack检查进程时,我得到了这个日志:
-dontwarn retrofit2.**
-keep class retrofit2.** { *; }
-keepattributes Signature
-keepattributes Exceptions
-keepclasseswithmembers class * {
@retrofit2.http.* <methods>;
}
并且有很多其他人喜欢这样。首先我认为这是因为冰连接超时设置问题,因为我发现第147行中的Outgoing.java是这样的:
"poolTaskThread-4" prio=10 tid=0x00007f09300ff800 nid=0x69ce in Object.wait() [0x00007f0aa5271000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:503)
at IceInternal.Outgoing.invoke(Outgoing.java:147)
- locked <0x0000000711754358> (a IceInternal.Outgoing)
at com.example.srv.slice._ContentSearchServiceDelM.searchContentsFields(_ContentSearchServiceDelM.java:188)
at com.example.srv.slice.ContentSearchServicePrxHelper.searchContentsFields(ContentSearchServicePrxHelper.java:665)
at com.example.srv.slice.ContentSearchServicePrxHelper.searchContentsFields(ContentSearchServicePrxHelper.java:629)
at com.example.srv.api.ContentSearchServiceAPI.searchContentsFields(ContentSearchServiceAPI.java:61)
at com.bbs.dao.ContentDao.getSortedContentsByNode(ContentDao.java:921)
at com.bbs.dao.ContentDao.getPublishContentListPage(ContentDao.java:613)
at com.bbs.service.ContentService.getPublishContentListPage(ContentService.java:60)
at com.example.service.impl.FindSummImpl.getArtificialContentList(FindSummImpl.java:227)
at com.example.service.impl.FindSummImpl.sortList(FindSummImpl.java:316)
at com.example.service.impl.MatcherImpl$PluginTask.dosortlist(MatcherImpl.java:654)
at com.example.service.impl.MatcherImpl$PluginTask.getPluginContentByQuery(MatcherImpl.java:720)
at com.example.service.impl.MatcherImpl$PluginTask.call(MatcherImpl.java:589)
at com.example.service.impl.MatcherImpl$PluginTask.call(MatcherImpl.java:472)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
所以我添加了Ice.Override.Connection = 200000,但问题出现得越早,我该怎么办冰线~~
答案 0 :(得分:0)
Ice.CacheMessageBuffers=0
这不会调用directbuffer,你可以尝试一下,它会改进JVM GC。