Jmeter Address Already in use, getting error while running a 600/sec user concurrent load test












0














I am running a load test of 600/sec user for 2 min. At the end of test I get error in response "Address already in use.connect"



I have increased TCP Max port user to 200000. still I am getting the issue.



Total samples server are 60782.



Why i am facing this issue?



My jmeter is installed on windows server instance ec2.



Help me to resolve it.










share|improve this question



























    0














    I am running a load test of 600/sec user for 2 min. At the end of test I get error in response "Address already in use.connect"



    I have increased TCP Max port user to 200000. still I am getting the issue.



    Total samples server are 60782.



    Why i am facing this issue?



    My jmeter is installed on windows server instance ec2.



    Help me to resolve it.










    share|improve this question

























      0












      0








      0







      I am running a load test of 600/sec user for 2 min. At the end of test I get error in response "Address already in use.connect"



      I have increased TCP Max port user to 200000. still I am getting the issue.



      Total samples server are 60782.



      Why i am facing this issue?



      My jmeter is installed on windows server instance ec2.



      Help me to resolve it.










      share|improve this question













      I am running a load test of 600/sec user for 2 min. At the end of test I get error in response "Address already in use.connect"



      I have increased TCP Max port user to 200000. still I am getting the issue.



      Total samples server are 60782.



      Why i am facing this issue?



      My jmeter is installed on windows server instance ec2.



      Help me to resolve it.







      performance jmeter load performance-testing






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 12 '18 at 19:22









      Ashish Koli

      61




      61
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You cannot increase max ports number to 200 000 as port number is represented by an unsigned 16-bit integer therefore the maximum number of ports you can use is 65534.



          In fact the number will be less as some are reserved, some are already used by your operating system and other software.



          So I'm under impression that the steps you took to "increase TCP Max port" are a little bit wrong.



          It is also unclear whether it is a client (JMeter) or a server (application under test) issue.



          I would recommend increasing the load gradually and looking into Active Threads Over Time, Transactions Per Second and Response Codes Per Second charts. This way you will know what was the maximum number of users/requests per second you can produce without issues.



          If the throughput or number of users will not be sufficient you will need to find out the reason which could be either on application under test side or on JMeter side. If you are sure that everything is fine with your application under test on JMeter side you can check/implement the next points:




          1. Make sure you're following JMeter Best Practices

          2. Make sure JMeter has enough headroom to operate in terms of CPU, RAM, Network, Disk. You can use JMeter PerfMon Plugin for this.

          3. If the combination of above 2 points is not enough and you cannot conduct the necessary load - you will have to go for distributed testing and add another JMeter server so they would work in clustered mode.




          60782 samples in 2 minutes is 500 requests per second so consider checking where the bottleneck is.






          share|improve this answer





















            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%2f53268763%2fjmeter-address-already-in-use-getting-error-while-running-a-600-sec-user-concur%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














            You cannot increase max ports number to 200 000 as port number is represented by an unsigned 16-bit integer therefore the maximum number of ports you can use is 65534.



            In fact the number will be less as some are reserved, some are already used by your operating system and other software.



            So I'm under impression that the steps you took to "increase TCP Max port" are a little bit wrong.



            It is also unclear whether it is a client (JMeter) or a server (application under test) issue.



            I would recommend increasing the load gradually and looking into Active Threads Over Time, Transactions Per Second and Response Codes Per Second charts. This way you will know what was the maximum number of users/requests per second you can produce without issues.



            If the throughput or number of users will not be sufficient you will need to find out the reason which could be either on application under test side or on JMeter side. If you are sure that everything is fine with your application under test on JMeter side you can check/implement the next points:




            1. Make sure you're following JMeter Best Practices

            2. Make sure JMeter has enough headroom to operate in terms of CPU, RAM, Network, Disk. You can use JMeter PerfMon Plugin for this.

            3. If the combination of above 2 points is not enough and you cannot conduct the necessary load - you will have to go for distributed testing and add another JMeter server so they would work in clustered mode.




            60782 samples in 2 minutes is 500 requests per second so consider checking where the bottleneck is.






            share|improve this answer


























              0














              You cannot increase max ports number to 200 000 as port number is represented by an unsigned 16-bit integer therefore the maximum number of ports you can use is 65534.



              In fact the number will be less as some are reserved, some are already used by your operating system and other software.



              So I'm under impression that the steps you took to "increase TCP Max port" are a little bit wrong.



              It is also unclear whether it is a client (JMeter) or a server (application under test) issue.



              I would recommend increasing the load gradually and looking into Active Threads Over Time, Transactions Per Second and Response Codes Per Second charts. This way you will know what was the maximum number of users/requests per second you can produce without issues.



              If the throughput or number of users will not be sufficient you will need to find out the reason which could be either on application under test side or on JMeter side. If you are sure that everything is fine with your application under test on JMeter side you can check/implement the next points:




              1. Make sure you're following JMeter Best Practices

              2. Make sure JMeter has enough headroom to operate in terms of CPU, RAM, Network, Disk. You can use JMeter PerfMon Plugin for this.

              3. If the combination of above 2 points is not enough and you cannot conduct the necessary load - you will have to go for distributed testing and add another JMeter server so they would work in clustered mode.




              60782 samples in 2 minutes is 500 requests per second so consider checking where the bottleneck is.






              share|improve this answer
























                0












                0








                0






                You cannot increase max ports number to 200 000 as port number is represented by an unsigned 16-bit integer therefore the maximum number of ports you can use is 65534.



                In fact the number will be less as some are reserved, some are already used by your operating system and other software.



                So I'm under impression that the steps you took to "increase TCP Max port" are a little bit wrong.



                It is also unclear whether it is a client (JMeter) or a server (application under test) issue.



                I would recommend increasing the load gradually and looking into Active Threads Over Time, Transactions Per Second and Response Codes Per Second charts. This way you will know what was the maximum number of users/requests per second you can produce without issues.



                If the throughput or number of users will not be sufficient you will need to find out the reason which could be either on application under test side or on JMeter side. If you are sure that everything is fine with your application under test on JMeter side you can check/implement the next points:




                1. Make sure you're following JMeter Best Practices

                2. Make sure JMeter has enough headroom to operate in terms of CPU, RAM, Network, Disk. You can use JMeter PerfMon Plugin for this.

                3. If the combination of above 2 points is not enough and you cannot conduct the necessary load - you will have to go for distributed testing and add another JMeter server so they would work in clustered mode.




                60782 samples in 2 minutes is 500 requests per second so consider checking where the bottleneck is.






                share|improve this answer












                You cannot increase max ports number to 200 000 as port number is represented by an unsigned 16-bit integer therefore the maximum number of ports you can use is 65534.



                In fact the number will be less as some are reserved, some are already used by your operating system and other software.



                So I'm under impression that the steps you took to "increase TCP Max port" are a little bit wrong.



                It is also unclear whether it is a client (JMeter) or a server (application under test) issue.



                I would recommend increasing the load gradually and looking into Active Threads Over Time, Transactions Per Second and Response Codes Per Second charts. This way you will know what was the maximum number of users/requests per second you can produce without issues.



                If the throughput or number of users will not be sufficient you will need to find out the reason which could be either on application under test side or on JMeter side. If you are sure that everything is fine with your application under test on JMeter side you can check/implement the next points:




                1. Make sure you're following JMeter Best Practices

                2. Make sure JMeter has enough headroom to operate in terms of CPU, RAM, Network, Disk. You can use JMeter PerfMon Plugin for this.

                3. If the combination of above 2 points is not enough and you cannot conduct the necessary load - you will have to go for distributed testing and add another JMeter server so they would work in clustered mode.




                60782 samples in 2 minutes is 500 requests per second so consider checking where the bottleneck is.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 13 '18 at 6:09









                Dmitri T

                69.2k33458




                69.2k33458






























                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f53268763%2fjmeter-address-already-in-use-getting-error-while-running-a-600-sec-user-concur%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







                    這個網誌中的熱門文章

                    Xamarin.form Move up view when keyboard appear

                    Post-Redirect-Get with Spring WebFlux and Thymeleaf

                    Anylogic : not able to use stopDelay()