RoundCube too many sleep connections in mysql The 2019 Stack Overflow Developer Survey Results Are InDebugging mysql too many connections problemLower Maximum Possible Memory UsageMySQL too many connectionsHow do I allow mysqld to use more than 24.9% of my cpu?MySQL becomes unresponsive a few times per hourAdding Drupal to my server means it now has performance problemsMySQL Error: Too many connectionsubuntu mysql too many connectionsCan't stop mysql too many connectionsHow to configure Apache “workers” for maximum concurrency

"Riffle" two strings

A poker game description that does not feel gimmicky

Deadlock Graph and Interpretation, solution to avoid

Inline version of a function returns different value than non-inline version

Is it possible for the two major parties in the UK to form a coalition with each other instead of a much smaller party?

Why do UK politicians seemingly ignore opinion polls on Brexit?

What is the steepest angle that a canal can be traversable without locks?

How are circuits which use complex ICs normally simulated?

What tool would a Roman-age civilization have to grind silver and other metals into dust?

How to create dashed lines/arrows in Illustrator

Where does the "burst of radiance" from Holy Weapon originate?

How to deal with fear of taking dependencies

In microwave frequencies, do you use a circulator when you need a (near) perfect diode?

Falsification in Math vs Science

Time travel alters history but people keep saying nothing's changed

Should I use my personal or workplace e-mail when registering to external websites for work purpose?

aging parents with no investments

How to reverse every other sublist of a list?

Why is my p-value correlated to difference between means in two sample tests?

The difference between dialogue marks

What can other administrators access on my machine?

Understanding the implication of what "well-defined" means for the operation in quotient group

I see my dog run

Why could you hear an Amstrad CPC working?



RoundCube too many sleep connections in mysql



The 2019 Stack Overflow Developer Survey Results Are InDebugging mysql too many connections problemLower Maximum Possible Memory UsageMySQL too many connectionsHow do I allow mysqld to use more than 24.9% of my cpu?MySQL becomes unresponsive a few times per hourAdding Drupal to my server means it now has performance problemsMySQL Error: Too many connectionsubuntu mysql too many connectionsCan't stop mysql too many connectionsHow to configure Apache “workers” for maximum concurrency



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















we have a mail service with these details:



 1-Centos 6.4
2:Postfix 2.6.6
3:roundcube 0.8
4:dovecot 2.0.9.7
5:mysql-server 5.1.71


everything is ok but in peak usage time roundcube sleeped connections increases from 1 or 2 or 3 to 270 in less than 10 minutes and apache opened files (measured by lsof) increase from 4000 to 20000 in that peak time.



this is apache conf: (apache works in prefork mode)



PidFile run/httpd.pid
Timeout 60
KeepAlive On
MaxKeepAliveRequests 100
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
TraceEnable off
LimitRequestLine 1024
LimitRequestFields 100
LimitRequestFieldsize 1024
LimitRequestBody 10241024


and here is mysql config:



secure_auth=1
local_infile=0
max_connections = 600
max_allowed_packet = 16M
key_buffer =256M
wait_timeout=240
interactive_timeout=180
connect_timeout=10
innodb_buffer_pool_size=2G


when sleeped connections of roundcube increased to >100 ,almost services (web,mail,mysql) go down....



thanks for any suggestion.










share|improve this question
























  • 1. How did you install your php? 2. How much your RAM/CPU? free -m;cat /proc/cpuinfo;

    – PersianGulf
    Apr 10 '14 at 9:09











  • You have decide use prefork or apache worker , so read the following link : codebucket.co.in/apache-prefork-or-worker

    – PersianGulf
    Apr 10 '14 at 9:13











  • mysql down or apache ? or all of your machine ....?

    – PersianGulf
    Apr 10 '14 at 9:16











  • install php from repository (php 5.2.10) 256G RAM 64 Cores CPU 2.4GHz

    – Sassan torabkheslat
    Apr 10 '14 at 12:31












  • in peak time all services go down

    – Sassan torabkheslat
    Apr 10 '14 at 12:32

















1















we have a mail service with these details:



 1-Centos 6.4
2:Postfix 2.6.6
3:roundcube 0.8
4:dovecot 2.0.9.7
5:mysql-server 5.1.71


everything is ok but in peak usage time roundcube sleeped connections increases from 1 or 2 or 3 to 270 in less than 10 minutes and apache opened files (measured by lsof) increase from 4000 to 20000 in that peak time.



