In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you the possible reasons for the error of java.net.SocketException: Broken pipe. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Such logs occasionally appear in stderr.log in online java applications, where the system load is not high when problems occur, and the system can return to normal on its own. Google has been bothering me for a long time. Let's put an end to this problem today.
The reasons for this problem may be as follows: 1. The driver of mysql, my driver is mysql-connector-java-3.1.11-bin.jar. If you are interested in testing, you can try other new versions of mysql driver.
2. Firewall and network problems, or server crash (intentionally or unintentionally) students can check if there is anything abnormal in the server and network when the "java.net.SocketException: Broken pipe" error occurs?
3, the database connection pool of the application system leads to, the most likely is that the program is not rigorous ho! A mistake that beginners can't avoid in the development process: forget to close the database connection (it's common in pure jdbc operations, but this is easy to find. If you see a large number of database connections or simply hang up in the stress test, you can find out why) In addition, when submitting things, there is no explicit commit or rollback in the data operation. If you forget to submit the commit, such a problem can occur when you try to use a similar resultset to operate or do other operations. Such a hanging connection will have to wait until the timeout mysql to kill it off. Check carefully to see if there are clear submissions in all the things you apply. Or use Hibernate by mistake, try connection pooling like C3P0 and Proxool.
The above content is java.net.SocketException: what is the possible reason for the Broken pipe error? have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.