Getting error “An operation on a socket could not be performed…” with XAMPP and Windows again and again












1















I have a PHP application which is running under XAMPP (Windows Environment : Windows server 2012).



Now very often I am getting an error while trying to login via a MySql web client (adminer https://www.adminer.org/) as follow;



An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.



I've found one solution which describes restarting the physical server (not xampp). And it worked. But in the very next day it happened again. And once again I restarted it but in a few interval the error is coming again and again.



Error at adminer



FYI;




  1. Restarting XAMPP is not working

  2. Restarting MySql server is not working

  3. Only if I restart physical server then it is working for a while.

  4. The server was working fine along with all current configuration from last 6 months and this problem starts to come from last few days only.


In the server;




  1. The CPU consumption is around 30% to 40% when top load

  2. RAM consumption on average 40% to 50%

  3. The HDD is 90GB in which 10GB to 12GB is free still (only one drive is there that is C)


I am not getting properly the reason of the error.










share|improve this question

























  • Seems like a port issue. Did you tried changing tcp port limit? support.microsoft.com/en-us/help/196271/…

    – mim.
    Jan 2 at 8:54













  • Apache is running on port 80 and mysql is 3306 which is by default. Do I need to change port limit for this default configuration? And if it is port limit issue then why is it not happening always rather becomes fine after physical server restart for few hours?

    – KOUSIK MANDAL
    Jan 2 at 8:59






  • 1





    In 2012 the port limit should not be the issue, your PC may be making too many outgoing requests causing port exhaustion, inspect your network requests, your PC may also be infected with a virus which is making the requests.

    – Munim Munna
    Jan 8 at 15:31
















1















I have a PHP application which is running under XAMPP (Windows Environment : Windows server 2012).



Now very often I am getting an error while trying to login via a MySql web client (adminer https://www.adminer.org/) as follow;



An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.



I've found one solution which describes restarting the physical server (not xampp). And it worked. But in the very next day it happened again. And once again I restarted it but in a few interval the error is coming again and again.



Error at adminer



FYI;




  1. Restarting XAMPP is not working

  2. Restarting MySql server is not working

  3. Only if I restart physical server then it is working for a while.

  4. The server was working fine along with all current configuration from last 6 months and this problem starts to come from last few days only.


In the server;




  1. The CPU consumption is around 30% to 40% when top load

  2. RAM consumption on average 40% to 50%

  3. The HDD is 90GB in which 10GB to 12GB is free still (only one drive is there that is C)


I am not getting properly the reason of the error.










share|improve this question

























  • Seems like a port issue. Did you tried changing tcp port limit? support.microsoft.com/en-us/help/196271/…

    – mim.
    Jan 2 at 8:54













  • Apache is running on port 80 and mysql is 3306 which is by default. Do I need to change port limit for this default configuration? And if it is port limit issue then why is it not happening always rather becomes fine after physical server restart for few hours?

    – KOUSIK MANDAL
    Jan 2 at 8:59






  • 1





    In 2012 the port limit should not be the issue, your PC may be making too many outgoing requests causing port exhaustion, inspect your network requests, your PC may also be infected with a virus which is making the requests.

    – Munim Munna
    Jan 8 at 15:31














1












1








1








I have a PHP application which is running under XAMPP (Windows Environment : Windows server 2012).



Now very often I am getting an error while trying to login via a MySql web client (adminer https://www.adminer.org/) as follow;



An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.



I've found one solution which describes restarting the physical server (not xampp). And it worked. But in the very next day it happened again. And once again I restarted it but in a few interval the error is coming again and again.



Error at adminer



FYI;




  1. Restarting XAMPP is not working

  2. Restarting MySql server is not working

  3. Only if I restart physical server then it is working for a while.

  4. The server was working fine along with all current configuration from last 6 months and this problem starts to come from last few days only.


In the server;




  1. The CPU consumption is around 30% to 40% when top load

  2. RAM consumption on average 40% to 50%

  3. The HDD is 90GB in which 10GB to 12GB is free still (only one drive is there that is C)


I am not getting properly the reason of the error.










share|improve this question
















I have a PHP application which is running under XAMPP (Windows Environment : Windows server 2012).



Now very often I am getting an error while trying to login via a MySql web client (adminer https://www.adminer.org/) as follow;



An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.



I've found one solution which describes restarting the physical server (not xampp). And it worked. But in the very next day it happened again. And once again I restarted it but in a few interval the error is coming again and again.



Error at adminer



FYI;




  1. Restarting XAMPP is not working

  2. Restarting MySql server is not working

  3. Only if I restart physical server then it is working for a while.

  4. The server was working fine along with all current configuration from last 6 months and this problem starts to come from last few days only.


In the server;




  1. The CPU consumption is around 30% to 40% when top load

  2. RAM consumption on average 40% to 50%

  3. The HDD is 90GB in which 10GB to 12GB is free still (only one drive is there that is C)


I am not getting properly the reason of the error.







php mysql xampp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 8 at 11:14









yivi

5,58872755




5,58872755










asked Jan 2 at 8:44









KOUSIK MANDALKOUSIK MANDAL

1,0891130




1,0891130













  • Seems like a port issue. Did you tried changing tcp port limit? support.microsoft.com/en-us/help/196271/…

    – mim.
    Jan 2 at 8:54













  • Apache is running on port 80 and mysql is 3306 which is by default. Do I need to change port limit for this default configuration? And if it is port limit issue then why is it not happening always rather becomes fine after physical server restart for few hours?

    – KOUSIK MANDAL
    Jan 2 at 8:59






  • 1





    In 2012 the port limit should not be the issue, your PC may be making too many outgoing requests causing port exhaustion, inspect your network requests, your PC may also be infected with a virus which is making the requests.

    – Munim Munna
    Jan 8 at 15:31



















  • Seems like a port issue. Did you tried changing tcp port limit? support.microsoft.com/en-us/help/196271/…

    – mim.
    Jan 2 at 8:54













  • Apache is running on port 80 and mysql is 3306 which is by default. Do I need to change port limit for this default configuration? And if it is port limit issue then why is it not happening always rather becomes fine after physical server restart for few hours?

    – KOUSIK MANDAL
    Jan 2 at 8:59






  • 1





    In 2012 the port limit should not be the issue, your PC may be making too many outgoing requests causing port exhaustion, inspect your network requests, your PC may also be infected with a virus which is making the requests.

    – Munim Munna
    Jan 8 at 15:31

















Seems like a port issue. Did you tried changing tcp port limit? support.microsoft.com/en-us/help/196271/…

– mim.
Jan 2 at 8:54







Seems like a port issue. Did you tried changing tcp port limit? support.microsoft.com/en-us/help/196271/…

– mim.
Jan 2 at 8:54















Apache is running on port 80 and mysql is 3306 which is by default. Do I need to change port limit for this default configuration? And if it is port limit issue then why is it not happening always rather becomes fine after physical server restart for few hours?

– KOUSIK MANDAL
Jan 2 at 8:59





Apache is running on port 80 and mysql is 3306 which is by default. Do I need to change port limit for this default configuration? And if it is port limit issue then why is it not happening always rather becomes fine after physical server restart for few hours?

– KOUSIK MANDAL
Jan 2 at 8:59




1




1





In 2012 the port limit should not be the issue, your PC may be making too many outgoing requests causing port exhaustion, inspect your network requests, your PC may also be infected with a virus which is making the requests.

– Munim Munna
Jan 8 at 15:31





In 2012 the port limit should not be the issue, your PC may be making too many outgoing requests causing port exhaustion, inspect your network requests, your PC may also be infected with a virus which is making the requests.

– Munim Munna
Jan 8 at 15:31












2 Answers
2






active

oldest

votes


















0














Windows server 2012 has limit of outbound ports of 5000. The OS is trying to establish an outbound TCP connection from a port with a number greater than 5000 in your case.



Here's how to reconfigure OS to raise the limit https://support.microsoft.com/en-us/help/196271/when-you-try-to-connect-from-tcp-ports-greater-than-5000-you-receive-t



The real solution, though is to introduce connection pooling.






share|improve this answer































    0














    Are you running Skype and XAMPP at the same time? If yes, try disabling Skype and re-run XAMPP.






    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%2f54003420%2fgetting-error-an-operation-on-a-socket-could-not-be-performed-with-xampp-an%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














      Windows server 2012 has limit of outbound ports of 5000. The OS is trying to establish an outbound TCP connection from a port with a number greater than 5000 in your case.



      Here's how to reconfigure OS to raise the limit https://support.microsoft.com/en-us/help/196271/when-you-try-to-connect-from-tcp-ports-greater-than-5000-you-receive-t



      The real solution, though is to introduce connection pooling.






      share|improve this answer




























        0














        Windows server 2012 has limit of outbound ports of 5000. The OS is trying to establish an outbound TCP connection from a port with a number greater than 5000 in your case.



        Here's how to reconfigure OS to raise the limit https://support.microsoft.com/en-us/help/196271/when-you-try-to-connect-from-tcp-ports-greater-than-5000-you-receive-t



        The real solution, though is to introduce connection pooling.






        share|improve this answer


























          0












          0








          0







          Windows server 2012 has limit of outbound ports of 5000. The OS is trying to establish an outbound TCP connection from a port with a number greater than 5000 in your case.



          Here's how to reconfigure OS to raise the limit https://support.microsoft.com/en-us/help/196271/when-you-try-to-connect-from-tcp-ports-greater-than-5000-you-receive-t



          The real solution, though is to introduce connection pooling.






          share|improve this answer













          Windows server 2012 has limit of outbound ports of 5000. The OS is trying to establish an outbound TCP connection from a port with a number greater than 5000 in your case.



          Here's how to reconfigure OS to raise the limit https://support.microsoft.com/en-us/help/196271/when-you-try-to-connect-from-tcp-ports-greater-than-5000-you-receive-t



          The real solution, though is to introduce connection pooling.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 8 at 19:56









          Sam DarkSam Dark

          4,68712847




          4,68712847

























              0














              Are you running Skype and XAMPP at the same time? If yes, try disabling Skype and re-run XAMPP.






              share|improve this answer




























                0














                Are you running Skype and XAMPP at the same time? If yes, try disabling Skype and re-run XAMPP.






                share|improve this answer


























                  0












                  0








                  0







                  Are you running Skype and XAMPP at the same time? If yes, try disabling Skype and re-run XAMPP.






                  share|improve this answer













                  Are you running Skype and XAMPP at the same time? If yes, try disabling Skype and re-run XAMPP.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 13 at 7:06









                  moreishimoreishi

                  234




                  234






























                      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%2f54003420%2fgetting-error-an-operation-on-a-socket-could-not-be-performed-with-xampp-an%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

                      MongoDB - Not Authorized To Execute Command

                      How to fix TextFormField cause rebuild widget in Flutter

                      in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith