Tuesday, April 29, 2014

To See the connection opened in Unix Terminal.

Use this command –

netstat -nputw

If you are looking for particular IP address or key then Grep it as

netstat -nputw|egrep "192.0.0.1"

I use for monitoring the Connection OPEN and CLOSE status.
In one of my project huge one, I got an exception “12 - too many connections “ .  I was sure about the connection Open() and Close()  and the calling place was right.

To test if there is anything missing from human eye. I had restarted the application and parallel to that  I was running netstat command to watch opened connection is closing or not. 

Code Formater

Paste Here Your Source Code
Source Code Formatting Options
1) Convert Tab into Space :
2) Need Line Code Numbering :
3) Remove blank lines :
4) Embeded styles / Stylesheet :
5) Code Block Width :
6) Code Block Height :
7) Alternative Background :
Copy Formatted Source Code
 
Preview Of Formatted Code