In linux webloigc, brokenpipe and socket... connectionreset Errors often occur.

Source: Internet
Author: User
In linux, webloigc often encounters brokenpipe, socket... connectionreset errors -- Linux Enterprise Application-Linux server application information. For more information, see the following. There may be JVM errors caused by the linux thread mechanism, especially during the connection peak hours. Similar situations occur in tomcat in linux.

The solution is to set _ JAVA_SR_SIGNUM = 12 in the environment variable.

Sun's explanation:
-- Posted by: cooper
Below is a clipping from Sun on working around und JVM crashes under high
Thread counts in the JVM 1.3 for Linux
On Linux, use a larger signal number for hotspot thread
Suspension/resumption handler. The signal number being used is
Specified by environment variable _ JAVA_SR_SIGNUM. Setting it to
Number larger than SIGSEGV (11) will solve the problem. A good number
To use is 12, which is SIGUSR2. Using signal 16 to work around
Problem might have potential problems. So on tcsh, "setenv
_ JAVA_SR_SIGNUM 12 "can solve the problem.

The last time a comrade asked a connection reset error occurred while connecting to the database. This may be because the connection was not released normally (not necessarily due to a program problem ), it is best to set the maximum value of invalid connection timeout during connection delay.

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.