JMeter constant timers not operating as expected












0















We have 3 distinct sets of requests that we wish to test using Jmeter.
For this we have created 3 samplers to house these 3 sets of requests and we have added a constant timer in each of these 3 samplers.
Each constant timer contains the function "${__Random(X,Y)}" where X,Y are different for each of the 3 samplers.
However when I run the test I can see that for the first few minutes the requests look like they are being sent as per the timers, but after a period the requests come through almost uniformly accross the board which is not correct.



I have uploaded a picture that shows the structure of our test plan and the throughput that we are seeing enter image description here.










share|improve this question



























    0















    We have 3 distinct sets of requests that we wish to test using Jmeter.
    For this we have created 3 samplers to house these 3 sets of requests and we have added a constant timer in each of these 3 samplers.
    Each constant timer contains the function "${__Random(X,Y)}" where X,Y are different for each of the 3 samplers.
    However when I run the test I can see that for the first few minutes the requests look like they are being sent as per the timers, but after a period the requests come through almost uniformly accross the board which is not correct.



    I have uploaded a picture that shows the structure of our test plan and the throughput that we are seeing enter image description here.










    share|improve this question

























      0












      0








      0








      We have 3 distinct sets of requests that we wish to test using Jmeter.
      For this we have created 3 samplers to house these 3 sets of requests and we have added a constant timer in each of these 3 samplers.
      Each constant timer contains the function "${__Random(X,Y)}" where X,Y are different for each of the 3 samplers.
      However when I run the test I can see that for the first few minutes the requests look like they are being sent as per the timers, but after a period the requests come through almost uniformly accross the board which is not correct.



      I have uploaded a picture that shows the structure of our test plan and the throughput that we are seeing enter image description here.










      share|improve this question














      We have 3 distinct sets of requests that we wish to test using Jmeter.
      For this we have created 3 samplers to house these 3 sets of requests and we have added a constant timer in each of these 3 samplers.
      Each constant timer contains the function "${__Random(X,Y)}" where X,Y are different for each of the 3 samplers.
      However when I run the test I can see that for the first few minutes the requests look like they are being sent as per the timers, but after a period the requests come through almost uniformly accross the board which is not correct.



      I have uploaded a picture that shows the structure of our test plan and the throughput that we are seeing enter image description here.







      timer jmeter constants






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 '18 at 9:45









      AjayAjay

      1




      1
























          1 Answer
          1






          active

          oldest

          votes


















          0














          The timers work as expected, I would say you're getting more or less equal throughput due to your application being overloaded and responding too slow, i.e. i can see response times over 40 seconds.



          enter image description here



          HTTP is a stateful protocol, it means that JMeter's HTTP Request samplers wait for response prior to sending a new request so my expectation is that you're mostly impacted with response times, not the timers.



          So if you replace your real samplers with i.e. Dummy Sampler with static response time of, say, 100 milliseconds



          enter image description here



          You should see your timers working as expected.





          With regards to the application being slow I would recommend investigating the bottleneck, you can start looking at HTML Reporting Dashboard and correlate the increasing load with the increasing response time.



          Also make sure to monitor your application under test baseline health metrics, i.e. CPU, RAM, swap, etc. in order to ensure it has enough headroom to operate. It can be done using JMeter PerfMon Plugin or SSHMon Samples Collector






          share|improve this answer
























          • Thanks for the response Dmitri. Currently I am using HTTP Request samplers that contain a method, path and parameters. if I replace the existing HTTP Request samplers, how do I replicate this using a dummy sampler as I cant see anywhere to specify these parameters in the dummy sampler?

            – Ajay
            Nov 20 '18 at 12:54











          • You cannot test your application using Dummy Samplers, you can check if your timers work as expected using it.

            – Dmitri T
            Nov 20 '18 at 13:44











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53390185%2fjmeter-constant-timers-not-operating-as-expected%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          The timers work as expected, I would say you're getting more or less equal throughput due to your application being overloaded and responding too slow, i.e. i can see response times over 40 seconds.



          enter image description here



          HTTP is a stateful protocol, it means that JMeter's HTTP Request samplers wait for response prior to sending a new request so my expectation is that you're mostly impacted with response times, not the timers.



          So if you replace your real samplers with i.e. Dummy Sampler with static response time of, say, 100 milliseconds



          enter image description here



          You should see your timers working as expected.





          With regards to the application being slow I would recommend investigating the bottleneck, you can start looking at HTML Reporting Dashboard and correlate the increasing load with the increasing response time.



          Also make sure to monitor your application under test baseline health metrics, i.e. CPU, RAM, swap, etc. in order to ensure it has enough headroom to operate. It can be done using JMeter PerfMon Plugin or SSHMon Samples Collector






          share|improve this answer
























          • Thanks for the response Dmitri. Currently I am using HTTP Request samplers that contain a method, path and parameters. if I replace the existing HTTP Request samplers, how do I replicate this using a dummy sampler as I cant see anywhere to specify these parameters in the dummy sampler?

            – Ajay
            Nov 20 '18 at 12:54











          • You cannot test your application using Dummy Samplers, you can check if your timers work as expected using it.

            – Dmitri T
            Nov 20 '18 at 13:44
















          0














          The timers work as expected, I would say you're getting more or less equal throughput due to your application being overloaded and responding too slow, i.e. i can see response times over 40 seconds.



          enter image description here



          HTTP is a stateful protocol, it means that JMeter's HTTP Request samplers wait for response prior to sending a new request so my expectation is that you're mostly impacted with response times, not the timers.



          So if you replace your real samplers with i.e. Dummy Sampler with static response time of, say, 100 milliseconds



          enter image description here



          You should see your timers working as expected.





          With regards to the application being slow I would recommend investigating the bottleneck, you can start looking at HTML Reporting Dashboard and correlate the increasing load with the increasing response time.



          Also make sure to monitor your application under test baseline health metrics, i.e. CPU, RAM, swap, etc. in order to ensure it has enough headroom to operate. It can be done using JMeter PerfMon Plugin or SSHMon Samples Collector






          share|improve this answer
























          • Thanks for the response Dmitri. Currently I am using HTTP Request samplers that contain a method, path and parameters. if I replace the existing HTTP Request samplers, how do I replicate this using a dummy sampler as I cant see anywhere to specify these parameters in the dummy sampler?

            – Ajay
            Nov 20 '18 at 12:54











          • You cannot test your application using Dummy Samplers, you can check if your timers work as expected using it.

            – Dmitri T
            Nov 20 '18 at 13:44














          0












          0








          0







          The timers work as expected, I would say you're getting more or less equal throughput due to your application being overloaded and responding too slow, i.e. i can see response times over 40 seconds.



          enter image description here



          HTTP is a stateful protocol, it means that JMeter's HTTP Request samplers wait for response prior to sending a new request so my expectation is that you're mostly impacted with response times, not the timers.



          So if you replace your real samplers with i.e. Dummy Sampler with static response time of, say, 100 milliseconds



          enter image description here



          You should see your timers working as expected.





          With regards to the application being slow I would recommend investigating the bottleneck, you can start looking at HTML Reporting Dashboard and correlate the increasing load with the increasing response time.



          Also make sure to monitor your application under test baseline health metrics, i.e. CPU, RAM, swap, etc. in order to ensure it has enough headroom to operate. It can be done using JMeter PerfMon Plugin or SSHMon Samples Collector






          share|improve this answer













          The timers work as expected, I would say you're getting more or less equal throughput due to your application being overloaded and responding too slow, i.e. i can see response times over 40 seconds.



          enter image description here



          HTTP is a stateful protocol, it means that JMeter's HTTP Request samplers wait for response prior to sending a new request so my expectation is that you're mostly impacted with response times, not the timers.



          So if you replace your real samplers with i.e. Dummy Sampler with static response time of, say, 100 milliseconds



          enter image description here



          You should see your timers working as expected.





          With regards to the application being slow I would recommend investigating the bottleneck, you can start looking at HTML Reporting Dashboard and correlate the increasing load with the increasing response time.



          Also make sure to monitor your application under test baseline health metrics, i.e. CPU, RAM, swap, etc. in order to ensure it has enough headroom to operate. It can be done using JMeter PerfMon Plugin or SSHMon Samples Collector







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 20 '18 at 10:06









          Dmitri TDmitri T

          71.5k33661




          71.5k33661













          • Thanks for the response Dmitri. Currently I am using HTTP Request samplers that contain a method, path and parameters. if I replace the existing HTTP Request samplers, how do I replicate this using a dummy sampler as I cant see anywhere to specify these parameters in the dummy sampler?

            – Ajay
            Nov 20 '18 at 12:54











          • You cannot test your application using Dummy Samplers, you can check if your timers work as expected using it.

            – Dmitri T
            Nov 20 '18 at 13:44



















          • Thanks for the response Dmitri. Currently I am using HTTP Request samplers that contain a method, path and parameters. if I replace the existing HTTP Request samplers, how do I replicate this using a dummy sampler as I cant see anywhere to specify these parameters in the dummy sampler?

            – Ajay
            Nov 20 '18 at 12:54











          • You cannot test your application using Dummy Samplers, you can check if your timers work as expected using it.

            – Dmitri T
            Nov 20 '18 at 13:44

















          Thanks for the response Dmitri. Currently I am using HTTP Request samplers that contain a method, path and parameters. if I replace the existing HTTP Request samplers, how do I replicate this using a dummy sampler as I cant see anywhere to specify these parameters in the dummy sampler?

          – Ajay
          Nov 20 '18 at 12:54





          Thanks for the response Dmitri. Currently I am using HTTP Request samplers that contain a method, path and parameters. if I replace the existing HTTP Request samplers, how do I replicate this using a dummy sampler as I cant see anywhere to specify these parameters in the dummy sampler?

          – Ajay
          Nov 20 '18 at 12:54













          You cannot test your application using Dummy Samplers, you can check if your timers work as expected using it.

          – Dmitri T
          Nov 20 '18 at 13:44





          You cannot test your application using Dummy Samplers, you can check if your timers work as expected using it.

          – Dmitri T
          Nov 20 '18 at 13:44




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53390185%2fjmeter-constant-timers-not-operating-as-expected%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents