Java.net. SocketException: Too program open files, tooworkflow

Source: Internet
Author: User

Java.net. SocketException: Too program open files, tooworkflow

Today, my colleague reported that a node on the site could not be accessed. the weblogic log on the site was returned, as shown below:

<01:15:01 P.M. CST> <Warning> <JDBC> <BEA-001129> <lost Ed exception while creating connection for pool "wzDataSource": Io exception: The Network Adapter cocould not establish the connection>

<01:15:01 P.M. CST> <Warning> <JDBC> <BEA-001129> <lost Ed exception while creating connection for pool "wzDataSource": Io exception: The Network Adapter cocould not establish the connection>
<01:15:01 P.M. CST> <Warning> <JDBC> <BEA-001129> <lost Ed exception while creating connection for pool "wzDataSource": Io exception: The Network Adapter cocould not establish the connection>
<01:15:01 P.M. CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111: 7003, failure count: 1, failing for 0 seconds, java.net. socketException: Too program open files>
<01:15:01 P.M. CST> <Warning> <JDBC> <BEA-001129> <lost Ed exception while creating connection for pool "wzDataSource": Io exception: The Network Adapter cocould not establish the connection>
<01:15:02 P.M. CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111: 7003, failure count: 2, failing for 1 seconds, java.net. socketException: Too program open files>
<01:15:04 P.M. CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111: 7003, failure count: 3, failing for 3 seconds, java.net. socketException: Too program open files>
<01:15:07 P.M. CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111: 7003, failure count: 4, failing for 6 seconds, java.net. socketException: Too program open files>
<01:15:11 P.M. CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111: 7003, failure count: 5, failing for 10 seconds, java.net. socketException: Too program open files>
<01:15:16 P.M. CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111: 7003, failure count: 6, failing for 15 seconds, java.net. socketException: Too program open files>
<01:15:22 P.M. CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111: 7003, failure count: 7, failing for 21 seconds, java.net. socketException: Too program open files>
<01:15:29 P.M. CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111: 7003, failure count: 8, failing for 28 seconds, java.net. socketException: Too program open files>
<01:15:37 P.M. CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111: 7003, failure count: 9, failing for 36 seconds, java.net. socketException: Too program open files>
<01:15:46 P.M. CST> <Critical> <Server> <BEA-002616> <Failed to listen on channel "Default" on 10.91.1.111: 7003, failure count: 10, failing for 45 seconds, java.net. socketException: Too program open files>
<01:15:46 P.M. CST> <Critical> <Server> <BEA-002617> <Attempting to close and reopen the server socket on channel "Default" on 101.91.1.111: 6003.>
<01:15:56 P.M. CST> <Notice> <Server> <BEA-002614> <Reopening channel "Default" on 101.91.1.111: 6003.>

<01:15:56 P.M. CST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default ". the address 10.91.1.111 might be incorrect or another process is using port 6003: java.net. socketException: Too program open files.>

Analysis log:When files cannot be opened, the number of files opened in unix is limited. It is reported that the security rectification is used to adjust the application parameters, and the setting of open file is reduced. Make the following adjustments:

1. Set ulimit-u 65535
2. Modify/etc/security/limits. conf and add
Soft nofile 65535
Hard nofile 65535


JavanetSocketException: Too enabled open filesSocket Problem

A: You are a remote management server. Can't you restart it? Put the ulimit-a command in the tomcat STARTUP script. Before starting tomcat, set the maximum number of opened files to the value you need.

/Proc/sys/fs/file-max is the total limit of the system, which is determined by sysctl. conf.
The value obtained by ulimit-a is the maximum number of files that the current user can open (including socket connections)

The modified value of the ulimit-n command is only valid for the current user's current use environment, and will expire after the system is restarted or the user exits.

If you need to modify it permanently, you can modify/etc/security/limits. conf.
The parameter modification format in this file is described in detail. If you want to set it to 4096, you can add the following content:

* Soft nofile 4096
* Hard nofile 4096

If the Linux operating system is RedHat8 or 9, add the following line to the/etc/pam. d/login file:
Session required/lib/security/pam_limits.so
Or
Session required pam_limits.so


Tomcat Too program Open Files

Tomcat Too program Open Files; Too program open files tomcat 6.0 reports "too program open files Too program open files solution linux troubleshooting, tomcat troubleshooting, too program open files troubleshooting"
Published in July January 06, 2011 by admin
Tomcat Too program Open Files; Too program open files tomcat 6.0 reports "too program open files Too program open files problem solution"

Linux troubleshooting, tomcat troubleshooting, and too program open files troubleshooting this problem was first encountered in the Linux environment and the solution was recorded.

Server Configuration: two dual-core CPUs 2.0 GB, 4 GB memory
Operating System: CentOS, kernel 2.6.18

Application 1. Search server, responsible for full-site search and providing content relevance Interfaces
Application Server: Tomcat6.0.16 + Apache2.2.8. Two Tomcat instances provide external services and one internal management index (create, delete, search, and so on)
Web Solution: Solr1.3 (With Solr Client For Java), Java Servlet (Web Service Interface)

Application 2. Similar to an application that Baidu Knows
Application Server: Share with search server Apache2.2.8
Web Solution: Php + Mysql

Symptoms: the search service is stopped, Application 2 response times out, and affects the output of the content called by the Full-site search interface to view the Catalina log. a large amount of information is as follows:
<! -- [If! SupportLineBreakNewLine] -->

Java code
Org. apache. jk. common. ChannelSocket acceptConnections
WARNING: Exception executing accept
Java.net. SocketException: Too program open files
At java.net. PlainSocketImpl. socketAccept (Native Method)
At java.net. PlainSocketImpl. accept (Unknown Source)
At java.net. ServerSocket. implAccept (Unknown Source)
At java.net. ServerSocket. accept (Unknown Source)
At org. apache. jk. common. ChannelSocket. accept (ChannelSocket. java: 295)
At org. apache. jk. common. ChannelSocket. acceptConnections (ChannelSocket. java: 641)
At org. apache. jk. common. SocketAcceptor. runIt (ChannelSocket. java: 852)
At org. apache. tomcat. util. threads. ThreadPool $ ControlRunnable. run (ThreadPool. java: 684)
At java. lang. Thread. run (Unknown Source)

Org. apache. jk. common. ChannelSocket acceptConnections
... The remaining full text>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.