In additions to what others have said (this is not a heap problem), your calculation looks off You want 100,000 requests per minute. Assuming on average that a request = 5 seconds (for e.g.) , a single thread would be able to generate 12 requests (no think times etc). That would need only ~10,000 threads (plus some safety) . You only need these many threads if you have large think times or your application is really slow.
On Tue, Mar 12, 2019 at 5:02 AM Prateek Dua <prateek....@go-mmt.com> wrote: > Hi, > > > I am trying to give load of 1Lacs user from command line mode of > Jmeter ( -Jthreads=120000 -Jramp=1 -Jloop=1 -) set up on Aws machine > ( single machine) using the basic thread group using constant > throughput timer to achieve throughput of 1Lac rpm. But while running > the script getting this below error... > > > *Uncaught Exception java.lang.OutOfMemoryError: unable to create new > native thread. See log file for details* > > > I've configured *setenv.sh* file in *bin* folder as : > > > *export HEAP="-Xms1024m -Xmx8g -XX:MaxMetaspaceSize=256m"* > > > > > Is there any other changes which are required from my end to done in > any file in Jmeter to solve this error ? pls help. > > -- > > > ::DISCLAIMER:: > > > > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > > > > > This message is intended only for the use of the addressee and may > contain information that is privileged, confidential and exempt from > disclosure under applicable law. If the reader of this message is not the > intended recipient, or the employee or agent responsible for delivering > the > message to the intended recipient, you are hereby notified that any > dissemination, distribution or copying of this communication is strictly > prohibited. If you have received this e-mail in error, please notify us > immediately by return e-mail and delete this e-mail and all attachments > from your system. >