Mysql state “Creating sort index” slow magento2Slow Save Order Due To Re-IndexMagento 1: purpose of...

Isn't using the Extrusion Multiplier like cheating?

Every character has a name - does this lead to too many named characters?

If I sold a PS4 game I owned the disc for, can I reinstall it digitally?

Why do members of Congress in committee hearings ask witnesses the same question multiple times?

Difference between thick vs thin front suspension?

Show that the following sequence converges. Please Critique my proof.

Why are the books in the Game of Thrones citadel library shelved spine inwards?

Broken patches on a road

Avoiding morning and evening handshakes

Why does String.replaceAll() work differently in Java 8 from Java 9?

What to do when being responsible for data protection in your lab, yet advice is ignored?

We are very unlucky in my court

Why doesn't "auto ch = unsigned char{'p'}" compile under C++ 17?

Why is "points exist" not an axiom in geometry?

Why do neural networks need so many training examples to perform?

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Would these multi-classing house rules cause unintended problems?

Enable Advanced Currency Management using CLI

Am I a Rude Number?

Contest math problem about crossing out numbers in the table

How to deal with an incendiary email that was recalled

Eww, those bytes are gross

Citing paywalled articles accessed via illegal web sharing

Using only 1s, make 29 with the minimum number of digits



Mysql state “Creating sort index” slow magento2


Slow Save Order Due To Re-IndexMagento 1: purpose of Magento index tables vs MySQL indexesMagento 2 Sort By Price: Low to High and High to LowAdd a MySQL index key to a column in Magento 1 flat tablesMagento very high connectionsMagento indexing causing website downtimeHigh load consuming mysql commandMysql server goes down with queries in SLEEP STATE when I access magento siteMagento Frontend suddenly very slow (Backend fast) issue MySQL relatedbin/magento cron:run running for a long time













2















How to disable "Creating sort index" state on mysql, this is cause high CPU(>400%) & slowing magento. How to prevent this?










share|improve this question

























  • Additional information request, please. Post on pastebin.com or here. RAM size of your MySQL Host server A) complete (not edited) my.cnf or my.ini Text results of: B) SHOW GLOBAL STATUS; after minimum 24 hours UPTIME C) SHOW GLOBAL VARIABLES; D) complete MySQLTuner report Optional very helpful information, if available includes - htop, top & mytop for most active apps, ulimit -a for a linux/unix list of limits, iostat -x when system is busy for an idea of IOPS by device, df -h for a linux/unix free space list by device, for server tuning analysis.

    – Wilson Hauck
    Aug 23 '18 at 13:13











  • For Basic analysis, additional information request, please. Post on pastebin.com or here. A) RAM size of your MySQL Host server Text results of: B) SHOW GLOBAL STATUS; after minimum 24 hours UPTIME C) SHOW GLOBAL VARIABLES; to improve reduce your SORT time required, rather than presenting a jumble of unpredictable data sequences to your customers.

    – Wilson Hauck
    Sep 17 '18 at 18:00











  • Make Every Moment Count It has been 6 weeks and you still have not posted any data that would allow me to help you. Have you just given up on sorting your data for your customers? How many cpu/core exist on your server? If you have 12 cores, 400% is 33% of your available CPU power was being used when observed. CPU% divided by cpu/core = %busy SO 400 / 12 = 33%

    – Wilson Hauck
    Nov 1 '18 at 23:57


















2















How to disable "Creating sort index" state on mysql, this is cause high CPU(>400%) & slowing magento. How to prevent this?










share|improve this question

























  • Additional information request, please. Post on pastebin.com or here. RAM size of your MySQL Host server A) complete (not edited) my.cnf or my.ini Text results of: B) SHOW GLOBAL STATUS; after minimum 24 hours UPTIME C) SHOW GLOBAL VARIABLES; D) complete MySQLTuner report Optional very helpful information, if available includes - htop, top & mytop for most active apps, ulimit -a for a linux/unix list of limits, iostat -x when system is busy for an idea of IOPS by device, df -h for a linux/unix free space list by device, for server tuning analysis.

    – Wilson Hauck
    Aug 23 '18 at 13:13











  • For Basic analysis, additional information request, please. Post on pastebin.com or here. A) RAM size of your MySQL Host server Text results of: B) SHOW GLOBAL STATUS; after minimum 24 hours UPTIME C) SHOW GLOBAL VARIABLES; to improve reduce your SORT time required, rather than presenting a jumble of unpredictable data sequences to your customers.

    – Wilson Hauck
    Sep 17 '18 at 18:00











  • Make Every Moment Count It has been 6 weeks and you still have not posted any data that would allow me to help you. Have you just given up on sorting your data for your customers? How many cpu/core exist on your server? If you have 12 cores, 400% is 33% of your available CPU power was being used when observed. CPU% divided by cpu/core = %busy SO 400 / 12 = 33%

    – Wilson Hauck
    Nov 1 '18 at 23:57
















2












2








2








How to disable "Creating sort index" state on mysql, this is cause high CPU(>400%) & slowing magento. How to prevent this?










share|improve this question
















