Solved

Solaris Idle Sockets - Running out of File Descriptors

Posted on 2006-07-05
8
1,548 Views
Last Modified: 2013-12-21
I have a process (an old Tomcat running Java 1.2) which is running out of File Descriptors. Running lsof -p <pid> lists a whole bunch of IDLE sockets. In fact, over time, this number increases until the error happens. I have another Tomcat, with the same configuration, on another machine which runs the same software (we have the workload split in two) and it never runs into this problem. In trying to track the error down, the following questions surfaced.

What IS an IDLE socket? (as reported by lsof) The sockets that I find look like:

java    10070 netrez   17u  IPv4 0x3023d66be68  0t10553    TCP xxxxxx:*->yyyyyy pegs.com:* (IDLE)

where xxxxxx is the name of the machine Tomcat is running on and yyyyyy is the machine Apache is on.

Thanks
0
Comment
Question by:gustnado
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
8 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 17047504
Which version of Solaris are you runing?

Please have a look at this doc to see if it can help:
http://servlets.com/archive/servlet/ReadMsg?msgId=410087&listName=tomcat-user
or
http://marc.theaimsgroup.com/?l=tomcat-user&m=106242538603499&w=2
0
 

Author Comment

by:gustnado
ID: 17048123
From uname -r, it is apparently 5.9, which doesn't seem reasonable (I'm not the sysadmin).

The links are for more recent versions of Tomcat.

They are about TIME_WAIT sockets. My question is about IDLE sockets.

With an IDLE socket, shouldn't the other endpoint also show (on its machine) and also be IDLE?

Thanks

John
0
 
LVL 38

Expert Comment

by:yuzh
ID: 17048287
5.9 means Solaris 9, you can post the output of:
uname -a

to show more details
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:gustnado
ID: 17054205
SunOS xxxxx 5.9 Generic_118558-14 sun4u sparc SUNW,Sun-Fire-880

Thanks - here it is. I x'ed out the machine name to keep customer's privacy

We also have used pfiles -p and there the sockets show up with only one endpoint

They look like:

  82: S_IFSOCK mode:0666 dev:309,0 ino:12578 uid:0 gid:0 size:0
      O_RDWR
        sockname: AF_INET 0.0.0.0  port: 0

There are over 60 of them right now.

Thanks
0
 
LVL 11

Expert Comment

by:jekl2000
ID: 17058480
Are both servers Solaris 9 and the same patch level? This one is at 118558-14 which is a little dated. I have not checked for patches that are relevant to your problem but its a good place to start.

SunOS xxxxx 5.9 Generic_118558-14 sun4u sparc SUNW,Sun-Fire-880

0
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
ID: 17557497
You don't have the currect patch installed, apply the latest patch to see if you can fix it.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CPU monthly average? 12 139
LINUX ZIP - UNCOMPRESS WINDOWS PATH 3 109
Remote Change Dates on AIX Automation 7 76
Problem logging tar errors 11 70
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question