While configuring jmeter distributed testing i faced a problem of remote connection to servers which are behind NAT. Node with jmeter client has external ip, all servers are in different LANs behind NAT with no possibility of direct port forwarding.
I decided to try SSH tunnels.
On server:
> jmeter-server -Djava.rmi.server.hostname=127.0.0.1
> ssh -N -f -R 55500:127.0.0.1:55500 -R 55501:127.0.0.1:55501 -L 60000:127.0.0.1:60000 jmuser@client_node_ip -p 5000
On client:
> jmeter -n -t testcase.jmx -l testcase.jtl -Djava.rmi.server.hostname=127.0.0.1 -r
Test is successful in case of small number of concurrent VU (10-100). But when i specify more VUs SSH tunnel fails with the following errors:
accept: Too many open files
open failed: administratively prohibited: open failed
Write Failed: broken pipe
I see many connections over port 60000. ulimit value is quite high = 1000000 on server and client nodes.
Is there any workaround?