0

I am using node v0.10.12 . I am testing the server performance with the software Jmeter, which simulates that many users access the server. The problem is that when I simulate more the 10 users, the node.js pools my requests, because they are coming from the some host.

On the web is suggested to set:

http.globalAgent.maxSockets = 99;

But it doesn't work, because the agent continues to pool the requests if they are more then 10.

Any suggestion?

Michele Spina
  • 1,091
  • 4
  • 12
  • 21

2 Answers2

2

Also there is decision for JMeter.

You can run your script from different IP addresses (you can use IP aliasing). In HTTP Request sampler use property: Source IP Address (in the right bottom corner). You can set IP here. To specify different IP you should add CSV Data Set Config and enumerate list of IP in CSV file.

Jay
  • 1,389
  • 1
  • 10
  • 15
  • If JMeter sends requests with different ip address, how could packets come back(from the server to the JMeter client)? – Michele Spina Nov 21 '13 at 23:12
  • Do you know why I receive this error? `java.net.BindException: Can't assign requested address` – Michele Spina Nov 22 '13 at 16:57
  • May be [this](http://stackoverflow.com/questions/8965155/cannot-assign-requested-address-jvm-bind) will help you – Jay Nov 23 '13 at 13:56
1

Have a look at the hyperquest README, which is both funny and informative regarding this issue.

Peter Lyons
  • 142,938
  • 30
  • 279
  • 274