this is apache conf: (apache works in prefork mode)



PidFile run/httpd.pid
Timeout 60
KeepAlive On
MaxKeepAliveRequests 100
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
TraceEnable off
LimitRequestLine 1024
LimitRequestFields 100
LimitRequestFieldsize 1024
LimitRequestBody 10241024


and here is mysql config:



secure_auth=1
local_infile=0
max_connections = 600
max_allowed_packet = 16M
key_buffer =256M
wait_timeout=240
interactive_timeout=180
connect_timeout=10
innodb_buffer_pool_size=2G


when sleeped connections of roundcube increased to >100 ,almost services (web,mail,mysql) go down....



thanks for any suggestion.










share|improve this question
























  • 1. How did you install your php? 2. How much your RAM/CPU? free -m;cat /proc/cpuinfo;

    – PersianGulf
    Apr 10 '14 at 9:09











  • You have decide use prefork or apache worker , so read the following link : codebucket.co.in/apache-prefork-or-worker

    – PersianGulf
    Apr 10 '14 at 9:13











  • mysql down or apache ? or all of your machine ....?

    – PersianGulf
    Apr 10 '14 at 9:16











  • install php from repository (php 5.2.10) 256G RAM 64 Cores CPU 2.4GHz

    – Sassan torabkheslat
    Apr 10 '14 at 12:31












  • in peak time all services go down

    – Sassan torabkheslat
    Apr 10 '14 at 12:32













1












1








1








we have a mail service with these details:



 1-Centos 6.4
2:Postfix 2.6.6
3:roundcube 0.8
4:dovecot 2.0.9.7
5:mysql-server 5.1.71


everything is ok but in peak usage time roundcube sleeped connections increases from 1 or 2 or 3 to 270 in less than 10 minutes and apache opened files (measured by lsof) increase from 4000 to 20000 in that peak time.



this is apache conf: (apache works in prefork mode)



PidFile run/httpd.pid
Timeout 60
KeepAlive On
MaxKeepAliveRequests 100
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
TraceEnable off
LimitRequestLine 1024
LimitRequestFields 100
LimitRequestFieldsize 1024
LimitRequestBody 10241024


and here is mysql config:



secure_auth=1
local_infile=0
max_connections = 600
max_allowed_packet = 16M
key_buffer =256M
wait_timeout=240
interactive_timeout=180
connect_timeout=10
innodb_buffer_pool_size=2G


when sleeped connections of roundcube increased to >100 ,almost services (web,mail,mysql) go down....



thanks for any suggestion.










share|improve this question
















we have a mail service with these details:



 1-Centos 6.4
2:Postfix 2.6.6
3:roundcube 0.8
4:dovecot 2.0.9.7
5:mysql-server 5.1.71


everything is ok but in peak usage time roundcube sleeped connections increases from 1 or 2 or 3 to 270 in less than 10 minutes and apache opened files (measured by lsof) increase from 4000 to 20000 in that peak time.



this is apache conf: (apache works in prefork mode)



PidFile run/httpd.pid
Timeout 60
KeepAlive On
MaxKeepAliveRequests 100
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
TraceEnable off
LimitRequestLine 1024
LimitRequestFields 100
LimitRequestFieldsize 1024
LimitRequestBody 10241024


and here is mysql config:



secure_auth=1
local_infile=0
max_connections = 600
max_allowed_packet = 16M
key_buffer =256M
wait_timeout=240
interactive_timeout=180
connect_timeout=10
innodb_buffer_pool_size=2G


when sleeped connections of roundcube increased to >100 ,almost services (web,mail,mysql) go down....



thanks for any suggestion.







mysql httpd roundcube






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 9 '14 at 14:29







Sassan torabkheslat

















asked Apr 9 '14 at 14:23









Sassan torabkheslatSassan torabkheslat

5810




