aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes Testing the load of the socket server using Threads Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Testing the load of the socket server using Threads" Watch "Testing the load of the socket server using Threads" New topic
Author

Testing the load of the socket server using Threads

Varadharajan Srinivasan
Greenhorn

Joined: Aug 02, 2004
Posts: 1
Hi,
I need to test the maxium load of a socket server. I follwed the following steps for that
1. Create a Socket for the server.
2. Used to threads to invoke the steps 1 for "n" threads.

In this if i have the number of theads as 50, i program runs fine. But if i am increasing the number of threads to 60 or so, i am getting a NullpointerException.

Is this problem occurrs because
1. The server i unable to open more connections or
2. There is probelm on maxium number if ports that can be open by a process
3. Memory probelm in the program

Thanks in Advance,
Varadha
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Test number 3. with changing -X arguments for java.
java -X
will give you a starting point (-Xms, -Xmx, ....).


http://home.arcor.de/hirnstrom/bewerbung
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Testing the load of the socket server using Threads
 
Similar Threads
Closing the server socket
Communication between client and server
IE window size/position question
"Software caused connection abort: socket write error"... what is it?
Sequencial Data Delivery Problem