How to disable "Creating sort index" state on mysql, this is cause high CPU(>400%) & slowing magento. How to prevent this?







magento2 database






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 24 '18 at 7:49









Teja Bhagavan Kollepara

2,97341847




2,97341847










asked Aug 10 '18 at 2:01









AnsyoriAnsyori

499713




499713













  • Additional information request, please. Post on pastebin.com or here. RAM size of your MySQL Host server A) complete (not edited) my.cnf or my.ini Text results of: B) SHOW GLOBAL STATUS; after minimum 24 hours UPTIME C) SHOW GLOBAL VARIABLES; D) complete MySQLTuner report Optional very helpful information, if available includes - htop, top & mytop for most active apps, ulimit -a for a linux/unix list of limits, iostat -x when system is busy for an idea of IOPS by device, df -h for a linux/unix free space list by device, for server tuning analysis.

    – Wilson Hauck
    Aug 23 '18 at 13:13











  • For Basic analysis, additional information request, please. Post on pastebin.com or here. A) RAM size of your MySQL Host server Text results of: B) SHOW GLOBAL STATUS; after minimum 24 hours UPTIME C) SHOW GLOBAL VARIABLES; to improve reduce your SORT time required, rather than presenting a jumble of unpredictable data sequences to your customers.

    – Wilson Hauck
    Sep 17 '18 at 18:00











  • Make Every Moment Count It has been 6 weeks and you still have not posted any data that would allow me to help you. Have you just given up on sorting your data for your customers? How many cpu/core exist on your server? If you have 12 cores, 400% is 33% of your available CPU power was being used when observed. CPU% divided by cpu/core = %busy SO 400 / 12 = 33%

    – Wilson Hauck
    Nov 1 '18 at 23:57





















  • Additional information request, please. Post on pastebin.com or here. RAM size of your MySQL Host server A) complete (not edited) my.cnf or my.ini Text results of: B) SHOW GLOBAL STATUS; after minimum 24 hours UPTIME C) SHOW GLOBAL VARIABLES; D) complete MySQLTuner report Optional very helpful information, if available includes - htop, top & mytop for most active apps, ulimit -a for a linux/unix list of limits, iostat -x when system is busy for an idea of IOPS by device, df -h for a linux/unix free space list by device, for server tuning analysis.

    – Wilson Hauck
    Aug 23 '18 at 13:13











  • For Basic analysis, additional information request, please. Post on pastebin.com or here. A) RAM size of your MySQL Host server Text results of: B) SHOW GLOBAL STATUS; after minimum 24 hours UPTIME C) SHOW GLOBAL VARIABLES; to improve reduce your SORT time required, rather than presenting a jumble of unpredictable data sequences to your customers.

    – Wilson Hauck
    Sep 17 '18 at 18:00











  • Make Every Moment Count It has been 6 weeks and you still have not posted any data that would allow me to help you. Have you just given up on sorting your data for your customers? How many cpu/core exist on your server? If you have 12 cores, 400% is 33% of your available CPU power was being used when observed. CPU% divided by cpu/core = %busy SO 400 / 12 = 33%

    – Wilson Hauck
    Nov 1 '18 at 23:57



















Additional information request, please. Post on pastebin.com or here. RAM size of your MySQL Host server A) complete (not edited) my.cnf or my.ini Text results of: B) SHOW GLOBAL STATUS; after minimum 24 hours UPTIME C) SHOW GLOBAL VARIABLES; D) complete MySQLTuner report Optional very helpful information, if available includes - htop, top & mytop for most active apps, ulimit -a for a linux/unix list of limits, iostat -x when system is busy for an idea of IOPS by device, df -h for a linux/unix free space list by device, for server tuning analysis.

– Wilson Hauck
Aug 23 '18 at 13:13





Additional information request, please. Post on pastebin.com or here. RAM size of your MySQL Host server A) complete (not edited) my.cnf or my.ini Text results of: B) SHOW GLOBAL STATUS; after minimum 24 hours UPTIME C) SHOW GLOBAL VARIABLES; D) complete MySQLTuner report Optional very helpful information, if available includes - htop, top & mytop for most active apps, ulimit -a for a linux/unix list of limits, iostat -x when system is busy for an idea of IOPS by device, df -h for a linux/unix free space list by device, for server tuning analysis.

– Wilson Hauck
Aug 23 '18 at 13:13













For Basic analysis, additional information request, please. Post on pastebin.com or here. A) RAM size of your MySQL Host server Text results of: B) SHOW GLOBAL STATUS; after minimum 24 hours UPTIME C) SHOW GLOBAL VARIABLES; to improve reduce your SORT time required, rather than presenting a jumble of unpredictable data sequences to your customers.

– Wilson Hauck
Sep 17 '18 at 18:00





For Basic analysis, additional information request, please. Post on pastebin.com or here. A) RAM size of your MySQL Host server Text results of: B) SHOW GLOBAL STATUS; after minimum 24 hours UPTIME C) SHOW GLOBAL VARIABLES; to improve reduce your SORT time required, rather than presenting a jumble of unpredictable data sequences to your customers.

