原文:com.alibaba.dubbo.remoting.TimeoutException異常

嚴重: Servlet.service for servlet e manager in context with path threw exception Request processing failed nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method getItemById ...

2018-11-03 17:52 0 3590 推薦指數:

查看詳情

關於dubbo服務產生異常之:Caused by: com.alibaba.dubbo.remoting.TimeoutException: Waiting server-side response timeout by scan timer.

最近在做一個項目,需要生成9000個號碼,為了方便系統分離合並,采用dubbo實現,在本地測試生成時什么問題都沒有,順順利利的實現生成並顯示狀態,可是每次調用dubbo服務時就會產生異常,每當想要生成200個號碼的時候,它會生成400個或者600,很顯然它是執行了三次,也就是服務調了三次,看后 ...

Fri Jul 04 21:34:00 CST 2014 0 24148
關於dubbo服務產生異常之:Caused by: com.alibaba.dubbo.remoting.TimeoutException: Waiting server-side response timeout by scan timer.

簡單來說就是dubbo超時,因為dubbo默認的時間是500ms,超過這個時間它會重新訪問service層,最多嘗試三次。 所以我在測試的時候日志顯示出來的異常為……timeout……。 開始設置開始設置的timeout=50000,小數據量可以,如果數據量比較大就不行了。 后來在服務提供端 ...

Tue Aug 02 19:29:00 CST 2016 0 29537
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM