Solved

TCP connections on AIX

Posted on 2009-05-04
12
668 Views
Last Modified: 2013-11-17
Hello
Our BEA app team is complaining about there app crashing all the time. When I checked out and ran an  lsof, There is many open files and many tcp connections open which actually crashed the app
How do I exactly check the no of TCP connections and how can I set an alert for
TCP_connections > 500
Thanks
0
Comment
Question by:vishwakarmak
  • 5
  • 5
  • 2
12 Comments
 
LVL 61

Assisted Solution

by:gheist
gheist earned 200 total points
Comment Utility
ulimit -n in bea environment shows how many files+connections it can use.
you can double that with smitty on and on.

can you see connection status in your lsof?
are they ESTABLISHED or in some other state?
"no" command can reduce damage from those half-connections also.
0
 

Author Comment

by:vishwakarmak
Comment Utility
gheist,
Thanks or a quick reply, Yes I see most of them in ESTABLISHED and some in WAIT state. NowI dont know why there are so many sockets open(TCP connections) is there any way to limit the connection count.
Thank
0
 

Author Comment

by:vishwakarmak
Comment Utility
Also ulimit -n is 2000
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 300 total points
Comment Utility
How can open TCP connections crash an application? Do you get error messages pointing in that direction?
What's in the errorlog?
Does netstat -m show failed mallocs? Clear the statistics with netstat -Zm and check what's going on.

wmp



0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
You have to provide substantial logs from application crash - what crashed - java or webserver inside java?
0
 

Author Comment

by:vishwakarmak
Comment Utility
Its the Java that is crashing, So let me talk to the app team for logs
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:vishwakarmak
Comment Utility
Only reason why I am so concerned abt the TCP connections is that when ever TCP  connections are increasing exponentiallys the app crashes
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
There is no logs for java crashing.
There should be core file.
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
The relation might as well be inverse - a bug in the application causes the number of connections to increase, finally the same bug causes the app. to crash.

wmp
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
I had Windows calculator crashing when installing BEA JRockit 3 long time ago....
Maust be BEA app team complaining about app crashing 8 years ago already.
0
 

Author Comment

by:vishwakarmak
Comment Utility
:)
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
Will be good if you figure out what exactly is crashing...
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

728 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

9 Experts available now in Live!

Get 1:1 Help Now