How many MySQL connections can server handle?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • juicylinks
    So Fucking Banned
    • Apr 2001
    • 122992

    #1

    How many MySQL connections can server handle?

    How many MySQL connections can server handle before gettting fucked?

    Avg server 2 ghz , 1 gig of ram running Freebsd
  • - Jesus Christ -
    Confirmed User
    • Mar 2003
    • 7197

    #2
    7

    Amen

    Comment

    • hyper
      Confirmed User
      • Mar 2002
      • 5294

      #3
      hmm dont you set that up?

      Comment

      • juicylinks
        So Fucking Banned
        • Apr 2001
        • 122992

        #4
        Originally posted by hyper
        hmm dont you set that up?
        yeah but I was curious as to whether there is a threshold

        Comment

        • Turboface
          Back in Black
          • Mar 2002
          • 9976

          #5
          Ask your tech support. They'll increase the amount of connections that they know will be ok.

          Search Engine Optimization Services for Adult Sites

          Comment

          • - Jesus Christ -
            Confirmed User
            • Mar 2003
            • 7197

            #6
            Originally posted by juicylinks


            yeah but I was curious as to whether there is a threshold
            nope.... But it could start to slow the sytem down and If your ram is full, data will start going in and out of your swap. (Thats bad)

            Amen

            Comment

            • hyper
              Confirmed User
              • Mar 2002
              • 5294

              #7
              found this

              From the manual - "If you need more connections than the default (100), then you
              should restart mysqld with a bigger value for the max_connections variable."

              "The maximum number of connects MySQL is depending on how good the thread library is
              on a given platform. Linux or Solaris should be able to support 500-1000 simultaneous
              connections, depending on how much RAM you have and what your clients are doing."

              Comment

              • fletcher
                Confirmed User
                • Jan 2003
                • 698

                #8
                You should be able to easily do 500-600 on that setup.
                 
                [email protected]
                ICQ: 6411138

                Comment

                • fsfaz
                  Confirmed User
                  • Apr 2003
                  • 747

                  #9
                  Hard Question.

                  MySQL sucks up RAM like a baby on a mothers tit.

                  Comment

                  • nathan_f
                    Confirmed User
                    • Sep 2003
                    • 3983

                    #10
                    Originally posted by fletcher
                    You should be able to easily do 500-600 on that setup.
                    Agreed, the number would be somewhere around there.

                    Comment

                    • JSA Matt
                      So Fucking Banned
                      • Aug 2003
                      • 5464

                      #11
                      Originally posted by fsfaz
                      Hard Question.

                      MySQL sucks up RAM like a baby on a mothers tit.
                      MySQL is one of our lowest running processes, you need to optimize

                      Comment

                      • sweet7
                        Confirmed User
                        • May 2003
                        • 1792

                        #12
                        Originally posted by juicylinks


                        yeah but I was curious as to whether there is a threshold
                        there usually is a threshold set by the admin and when that threshold is met you won't be able to create any more connections to your DB.
                        ICQ: 282814268

                        Comment

                        • Eve
                          Confirmed User
                          • Dec 2002
                          • 805

                          #13
                          ALOT. But there shouldn't be that many unless you are using persistent connections, which are gay.
                          I'm waiting for the Mr Fushion Fleshlight so I can wank my way back to the future!

                          Comment

                          • sandman!
                            Icq: 14420613
                            • Mar 2001
                            • 15427

                            #14
                            43590485739357 connections
                            Need WebHosting ? Email me for some great deals [email protected]

                            Comment

                            • grumpy
                              Too lazy to set a custom title
                              • Jan 2002
                              • 9870

                              #15
                              depends on what you gonna do in the mysql.
                              the 100 means 100 users at the same time.
                              Don't let greediness blur your vision | You gotta let some shit slide
                              icq - 441-456-888

                              Comment

                              • fuzebox
                                making it rain
                                • Oct 2003
                                • 22353

                                #16
                                Like everyone else says, depends what you're doing, and how intensive the queries are.

                                MySQL is going to be happier with more ram, so that's the main consideration in building a DB server. The disk setup will also make a big difference in performance (you didn't mention how that was setup).

                                Comment

                                • Mr.Fiction
                                  Confirmed User
                                  • Feb 2002
                                  • 9484

                                  #17
                                  Optimize & cache.
                                  Don't be lazy, protect free speech: ACLU | Free Speech Coalition | EFF | IMPA

                                  Comment

                                  • arial
                                    Confirmed User
                                    • Jul 2002
                                    • 4012

                                    #18
                                    I've tested mine with over 2 million in one day. I have a dual xeon processed server (4ghz total), 1GB ram, red hat, all the works.

                                    Comment

                                    • dnsmonster
                                      Confirmed User
                                      • Jul 2002
                                      • 634

                                      #19
                                      MySQL comes with benchmark scripts that should tell you exactly that. As someone mentioned, counting connections, unless they are persistent, makes little sense. A real benchmark is how many queries in can do per second.
                                      I couldn't possibly know what I'm talking about, I'm completely, absolutely and definitively out of my fucking mind.

                                      Comment

                                      • myneid
                                        Confirmed User
                                        • Jan 2003
                                        • 736

                                        #20
                                        i think you should be able to set it at 1024 without any problems.
                                        Tanguy 0x7a69 inc. Programmer/President/CEO
                                        http://www.0x7a69.com
                                        A Leader in Programming since 1996
                                        PHP, Ruby on Rails, MySQL, PCI DSS, and any Technical Consulting

                                        Comment

                                        Working...