– Wilson Hauck
Sep 17 '18 at 18:00













Make Every Moment Count It has been 6 weeks and you still have not posted any data that would allow me to help you. Have you just given up on sorting your data for your customers? How many cpu/core exist on your server? If you have 12 cores, 400% is 33% of your available CPU power was being used when observed. CPU% divided by cpu/core = %busy SO 400 / 12 = 33%

– Wilson Hauck
Nov 1 '18 at 23:57







Make Every Moment Count It has been 6 weeks and you still have not posted any data that would allow me to help you. Have you just given up on sorting your data for your customers? How many cpu/core exist on your server? If you have 12 cores, 400% is 33% of your available CPU power was being used when observed. CPU% divided by cpu/core = %busy SO 400 / 12 = 33%

– Wilson Hauck
Nov 1 '18 at 23:57












2 Answers
2






active

oldest

votes


















0














SELECT @@sort_buffer_size; to determine current size



Multiply the value returned by two.



In your my.cnf [mysqld] section,



sort_buffer_size=calculated-result


stop/start your instance and you should have reduction in CPU % used.





share































    -1














    This issue is related to sort collection on custom product grid for latest products, best seller, etc.. at the homepage.



    So, remove Sort by collection. Then, the issue will be resolved.






    share|improve this answer


























    • Is SORT not important for your customers predictable display of data from day to day? Give me an opportunity to review the information requested 8/23, please. Thanks

      – Wilson Hauck
      Aug 26 '18 at 17:46











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "479"
    };
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2fmagento.stackexchange.com%2fquestions%2f237882%2fmysql-state-creating-sort-index-slow-magento2%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    SELECT @@sort_buffer_size; to determine current size



    Multiply the value returned by two.



    In your my.cnf [mysqld] section,



    sort_buffer_size=calculated-result


    stop/start your instance and you should have reduction in CPU % used.





    share




























      0














      SELECT @@sort_buffer_size; to determine current size



      Multiply the value returned by two.



      In your my.cnf [mysqld] section,



      sort_buffer_size=calculated-result


      stop/start your instance and you should have reduction in CPU % used.





      share


























        0












        0








        0







        SELECT @@sort_buffer_size; to determine current size



        Multiply the value returned by two.



        In your my.cnf [mysqld] section,



        sort_buffer_size=calculated-result


        stop/start your instance and you should have reduction in CPU % used.





        share













        SELECT @@sort_buffer_size; to determine current size



        Multiply the value returned by two.



        In your my.cnf [mysqld] section,



        sort_buffer_size=calculated-result


        stop/start your instance and you should have reduction in CPU % used.






        share











        share


        share










        answered 5 mins ago









        Wilson HauckWilson Hauck

        1215




        1215

























            -1














            This issue is related to sort collection on custom product grid for latest products, best seller, etc.. at the homepage.



            So, remove Sort by collection. Then, the issue will be resolved.






            share|improve this answer


























            • Is SORT not important for your customers predictable display of data from day to day? Give me an opportunity to review the information requested 8/23, please. Thanks

              – Wilson Hauck
              Aug 26 '18 at 17:46
















            -1














            This issue is related to sort collection on custom product grid for latest products, best seller, etc.. at the homepage.



            So, remove Sort by collection. Then, the issue will be resolved.






            share|improve this answer


























            • Is SORT not important for your customers predictable display of data from day to day? Give me an opportunity to review the information requested 8/23, please. Thanks

              – Wilson Hauck
              Aug 26 '18 at 17:46














            -1












            -1








            -1







            This issue is related to sort collection on custom product grid for latest products, best seller, etc.. at the homepage.



            So, remove Sort by collection. Then, the issue will be resolved.






            share|improve this answer















            This issue is related to sort collection on custom product grid for latest products, best seller, etc.. at the homepage.



            So, remove Sort by collection. Then, the issue will be resolved.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Aug 24 '18 at 7:51









            Teja Bhagavan Kollepara

            2,97341847




            2,97341847










            answered Aug 24 '18 at 7:47









            AnsyoriAnsyori

            499713




            499713













            • Is SORT not important for your customers predictable display of data from day to day? Give me an opportunity to review the information requested 8/23, please. Thanks

              – Wilson Hauck
              Aug 26 '18 at 17:46



















            • Is SORT not important for your customers predictable display of data from day to day? Give me an opportunity to review the information requested 8/23, please. Thanks

              – Wilson Hauck
              Aug 26 '18 at 17:46

















            Is SORT not important for your customers predictable display of data from day to day? Give me an opportunity to review the information requested 8/23, please. Thanks

            – Wilson Hauck
            Aug 26 '18 at 17:46





            Is SORT not important for your customers predictable display of data from day to day? Give me an opportunity to review the information requested 8/23, please. Thanks

            – Wilson Hauck
            Aug 26 '18 at 17:46


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Magento Stack Exchange!


            • 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%2fmagento.stackexchange.com%2fquestions%2f237882%2fmysql-state-creating-sort-index-slow-magento2%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

            “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

            How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

            夢乃愛華...