1
votes

I am trying to do load testing on my php site that I have built and I have found jMeter but I am concerned that when i try to simulate 1000 users its not actually simulating them accurately due to a max in the number of requests i can make at the same time on my mac. Is there any way to get around this potential problem or do I need to find another way to load test?

I am aware that windows limits the number of connections you can make so I assume mac does the same.

Currently I have simply downloaded jMeter and created a thread group with 1000 threads (users) and added a listener to view the response times.

3
I have the php running in a hosted web server. I am trying to load test on my mac. - user3916570

3 Answers

1
votes

You can increase the number of max connections on mac by following this

1
votes

As per this:

There are many things you need to chech:

  • Xmx

  • System limits for user

  • Tcp settings

  • ....

For JMeter tuning read this:

But anyway it's a bad practice to load test a target system from the machine where it is running, your results will be inconsistent.

Setup another machine following best practices and load test your system this way

0
votes

MacBooks are quite hi-end machines, it shouldn't be a problem to simulate 1000 users with JMeter.

  1. Make sure that you run JMeter in command-line non-GUI mode as

    ./jmeter -n -t /path/to/your/testplan.jmx -l /path/to/resultsfile.jtl
    

    After test completion you can open JMeter GUI, add Listener of your choice, using "Browse" button locate "resultsfile.jtl" and open it - this way you'll see test results

  2. Make sure that you have all the listeners removed or disabled during test run
  3. Locate the following line in jmeter startup script in /bin folder of your JMeter installation:

    HEAP="-Xms512m -Xmx512m"
    

    and change minimum and maximum values to be 60-80% of your total physical RAM

  4. Make sure that you run your PHP application and JMeter on different machines.

See JMeter Performance and Tuning Tips guide for other JMeter configuring tips and tricks.