Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Testing the load of the socket server using Threads  RSS feed

 
Varadharajan Srinivasan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Test number 3. with changing -X arguments for java.
java -X
will give you a starting point (-Xms, -Xmx, ....).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!