So I need to peg a system with several thousand long polling requests.
I created a thread group with the requisite number of requests. A few things confuse me.
(Im on a mac)
I run the jmeter.sh script to start the gui. I cant run the test unless I run jmeter-server. Without it I get a "cannot connect to 127.0.0.1..." message. The docs don't mention needing to start this script up.
In the jmeter.sh script I set the max memory to
export JVM_ARGS="-Xms4096m -Xmx4096m"
. Nonetheless, whenever I start running the test I immediately see
Uncaught Exception java.lang.OutOfMemoryError: unable to create new native thread. See log file for details.
- I tried running my test headless and it didn't get better; it gets thru roughly 2k requests before just stopping. I was hoping for about 40-50k threads (i.e. requests). I cant reuse threads (that I know of) as this long polling so the requests block until something causes them to release.
Any advice? Thanx in advance.