MariaDB on Windows Server 2012 R2 - out of memory












1














I have two servers, one with Windows Small Business Server 2008 and the other runs Windows Server 2012 R2. The servers have running multi master replication. Both uses MariaDB 10.2.6. On the old 2008 everything works fine, even that the database is 32-bits. But on the 2012 I get frequently "Out of memory", the database uses only ~450MB and the system have 6GB free memory when the error shows up. Here is my complete my.ini, I tried already everything:



[client] 
# password = your_password
port = 3306
socket = "D:/OCS/MariaDB/mysql.sock"
plugin-dir = D:/OCS/MariaDB/lib/plugin

# Here follows entries for some specific programs

# The MySQL server

[mysqld]
tmp_table_size=128M
performance_schema = off
default-storage-engine = myisam
skip-innodb
skip-performance_schema
local-infile
query_cache_type = 1
query_cache_limit = 10M
query_cache_size = 128M
port= 3306
socket = "D:/OCS/MariaDB/mysql.sock"
basedir = "D:/OCS/MariaDB"
tmpdir = "D:/OCS/MariaDB/tmp"
datadir = "D:/OCS/MariaDB/data"
pid_file = "mysql.pid"
# enable-named-pipe
key_buffer = 16M
max_allowed_packet = 1M
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
log_error = "mysql_error.log"
event_scheduler = ON
server_id=1
log-basename=2
log_bin=mysql-bin
max_binlog_size=64M
max_relay_log_size=64M
relay_log_space_limit=64M
auto-increment-increment = 2
auto-increment-offset = 2
slave-skip-errors=1062
# Change here for bind listening
# bind-address="127.0.0.1"
# bind-address = ::1 # for ipv6

# Where do all the plugins live
plugin_dir = "D:/OCS/MariaDB/lib/plugin/"

innodb_data_home_dir = "D:/OCS/MariaDB/data"
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = "D:/OCS/MariaDB/data"
#innodb_log_arch_dir = "D:/OCS/MariaDB/data"
## You can set .._buffer_pool_size up to 50 - 80 %
## of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
## Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50

## UTF 8 Settings
#init-connect='SET NAMES utf8'
#collation_server=utf8_unicode_ci
#character_set_server=utf8
#skip-character-set-client-handshake
#character_sets-dir="D:/OCS/MariaDB/share/charsets"

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
max_execution_time = 5000
local-infile
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout


I am running out of ideas why this happens.. I have tested if the system have some limitations but a small python program allocates over 2GB of RAM with no problems. Both servers are running the same config - on the 2008 the memory usage goes up to 1.5GB with no problems.










share|improve this question