5810












  • 1. How did you install your php? 2. How much your RAM/CPU? free -m;cat /proc/cpuinfo;

    – PersianGulf
    Apr 10 '14 at 9:09











  • You have decide use prefork or apache worker , so read the following link : codebucket.co.in/apache-prefork-or-worker

    – PersianGulf
    Apr 10 '14 at 9:13











  • mysql down or apache ? or all of your machine ....?

    – PersianGulf
    Apr 10 '14 at 9:16











  • install php from repository (php 5.2.10) 256G RAM 64 Cores CPU 2.4GHz

    – Sassan torabkheslat
    Apr 10 '14 at 12:31












  • in peak time all services go down

    – Sassan torabkheslat
    Apr 10 '14 at 12:32

















  • 1. How did you install your php? 2. How much your RAM/CPU? free -m;cat /proc/cpuinfo;

    – PersianGulf
    Apr 10 '14 at 9:09











  • You have decide use prefork or apache worker , so read the following link : codebucket.co.in/apache-prefork-or-worker

    – PersianGulf
    Apr 10 '14 at 9:13











  • mysql down or apache ? or all of your machine ....?

    – PersianGulf
    Apr 10 '14 at 9:16











  • install php from repository (php 5.2.10) 256G RAM 64 Cores CPU 2.4GHz

    – Sassan torabkheslat
    Apr 10 '14 at 12:31












  • in peak time all services go down

    – Sassan torabkheslat
    Apr 10 '14 at 12:32
















1. How did you install your php? 2. How much your RAM/CPU? free -m;cat /proc/cpuinfo;

– PersianGulf
Apr 10 '14 at 9:09





1. How did you install your php? 2. How much your RAM/CPU? free -m;cat /proc/cpuinfo;

– PersianGulf
Apr 10 '14 at 9:09













You have decide use prefork or apache worker , so read the following link : codebucket.co.in/apache-prefork-or-worker

– PersianGulf
Apr 10 '14 at 9:13





You have decide use prefork or apache worker , so read the following link : codebucket.co.in/apache-prefork-or-worker

– PersianGulf
Apr 10 '14 at 9:13













mysql down or apache ? or all of your machine ....?

– PersianGulf
Apr 10 '14 at 9:16





mysql down or apache ? or all of your machine ....?

– PersianGulf
Apr 10 '14 at 9:16













install php from repository (php 5.2.10) 256G RAM 64 Cores CPU 2.4GHz

– Sassan torabkheslat
Apr 10 '14 at 12:31






install php from repository (php 5.2.10) 256G RAM 64 Cores CPU 2.4GHz

– Sassan torabkheslat
Apr 10 '14 at 12:31














in peak time all services go down

– Sassan torabkheslat
Apr 10 '14 at 12:32





in peak time all services go down

– Sassan torabkheslat
Apr 10 '14 at 12:32










2 Answers
2






active

oldest

votes


















0














The Answer is:



I have edit apache max_client option to lower value 256 --> 50
why!?



for (still) unknown issue all the preforked apache processes take CPU usage about 100% (100% usage of that core running preforked apache process for few moments)



So system go Down , because system has 64 CPU cores when all the 256 processes of apache use 100% cpu usage , system and services go down



issue still exist but services has no problem
I think issue related to network attacks (our monitoring tools report many attacks per day), that sometimes make problem such as resource locking or something else



thank you for all suggestion.






