SRM: 속성 가져오기 작업에는 com.mysql.jdbc.exceptions.jdbc4.CommunicationsException 오류가 있습니다. 통신 링크 오류
Résumé: 과도하게 로드된 apg 데이터베이스로 인해 소켓 시간 초과 시 import-porperties 작업이 계속 실패하는 경우 socketTimeout을 늘릴 수 있습니다.
Cet article concerne
Cet article ne concerne pas
Cet article n’est associé à aucun produit spécifique.
Toutes les versions du produit ne sont pas identifiées dans cet article.
Symptômes
속성 가져오기 작업에서 apg 데이터베이스에 연결할 때 다음과 같은 오류가 발생합니다.
160627 07:07:57 : com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure 160627 07:07:57 : 160627 07:07:57 : The last packet successfully received from the server was 180,025 milliseconds ago. The last packet sent successfully to the server was 180,025 milliseconds ago.
예외의 원인은 다음과 같습니다.
java.net.SocketTimeoutException : 읽기 시간 초과
Cause
socketTimeout은 속성 가져오기 작업에서 data_property 테이블에서 데이터를 가져올 때까지 대기하는 데 사용됩니다. 이 시간에 과도하게 로드된 데이터베이스로 인해 이 시간을 초과하면 작업이 실패합니다.
Résolution
APG/Web-Servers/Tomcat/Default/conf/server.xml 파일의 socketTimeout 설정을 아래와 같이 5분(300000밀리초)으로 늘릴 수 있습니다.
<!-- Defines the connection to the APG timeseries database for MySQL. --> <Resource name="jdbc/APG-DB" auth="Container" type="javax.sql.DataSource" maxActive="20" maxIdle="20" validationQuery="SELECT 1" testOnBorrow="false" testWhileIdle="true" validationQueryTimeout="5" timeBetweenEvictionRunsMillis="10000" minEvictableIdleTimeMillis="60000" maxWait="30000" username="apg" password="watch4net" driverClassName="com.mysql.jdbc.Driver" removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true" url="jdbc:mysql://<db hostname>:53306/apg?autoReconnect=true&socketTimeout=300000"/>
Produits concernés
SRMPropriétés de l’article
Numéro d’article: 000059197
Type d’article: Solution
Dernière modification: 29 juil. 2025
Version: 4
Trouvez des réponses à vos questions auprès d’autres utilisateurs Dell
Services de support
Vérifiez si votre appareil est couvert par les services de support.