×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Socket Exception: java.net.SocketException: Connection reset by peer

Socket Exception: java.net.SocketException: Connection reset by peer

Socket Exception: java.net.SocketException: Connection reset by peer

(OP)
Hi,

I am using Silverstream 3.75 with Verisign SSL 128-bit. The start up parameters are +classic +ms256M +mx512M -nodbcheck.
After the server is started up, from time to time, it prompts error messages in the console.

Socket Exception: java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream.

Socket Exception: java.net.SocketException: Connection aborted by peer:socket write error

The server run for one day with these errors and then the server crash with java.lang.OutOfMemory error. Any idea how I can fix this problem?

Thanks,
Gary

RE: Socket Exception: java.net.SocketException: Connection reset by peer


Hi,

Firstly, are you sure your startup parameters are correct? We use +Xms and +Xmx instead of your +ms and +mx.

Secondly, the Socket Exception you have, Silverstream claimed to me that they are 'normal' and they shouldn't affect the server. They also said they have a patch to remove those system.out message. However, we didn't succeed to remove them and they didn't follow up. So we ultimately get used to and still have them.

Regarding, the java.lang.OutOfMemory error, it is more related to the way you program your pages. If your parameters are correct and not a typo, you should be able to get rid of it when enough memory is allocated and if there is not a memory leak inside your code.

Best regards
Albert

RE: Socket Exception: java.net.SocketException: Connection reset by peer

(OP)
Hi Albert,

Thanks for your information.

Do you have any suggestion on the tools for checking where do this "Out of Memory" issue appear?

Thanks,
Gary

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close