share|improve this answer






























    0














    Now



    After about 5 years



    The problem has been detected and solved in few days.



    It was so complicated for a Jr. System administrator like me ;)



    There was a problem in GFS2 cluster file-system that my teammate prepared on iSCSI LUN and this issue led to various issues and problems in Dovecot and roundcube (and then apache)



    for your information , when I pay attention to %wa parameter on top command , (it was about 90% ) , I thought (perhaps) there is problem in filesystem level.



    Then I had decide to transfer all data to new cluster filesystem (ocfs2) because GFS was deprecated !



    First of all, All data moved to new cluster file-system (on ocf2) then re-design whole system based on pacemake haproxy on debian wheezy!






    share|improve this answer























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "2"
      ;
      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%2fserverfault.com%2fquestions%2f587782%2froundcube-too-many-sleep-connections-in-mysql%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














      The Answer is:



      I have edit apache max_client option to lower value 256 --> 50
      why!?



      for (still) unknown issue all the preforked apache processes take CPU usage about 100% (100% usage of that core running preforked apache process for few moments)



      So system go Down , because system has 64 CPU cores when all the 256 processes of apache use 100% cpu usage , system and services go down



      issue still exist but services has no problem
      I think issue related to network attacks (our monitoring tools report many attacks per day), that sometimes make problem such as resource locking or something else



      thank you for all suggestion.






      share|improve this answer



























        0














        The Answer is:



        I have edit apache max_client option to lower value 256 --> 50
        why!?



        for (still) unknown issue all the preforked apache processes take CPU usage about 100% (100% usage of that core running preforked apache process for few moments)



        So system go Down , because system has 64 CPU cores when all the 256 processes of apache use 100% cpu usage , system and services go down



        issue still exist but services has no problem
        I think issue related to network attacks (our monitoring tools report many attacks per day), that sometimes make problem such as resource locking or something else



        thank you for all suggestion.






        share|improve this answer

























          0












          0








          0







          The Answer is:



          I have edit apache max_client option to lower value 256 --> 50
          why!?



          for (still) unknown issue all the preforked apache processes take CPU usage about 100% (100% usage of that core running preforked apache process for few moments)



          So system go Down , because system has 64 CPU cores when all the 256 processes of apache use 100% cpu usage , system and services go down



          issue still exist but services has no problem
          I think issue related to network attacks (our monitoring tools report many attacks per day), that sometimes make problem such as resource locking or something else



          thank you for all suggestion.






          share|improve this answer













          The Answer is:



          I have edit apache max_client option to lower value 256 --> 50
          why!?



          for (still) unknown issue all the preforked apache processes take CPU usage about 100% (100% usage of that core running preforked apache process for few moments)



          So system go Down , because system has 64 CPU cores when all the 256 processes of apache use 100% cpu usage , system and services go down



          issue still exist but services has no problem
          I think issue related to network attacks (our monitoring tools report many attacks per day), that sometimes make problem such as resource locking or something else



          thank you for all suggestion.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 20 '14 at 7:58









          Sassan torabkheslatSassan torabkheslat

          5810




          5810























              0














              Now



              After about 5 years



              The problem has been detected and solved in few days.



              It was so complicated for a Jr. System administrator like me ;)



              There was a problem in GFS2 cluster file-system that my teammate prepared on iSCSI LUN and this issue led to various issues and problems in Dovecot and roundcube (and then apache)



              for your information , when I pay attention to %wa parameter on top command , (it was about 90% ) , I thought (perhaps) there is problem in filesystem level.



              Then I had decide to transfer all data to new cluster filesystem (ocfs2) because GFS was deprecated !



              First of all, All data moved to new cluster file-system (on ocf2) then re-design whole system based on pacemake haproxy on debian wheezy!






              share|improve this answer



























                0














                Now



                After about 5 years



                The problem has been detected and solved in few days.



                It was so complicated for a Jr. System administrator like me ;)



                There was a problem in GFS2 cluster file-system that my teammate prepared on iSCSI LUN and this issue led to various issues and problems in Dovecot and roundcube (and then apache)



                for your information , when I pay attention to %wa parameter on top command , (it was about 90% ) , I thought (perhaps) there is problem in filesystem level.



                Then I had decide to transfer all data to new cluster filesystem (ocfs2) because GFS was deprecated !



                First of all, All data moved to new cluster file-system (on ocf2) then re-design whole system based on pacemake haproxy on debian wheezy!






                share|improve this answer

























                  0












                  0








                  0







                  Now



                  After about 5 years



                  The problem has been detected and solved in few days.



                  It was so complicated for a Jr. System administrator like me ;)



                  There was a problem in GFS2 cluster file-system that my teammate prepared on iSCSI LUN and this issue led to various issues and problems in Dovecot and roundcube (and then apache)



                  for your information , when I pay attention to %wa parameter on top command , (it was about 90% ) , I thought (perhaps) there is problem in filesystem level.



                  Then I had decide to transfer all data to new cluster filesystem (ocfs2) because GFS was deprecated !



                  First of all, All data moved to new cluster file-system (on ocf2) then re-design whole system based on pacemake haproxy on debian wheezy!






                  share|improve this answer













                  Now



                  After about 5 years



                  The problem has been detected and solved in few days.



                  It was so complicated for a Jr. System administrator like me ;)



                  There was a problem in GFS2 cluster file-system that my teammate prepared on iSCSI LUN and this issue led to various issues and problems in Dovecot and roundcube (and then apache)



                  for your information , when I pay attention to %wa parameter on top command , (it was about 90% ) , I thought (perhaps) there is problem in filesystem level.



                  Then I had decide to transfer all data to new cluster filesystem (ocfs2) because GFS was deprecated !



                  First of all, All data moved to new cluster file-system (on ocf2) then re-design whole system based on pacemake haproxy on debian wheezy!







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 5 at 20:01









                  Sassan torabkheslatSassan torabkheslat

                  5810




                  5810



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Server Fault!


                      • 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%2fserverfault.com%2fquestions%2f587782%2froundcube-too-many-sleep-connections-in-mysql%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

                      Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                      Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                      What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company