bumped to the homepage by Community 26 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    1














    I have two servers, one with Windows Small Business Server 2008 and the other runs Windows Server 2012 R2. The servers have running multi master replication. Both uses MariaDB 10.2.6. On the old 2008 everything works fine, even that the database is 32-bits. But on the 2012 I get frequently "Out of memory", the database uses only ~450MB and the system have 6GB free memory when the error shows up. Here is my complete my.ini, I tried already everything:



    [client] 
    # password = your_password
    port = 3306
    socket = "D:/OCS/MariaDB/mysql.sock"
    plugin-dir = D:/OCS/MariaDB/lib/plugin

    # Here follows entries for some specific programs

    # The MySQL server

    [mysqld]
    tmp_table_size=128M
    performance_schema = off
    default-storage-engine = myisam
    skip-innodb
    skip-performance_schema
    local-infile
    query_cache_type = 1
    query_cache_limit = 10M
    query_cache_size = 128M
    port= 3306
    socket = "D:/OCS/MariaDB/mysql.sock"
    basedir = "D:/OCS/MariaDB"
    tmpdir = "D:/OCS/MariaDB/tmp"
    datadir = "D:/OCS/MariaDB/data"
    pid_file = "mysql.pid"
    # enable-named-pipe
    key_buffer = 16M
    max_allowed_packet = 1M
    sort_buffer_size = 512K
    net_buffer_length = 8K
    read_buffer_size = 256K
    read_rnd_buffer_size = 512K
    myisam_sort_buffer_size = 8M
    log_error = "mysql_error.log"
    event_scheduler = ON
    server_id=1
    log-basename=2
    log_bin=mysql-bin
    max_binlog_size=64M
    max_relay_log_size=64M
    relay_log_space_limit=64M
    auto-increment-increment = 2
    auto-increment-offset = 2
    slave-skip-errors=1062
    # Change here for bind listening
    # bind-address="127.0.0.1"
    # bind-address = ::1 # for ipv6

    # Where do all the plugins live
    plugin_dir = "D:/OCS/MariaDB/lib/plugin/"

    innodb_data_home_dir = "D:/OCS/MariaDB/data"
    innodb_data_file_path = ibdata1:10M:autoextend
    innodb_log_group_home_dir = "D:/OCS/MariaDB/data"
    #innodb_log_arch_dir = "D:/OCS/MariaDB/data"
    ## You can set .._buffer_pool_size up to 50 - 80 %
    ## of RAM but beware of setting memory usage too high
    innodb_buffer_pool_size = 16M
    #innodb_additional_mem_pool_size = 2M
    ## Set .._log_file_size to 25 % of buffer pool size
    innodb_log_file_size = 5M
    innodb_log_buffer_size = 8M
    innodb_flush_log_at_trx_commit = 1
    innodb_lock_wait_timeout = 50

    ## UTF 8 Settings
    #init-connect='SET NAMES utf8'
    #collation_server=utf8_unicode_ci
    #character_set_server=utf8
    #skip-character-set-client-handshake
    #character_sets-dir="D:/OCS/MariaDB/share/charsets"

    [mysqldump]
    quick
    max_allowed_packet = 16M

    [mysql]
    max_execution_time = 5000
    local-infile
    no-auto-rehash
    # Remove the next comment character if you are not familiar with SQL
    #safe-updates

    [isamchk]
    key_buffer = 20M
    sort_buffer_size = 20M
    read_buffer = 2M
    write_buffer = 2M

    [myisamchk]
    key_buffer = 20M
    sort_buffer_size = 20M
    read_buffer = 2M
    write_buffer = 2M

    [mysqlhotcopy]
    interactive-timeout


    I am running out of ideas why this happens.. I have tested if the system have some limitations but a small python program allocates over 2GB of RAM with no problems. Both servers are running the same config - on the 2008 the memory usage goes up to 1.5GB with no problems.










    share|improve this question














    bumped to the homepage by Community 26 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1


      1





      I have two servers, one with Windows Small Business Server 2008 and the other runs Windows Server 2012 R2. The servers have running multi master replication. Both uses MariaDB 10.2.6. On the old 2008 everything works fine, even that the database is 32-bits. But on the 2012 I get frequently "Out of memory", the database uses only ~450MB and the system have 6GB free memory when the error shows up. Here is my complete my.ini, I tried already everything:



      [client] 
      # password = your_password
      port = 3306
      socket = "D:/OCS/MariaDB/mysql.sock"
      plugin-dir = D:/OCS/MariaDB/lib/plugin

      # Here follows entries for some specific programs

      # The MySQL server

      [mysqld]
      tmp_table_size=128M
      performance_schema = off
      default-storage-engine = myisam
      skip-innodb
      skip-performance_schema
      local-infile
      query_cache_type = 1
      query_cache_limit = 10M
      query_cache_size = 128M
      port= 3306
      socket = "D:/OCS/MariaDB/mysql.sock"
      basedir = "D:/OCS/MariaDB"
      tmpdir = "D:/OCS/MariaDB/tmp"
      datadir = "D:/OCS/MariaDB/data"
      pid_file = "mysql.pid"
      # enable-named-pipe
      key_buffer = 16M
      max_allowed_packet = 1M
      sort_buffer_size = 512K
      net_buffer_length = 8K
      read_buffer_size = 256K
      read_rnd_buffer_size = 512K
      myisam_sort_buffer_size = 8M
      log_error = "mysql_error.log"
      event_scheduler = ON
      server_id=1
      log-basename=2
      log_bin=mysql-bin
      max_binlog_size=64M
      max_relay_log_size=64M
      relay_log_space_limit=64M
      auto-increment-increment = 2
      auto-increment-offset = 2
      slave-skip-errors=1062
      # Change here for bind listening
      # bind-address="127.0.0.1"
      # bind-address = ::1 # for ipv6

      # Where do all the plugins live
      plugin_dir = "D:/OCS/MariaDB/lib/plugin/"

      innodb_data_home_dir = "D:/OCS/MariaDB/data"
      innodb_data_file_path = ibdata1:10M:autoextend
      innodb_log_group_home_dir = "D:/OCS/MariaDB/data"
      #innodb_log_arch_dir = "D:/OCS/MariaDB/data"
      ## You can set .._buffer_pool_size up to 50 - 80 %
      ## of RAM but beware of setting memory usage too high
      innodb_buffer_pool_size = 16M
      #innodb_additional_mem_pool_size = 2M
      ## Set .._log_file_size to 25 % of buffer pool size
      innodb_log_file_size = 5M
      innodb_log_buffer_size = 8M
      innodb_flush_log_at_trx_commit = 1
      innodb_lock_wait_timeout = 50

      ## UTF 8 Settings
      #init-connect='SET NAMES utf8'
      #collation_server=utf8_unicode_ci
      #character_set_server=utf8
      #skip-character-set-client-handshake
      #character_sets-dir="D:/OCS/MariaDB/share/charsets"

      [mysqldump]
      quick
      max_allowed_packet = 16M

      [mysql]
      max_execution_time = 5000
      local-infile
      no-auto-rehash
      # Remove the next comment character if you are not familiar with SQL
      #safe-updates

      [isamchk]
      key_buffer = 20M
      sort_buffer_size = 20M
      read_buffer = 2M
      write_buffer = 2M

      [myisamchk]
      key_buffer = 20M
      sort_buffer_size = 20M
      read_buffer = 2M
      write_buffer = 2M

      [mysqlhotcopy]
      interactive-timeout


      I am running out of ideas why this happens.. I have tested if the system have some limitations but a small python program allocates over 2GB of RAM with no problems. Both servers are running the same config - on the 2008 the memory usage goes up to 1.5GB with no problems.










      share|improve this question













      I have two servers, one with Windows Small Business Server 2008 and the other runs Windows Server 2012 R2. The servers have running multi master replication. Both uses MariaDB 10.2.6. On the old 2008 everything works fine, even that the database is 32-bits. But on the 2012 I get frequently "Out of memory", the database uses only ~450MB and the system have 6GB free memory when the error shows up. Here is my complete my.ini, I tried already everything:



      [client] 
      # password = your_password
      port = 3306
      socket = "D:/OCS/MariaDB/mysql.sock"
      plugin-dir = D:/OCS/MariaDB/lib/plugin

      # Here follows entries for some specific programs

      # The MySQL server

      [mysqld]
      tmp_table_size=128M
      performance_schema = off
      default-storage-engine = myisam
      skip-innodb
      skip-performance_schema
      local-infile
      query_cache_type = 1
      query_cache_limit = 10M
      query_cache_size = 128M
      port= 3306
      socket = "D:/OCS/MariaDB/mysql.sock"
      basedir = "D:/OCS/MariaDB"
      tmpdir = "D:/OCS/MariaDB/tmp"
      datadir = "D:/OCS/MariaDB/data"
      pid_file = "mysql.pid"
      # enable-named-pipe
      key_buffer = 16M
      max_allowed_packet = 1M
      sort_buffer_size = 512K
      net_buffer_length = 8K
      read_buffer_size = 256K
      read_rnd_buffer_size = 512K
      myisam_sort_buffer_size = 8M
      log_error = "mysql_error.log"
      event_scheduler = ON
      server_id=1
      log-basename=2
      log_bin=mysql-bin
      max_binlog_size=64M
      max_relay_log_size=64M
      relay_log_space_limit=64M
      auto-increment-increment = 2
      auto-increment-offset = 2
      slave-skip-errors=1062
      # Change here for bind listening
      # bind-address="127.0.0.1"
      # bind-address = ::1 # for ipv6

      # Where do all the plugins live
      plugin_dir = "D:/OCS/MariaDB/lib/plugin/"

      innodb_data_home_dir = "D:/OCS/MariaDB/data"
      innodb_data_file_path = ibdata1:10M:autoextend
      innodb_log_group_home_dir = "D:/OCS/MariaDB/data"
      #innodb_log_arch_dir = "D:/OCS/MariaDB/data"
      ## You can set .._buffer_pool_size up to 50 - 80 %
      ## of RAM but beware of setting memory usage too high
      innodb_buffer_pool_size = 16M
      #innodb_additional_mem_pool_size = 2M
      ## Set .._log_file_size to 25 % of buffer pool size
      innodb_log_file_size = 5M
      innodb_log_buffer_size = 8M
      innodb_flush_log_at_trx_commit = 1
      innodb_lock_wait_timeout = 50

      ## UTF 8 Settings
      #init-connect='SET NAMES utf8'
      #collation_server=utf8_unicode_ci
      #character_set_server=utf8
      #skip-character-set-client-handshake
      #character_sets-dir="D:/OCS/MariaDB/share/charsets"

      [mysqldump]
      quick
      max_allowed_packet = 16M

      [mysql]
      max_execution_time = 5000
      local-infile
      no-auto-rehash
      # Remove the next comment character if you are not familiar with SQL
      #safe-updates

      [isamchk]
      key_buffer = 20M
      sort_buffer_size = 20M
      read_buffer = 2M
      write_buffer = 2M

      [myisamchk]
      key_buffer = 20M
      sort_buffer_size = 20M
      read_buffer = 2M
      write_buffer = 2M

      [mysqlhotcopy]
      interactive-timeout


      I am running out of ideas why this happens.. I have tested if the system have some limitations but a small python program allocates over 2GB of RAM with no problems. Both servers are running the same config - on the 2008 the memory usage goes up to 1.5GB with no problems.







      mariadb windows-server-2012-r2






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 4 '17 at 6:35









      dragonndragonn

      61




      61





      bumped to the homepage by Community 26 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 26 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          The 32bit is the culprit. Due to a strange rounding up when calculating buffers, the server would allocate almost twice as much memory (3GB instead of 1.5GB), leaving only 1GB address space for anything else .It is fixed in 10.2.7 and later, the bug report is here https://jira.mariadb.org/browse/MDEV-12097






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "182"
            };
            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%2fdba.stackexchange.com%2fquestions%2f177925%2fmariadb-on-windows-server-2012-r2-out-of-memory%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            The 32bit is the culprit. Due to a strange rounding up when calculating buffers, the server would allocate almost twice as much memory (3GB instead of 1.5GB), leaving only 1GB address space for anything else .It is fixed in 10.2.7 and later, the bug report is here https://jira.mariadb.org/browse/MDEV-12097






            share|improve this answer


























              0














              The 32bit is the culprit. Due to a strange rounding up when calculating buffers, the server would allocate almost twice as much memory (3GB instead of 1.5GB), leaving only 1GB address space for anything else .It is fixed in 10.2.7 and later, the bug report is here https://jira.mariadb.org/browse/MDEV-12097






              share|improve this answer
























                0












                0








                0






                The 32bit is the culprit. Due to a strange rounding up when calculating buffers, the server would allocate almost twice as much memory (3GB instead of 1.5GB), leaving only 1GB address space for anything else .It is fixed in 10.2.7 and later, the bug report is here https://jira.mariadb.org/browse/MDEV-12097






                share|improve this answer












                The 32bit is the culprit. Due to a strange rounding up when calculating buffers, the server would allocate almost twice as much memory (3GB instead of 1.5GB), leaving only 1GB address space for anything else .It is fixed in 10.2.7 and later, the bug report is here https://jira.mariadb.org/browse/MDEV-12097







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 30 '17 at 10:45









                Vladislav VaintroubVladislav Vaintroub

                28624




                28624






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Database Administrators 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%2fdba.stackexchange.com%2fquestions%2f177925%2fmariadb-on-windows-server-2012-r2-out-of-memory%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

                    Ronny Ackermann

                    Köttigit

                    MySQL 8.0.15 starts normally but any connection hangs