Solved

Solaris Idle Sockets - Running out of File Descriptors

Posted on 2006-07-05
8
1,526 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
  • 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now