ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    MySQL is System Intensive...

    IT Discussion
    mysql linux apache wordpress
    5
    20
    3.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • thanksajdotcomT
      thanksajdotcom
      last edited by

      Not sure what's going on but my MySQL seems to be using quite a bit of memory. Would this be due to the WP Super Cache plugin on Wordpress?

      	root@thanksaj-server-cac:~# free -m
      				 total       used       free     shared    buffers     cached
      	Mem:          3953       3704        248         64         82        694
      	-/+ buffers/cache:       2927       1025
      	Swap:          953          0        953
      

      upload-31aff6fa-fb5b-4229-a7c6-40eac79234c9

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by

        Why are you using mysql it has much more overhead in my experience than mariadb

        thanksajdotcomT 1 Reply Last reply Reply Quote 0
        • thanksajdotcomT
          thanksajdotcom @A Former User
          last edited by

          @thecreativeone91 said:

          Why are you using mysql it has much more overhead in my experience than mariadb

          Is there a way to convert from MySQL to MariaDB and how would I use that with Wordpress?

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • thanksajdotcomT
            thanksajdotcom
            last edited by

            Ok, installing MariaDB now.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @thanksajdotcom
              last edited by

              @thanksajdotcom said:

              Is there a way to convert from MySQL to MariaDB and how would I use that with Wordpress?

              MariaDB is a fork. It's a drop in replacement. Most Linux install MariaDB and call it MySQL these days.

              thanksajdotcomT 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller
                last edited by

                Maybe you have too many MySQL worker threads.

                thanksajdotcomT 1 Reply Last reply Reply Quote 0
                • thanksajdotcomT
                  thanksajdotcom @scottalanmiller
                  last edited by

                  @scottalanmiller said:

                  Maybe you have too many MySQL worker threads.

                  Umm, explain.

                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • thanksajdotcomT
                    thanksajdotcom @scottalanmiller
                    last edited by

                    @scottalanmiller said:

                    @thanksajdotcom said:

                    Is there a way to convert from MySQL to MariaDB and how would I use that with Wordpress?

                    MariaDB is a fork. It's a drop in replacement. Most Linux install MariaDB and call it MySQL these days.

                    Migration is complete.

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @thanksajdotcom
                      last edited by

                      @thanksajdotcom said:

                      @scottalanmiller said:

                      Maybe you have too many MySQL worker threads.

                      Umm, explain.

                      Look at how many threads of MySQL you have in your htop. Although htop is misleading, use top instead most of the time. Those are LWPs so not too big of a deal.

                      1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @thanksajdotcom
                        last edited by

                        @thanksajdotcom said:

                        @scottalanmiller said:

                        @thanksajdotcom said:

                        Is there a way to convert from MySQL to MariaDB and how would I use that with Wordpress?

                        MariaDB is a fork. It's a drop in replacement. Most Linux install MariaDB and call it MySQL these days.

                        Migration is complete.

                        And.... are you seeing a difference?

                        thanksajdotcomT 1 Reply Last reply Reply Quote 0
                        • thanksajdotcomT
                          thanksajdotcom @scottalanmiller
                          last edited by

                          @scottalanmiller said:

                          @thanksajdotcom said:

                          @scottalanmiller said:

                          @thanksajdotcom said:

                          Is there a way to convert from MySQL to MariaDB and how would I use that with Wordpress?

                          MariaDB is a fork. It's a drop in replacement. Most Linux install MariaDB and call it MySQL these days.

                          Migration is complete.

                          And.... are you seeing a difference?

                          Too soon to tell. I'll let it run for a bit and we'll see.

                          1 Reply Last reply Reply Quote 0
                          • tonyshowoffT
                            tonyshowoff
                            last edited by tonyshowoff

                            What are you my.cnf settings? If you're giving too much space for indices in memory, caching, etc that could definitely be the problem. Some of the example my.cnf files are for MySQL-only servers, and you may have used one of those so MySQL is working as if it's the only thing, in other words.

                            Oh yeah and you have a boat load of threads, so again, we're back to my.cnf

                            Edit: @scottalanmiller mentioned that one already, he always beats me to stuff.

                            1 Reply Last reply Reply Quote 2
                            • ?
                              A Former User
                              last edited by

                              Yep. sql is really meant to indefinitely scale. When you see sql dedicated servers it's not unusual to see them always siting at 90% usage of resources.

                              scottalanmillerS 1 Reply Last reply Reply Quote 3
                              • scottalanmillerS
                                scottalanmiller @A Former User
                                last edited by

                                @thecreativeone91 said:

                                Yep. sql is really meant to indefinitely scale. When you see sql dedicated servers it's not unusual to see them always siting at 90% usage of resources.

                                Exactly, if you have free space, they are designed to fill it. That's a good thing to be applauded, not a problem to be solved.

                                1 Reply Last reply Reply Quote 0
                                • ?
                                  A Former User
                                  last edited by

                                  I always use MariaDB

                                  tonyshowoffT ? 2 Replies Last reply Reply Quote 0
                                  • tonyshowoffT
                                    tonyshowoff @A Former User
                                    last edited by

                                    @Aaron-Studer said:

                                    I always use MariaDB

                                    I never do. I have to say though that MariaDB has made some great improvements in the areas of replication and some indices stuff.

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User @A Former User
                                      last edited by

                                      @Aaron-Studer said:

                                      I always use MariaDB

                                      I do sometimes but not always. Many applications will only use Oracle or SQL Server schemas.

                                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                                      • scottalanmillerS
                                        scottalanmiller
                                        last edited by

                                        I only use MySQL or MariaDB for things like WordPress. In general, they are not my go to choice for anything.

                                        1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller @A Former User
                                          last edited by

                                          @thecreativeone91 said:

                                          @Aaron-Studer said:

                                          I always use MariaDB

                                          I do sometimes but not always. Many applications will only use Oracle or SQL Server schemas.

                                          Often with those choices you get PostgreSQL too, which would be my preference nine times out of ten.

                                          tonyshowoffT 1 Reply Last reply Reply Quote 0
                                          • tonyshowoffT
                                            tonyshowoff @scottalanmiller
                                            last edited by

                                            @scottalanmiller said:

                                            Often with those choices you get PostgreSQL too, which would be my preference nine times out of ten.

                                            You can go straight to hell. That's right, an old rivalry that I can no longer justify.

                                            1 Reply Last reply Reply Quote 2
                                            • 1 / 1
                                            • First post
                                              Last post