關於The Network Adapter could not establish connection。
程式是一個執行緒(extends Thread)程式,主執行緒每間隔一段時間(500ms)增、刪、查資料庫(oracle9)。
都是在一個伺服器上,
比如主執行緒查詢到資料庫有100條記錄,透過for迴圈產生100個分執行緒去取資料庫中的資料,然後呼叫web服務將資料傳送出去。
在執行一段時間以後 就會陸續出現The Network Adapter could not establish connection的錯誤,
時好時壞,執行緒程式採用的是spring jdbctemplate運算元據庫,從資料庫監控看到 連線很快就釋放。
透過修改配置,在程式中每個分執行緒啟動之前sleep(1000),通知控制分執行緒的數目,程式就執行正常了。
有個疑問,oracle 肯定支援併發 為什麼我連續啟動100個以上的執行緒就會出現這樣的錯誤呢?
都是在一個伺服器上,
比如主執行緒查詢到資料庫有100條記錄,透過for迴圈產生100個分執行緒去取資料庫中的資料,然後呼叫web服務將資料傳送出去。
在執行一段時間以後 就會陸續出現The Network Adapter could not establish connection的錯誤,
時好時壞,執行緒程式採用的是spring jdbctemplate運算元據庫,從資料庫監控看到 連線很快就釋放。
透過修改配置,在程式中每個分執行緒啟動之前sleep(1000),通知控制分執行緒的數目,程式就執行正常了。
有個疑問,oracle 肯定支援併發 為什麼我連續啟動100個以上的執行緒就會出現這樣的錯誤呢?
相關文章
- SQLDeloper IO 錯誤: The Network Adapter could not establish the connectionSQLAPT
- IO Exception: The Network Adapter Could Not Establish a Connection_604155.1ExceptionAPT
- sql developer連結不上oracle 報 The Network Adapter could not establish the connectionSQLDeveloperOracleAPT
- oracle出異常:Io 異常: The Network Adapter could not establish the connection 解決辦法OracleAPT
- java.sql.SQLException: Io 異常: The Network Adapter could not establish the connecJavaSQLExceptionAPT
- lightdb WARNING: could not establish connection after 30000 ms
- Connection could not be established with host 求救
- weblogic報錯----Received exception while creating connection for pool "TDMSKD": The Network Adapter co...WebExceptionWhileAPT
- 關於ADAPTER的問題APT
- 關於Adapter模式和Decorator模式APT模式
- 關於網站上的Adapter範例網站APT
- 請高手指點A connection to the database could not be madeDatabase
- Network Connection Lost When Windows 8 Goes To SleepWindowsGo
- [network][easy case]troubleshoting the connection to a remote serverREMServer
- 關於 artisan migrants Could not find drive 解決方法
- 關於Graph Convolutional Network的初步理解
- iOS-拉outlet到程式碼區錯誤:Could not insert new outlet connection: Could not find any...iOS
- linux網路配置(關於connect: network is unreachable)Linux
- TNS-12518: TNS:listener could not hand off client connectionclient
- TNS-12518 TNS listener could not hand off client connectionclient
- ORA-12518: TNS:listener could not hand off client connectionclient
- ORA-12518, TNS:listener could not hand off client connectionclient
- 關於spring事務管理不關閉connection問題!多謝。Spring
- iOS Xcode, 解決“Could not insert new outlet connection”的問題。iOSXCode
- MSSQLServer 上討厭的錯誤error: 40 - Could not open a connection to SQL ServerSQLServerError
- VirtualBox Network設定的NAT和Bridged Adapter模式區別APT模式
- 解決問題-There appears to be trouble with your network connection. Retrying...APP
- connection和session的關係Session
- ANS9201W LAN-free path failed. AND ANS5216E Could not establish a TCP/IP解決方法AITCP
- jdbc連線sql server 出現 java.sql.SQLException: Network error IOException: Connection refused:JDBCSQLServerJavaExceptionError
- 關於impdp匯入資料的network_link的使用介紹
- Bequeath Connection Generates Ora-12560: Tns:Protocol Adapter Error [ID 831007.1]ProtocolAPTError
- 記一次解決:TNS-12518: TNS:listener could not hand off client connectionclient
- AdapterAPT
- RecyclerView Adapter 系列(1):RecyclerView Array AdapterViewAPT
- TNS-12518: TNS:listener could not hand off client connection For ORACLE 10G (AIX6.1)clientOracle 10gAI
- 關於資料庫使用impdp+network_link遷移時,job的遷移資料庫
- 打造基於Databinding與RecyclerView的通用Adapter類ViewAPT