How to test max number of tcp connections


 
Thread Tools Search this Thread
Special Forums IP Networking How to test max number of tcp connections
# 1  
Old 02-15-2011
Question How to test max number of tcp connections

Hello,
I wanna test max tcp connection value. Please suggest how to do that. Thanks.
# 2  
Old 02-16-2011
Well, I have an idea, In your client machine perform a lot of request to your server machine (if you're testing apache you would try ab)

while your client application is making requests run this command in your server machine, it'll determine how many connections are open in a time

Code:
while[ "1" = "1" ] ; do
  netstat -an | grep "ESTABLISHED" | wc -l
  sleep 1
done

# 3  
Old 02-21-2011
Quote:
Originally Posted by edgarvm
Well, I have an idea, In your client machine perform a lot of request to your server machine (if you're testing apache you would try ab)

while your client application is making requests run this command in your server machine, it'll determine how many connections are open in a time

Code:
while[ "1" = "1" ] ; do
  netstat -an | grep "ESTABLISHED" | wc -l
  sleep 1
done

Many thanks!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

30 tcp connections Established for a while and after a few minutes are close

Good morning, I need your help please After Restarting Aps or connection, these are connections tcp 0 0 10.80.1.26.57597 10.81.248.79.53008 ESTABLISHED tcp 0 47 10.80.1.26.57607 10.81.248.79.53008 ESTABLISHED tcp 0 0 ... (4 Replies)
Discussion started by: alexcol
4 Replies

2. IP Networking

Need to know reason for connections closed in netstat -p tcp

Hello netstat -p give below 6634176 connections as closed.How do we trace that which all connections are being closed on the server? 1366888371 data packet headers correctly predicted 1195906 connection requests 5227320 connection accepts 5992919... (6 Replies)
Discussion started by: Vishal_dba
6 Replies

3. Shell Programming and Scripting

ksh script to test max number of parallel ssh connections

hello , I need to check how many parallel ssh connections my server can take the load of. I need to login to different host which i am planning to read from a file and then a write a loop which will do parallel ssh. Please provide suggestion on how i can write script for the same.\ Thank... (1 Reply)
Discussion started by: ABHIKORIA
1 Replies

4. UNIX for Dummies Questions & Answers

Need to test 100 ssh connections in parallel using loop and sleep? How to do that ?

Hello All, I want to test how much parallel ssh connections can be done on a server. I am thinking of reading username and hostname from a file and then using a loop (may be for) to do ssh on different host. Could anyone suggest me how can i write the script for the above. Thank you in... (0 Replies)
Discussion started by: ABHIKORIA
0 Replies

5. Red Hat

How to kill all active tcp connections from an IP?

How to kill all active tcp connections from an IP? I am using CentOS (3 Replies)
Discussion started by: an00p
3 Replies

6. Shell Programming and Scripting

A bi directional script that will monitor the TCP/IP connections between two physical

Dear All , I'm looking for a unix script that will monitor the TCP/IP connections between two physical ip addresses and when it dectes an IP is down it generates an alarm and sends SMS to mobile numbers. Can any one help, I need this urgently. Waiting for positive replies.. ... (3 Replies)
Discussion started by: samura
3 Replies

7. Shell Programming and Scripting

max connections aix

Sir's, the problem is i have script and 1 user in different 30 servers that ssh to our main server at the same time. Then after that may account automatically locked. I dont know what is the reason, is it the max connection of 1 user using ssh. Pls help. How to fix this. (0 Replies)
Discussion started by: invinzin21
0 Replies

8. UNIX for Advanced & Expert Users

Max numer of connections per sshd

Hi people, How many ssh or scp connections will an sshd process allow to conenct? I'm hoping this is an easy question. Linux 2.6.16.21-0.8-smp x86_64 GNU/Linux I have a Linux server that has spawned 34 sshd processes, thought this doesn't seem to be enough. The server is used for... (3 Replies)
Discussion started by: nhatch
3 Replies

9. Solaris

Scripts - Processes, CPU, Max. Connections

Hi all, Can any one please tell me how to find these in Unix (Commands) 1. Too many processes connected to the server. 2. High Utilization of CPU. 3. Maximum Number of connections with the database. OS: Sun Solaris 5.8 DB : Oracle 10g Thanks and Regards, Prashanth (1 Reply)
Discussion started by: prashanth_gs
1 Replies

10. IP Networking

Unix Scripts & Counting TCP Connections

Here's a question I received on a test recently. I'm new to Linux/Unix so if this is easy, don't kill me. What scripting or tools could you use to count and sort the number of connections from each internal host? I'd appreciate any feedback and resources. "The Cisco PIX firewall provides... (5 Replies)
Discussion started by: daveohr
5 Replies
Login or Register to Ask a Question