IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Administration MySQL Discussion :

La mémoire utilisée ne décolle pas


Sujet :

Administration MySQL

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Nouveau candidat au Club
    Homme Profil pro
    Directeur des systèmes d'information
    Inscrit en
    Mai 2018
    Messages
    1
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Directeur des systèmes d'information

    Informations forums :
    Inscription : Mai 2018
    Messages : 1
    Par défaut La mémoire utilisée ne décolle pas
    Bonjour,

    Je viens de mettre en place un nouveau serveur web sur lequel est installé Mysql5.7 / apache 2.4 / php 7.2 qui va accueillir un site intranet de statistique et d'interface divers pour mes progiciels.
    L'ancien serveur virtualisé en 2008R2 également possède exactement les mêmes ressources 4 vcpu et 10G de RAM mais était sur Mysql5.6 / apache 2.4 / php 5.5.
    le problème que j'ai c'est que les performances sont quasi divisées par 4 par rapport à l'ancienne machine et cela semble venir de la base de donnée, par exemple la mémoire ne decolle pas, je lui ai attribué 4Go et elle reste bloquée à 1.2Go même quand je la stress, j'ai essayé 1000 réglages différents mais rien n'y fait, voici ma conf actuelle:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    # Other default tuning values
    # MySQL Server Instance Configuration File
    # ----------------------------------------------------------------------
    # Generated by the MySQL Server Instance Configuration Wizard
    # 
    # 
    # Installation Instructions
    # ----------------------------------------------------------------------
    # 
    # On Linux you can copy this file to /etc/my.cnf to set global options,
    # mysql-data-dir/my.cnf to set server-specific options
    # (@localstatedir@ for this installation) or to
    # ~/.my.cnf to set user-specific options.
    # 
    # On Windows you should keep this file in the installation directory 
    # of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To
    # make sure the server reads the config file use the startup option 
    # "--defaults-file". 
    # 
    # To run run the server from the command line, execute this in a 
    # command line shell, e.g.
    # mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
    # 
    # To install the server as a Windows service manually, execute this in a 
    # command line shell, e.g.
    # mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
    # 
    # And then execute this in a command line shell to start the server, e.g.
    # net start MySQLXY
    # 
    # 
    # Guildlines for editing this file
    # ----------------------------------------------------------------------
    # 
    # In this file, you can use all long options that the program supports.
    # If you want to know the options a program supports, start the program
    # with the "--help" option.
    # 
    # More detailed information about the individual options can also be
    # found in the manual.
    # 
    # For advice on how to change settings please see
    # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
    # 
    # 
    # CLIENT SECTION
    # ----------------------------------------------------------------------
    # 
    # The following options will be read by MySQL client applications.
    # Note that only client applications shipped by MySQL are guaranteed
    # to read this section. If you want your own MySQL client program to
    # honor these values, you need to specify it as an option during the
    # MySQL client library initialization.
    # 
    [client]
     
    # pipe=
    # socket=MYSQL
    port=3306
     
    [mysql]
    no-beep=
     
    # default-character-set=
    default-character-set=Latin1
     
    # SERVER SECTION
    # ----------------------------------------------------------------------
    # 
    # The following options will be read by the MySQL Server. Make sure that
    # you have installed the server correctly (see above) so it reads this 
    # file.=
    # 
    # server_type=1
    [mysqld]
     
    # The next three options are mutually exclusive to SERVER_PORT below.
    # skip-networking=
     
    # enable-named-pipe=
     
    # shared-memory=
     
    # shared-memory-base-name=MYSQL
     
    # The Pipe the MySQL Server will use
    # socket=MYSQL
     
    # The TCP/IP Port the MySQL Server will listen on
    port=3306
     
    # Path to installation directory. All paths are usually resolved relative to this.
    # basedir="C:/Program Files/MySQL/MySQL Server 5.7/"
     
    # Path to the database root
    datadir=E:/serveur_web/MySQL/MySQL Server 5.7/Data
     
    # The default character set that will be used when a new schema or table is
    # created and no character set is defined
    # character-set-server=
    character-set-server = Latin1
    # The default storage engine that will be used when create new tables when
    default-storage-engine=INNODB
     
    # Set the SQL mode to strict
    sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
     
    # General and Slow logging.
    log-output=FILE
    general-log=0
    general_log_file="APACHE.log"
    slow-query-log=1
    slow_query_log_file="APACHE-slow.log"
    long_query_time=10
     
    # Binary Logging.
    # log-bin=
     
    # Error Logging.
    log-error="APACHE.err"
     
    # Server Id.
    server-id=1
     
    # Secure File Priv.
    secure-file-priv="C:/ProgramData/MySQL/MySQL Server 5.7/Uploads"
     
    # The maximum amount of concurrent sessions the MySQL server will
    # allow. One of these connections will be reserved for a user with
    # SUPER privileges to allow the administrator to login even if the
    # connection limit has been reached.
    max_connections=300
     
    query_cache_size=203M
     
    # The number of open tables for all threads. Increasing this value
    # increases the number of file descriptors that mysqld requires.
    # Therefore you have to make sure to set the amount of open files
    # allowed to at least 4096 in the variable "open-files-limit" in
    # section [mysqld_safe]
    table_open_cache=8000
     
    # Maximum size for internal (in-memory) temporary tables. If a table
    # grows larger than this value, it is automatically converted to disk
    # based table This limitation is for a single table. There can be many
    # of them.
    # tmp_table_size=
     
    # How many threads we should keep in a cache for reuse. When a client
    # disconnects, the client's threads are put in the cache if there aren't
    # more than thread_cache_size threads from before.  This greatly reduces
    # the amount of thread creations needed if you have a lot of new
    # connections. (Normally this doesn't give a notable performance
    # improvement if you have a good thread implementation.)
    thread_cache_size=10
     
    # *** MyISAM Specific options
    # The maximum size of the temporary file MySQL is allowed to use while
    # recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.
    # If the file-size would be bigger than this, the index will be created
    # through the key cache (which is slower).
    myisam_max_sort_file_size=100G
     
    # If the temporary file used for fast index creation would be bigger
    # than using the key cache by the amount specified here, then prefer the
    # key cache method.  This is mainly used to force long character keys in
    # large tables to use the slower key cache method to create the index.
    # myisam_sort_buffer_size=
    myisam_sort_buffer_size=410M
    # Size of the Key Buffer, used to cache index blocks for MyISAM tables.
    # Do not set it larger than 30% of your available memory, as some memory
    # is also required by the OS to cache rows. Even if you're not using
    # MyISAM tables, you should still set it to 8-64M as it will also be
    # used for internal temporary disk tables.
    # key_buffer_size=
    key_buffer_size=319M
    # Size of the buffer used for doing full table scans of MyISAM tables.
    # Allocated per thread, if a full scan is needed.
    # read_buffer_size=
    read_buffer_size=64K
    read_rnd_buffer_size=256K
    # read_rnd_buffer_size=
     
    # *** INNODB Specific options ***
    # innodb_data_home_dir=
     
    # Use this option if you have a MySQL server with InnoDB support enabled
    # but you do not plan to use it. This will save memory and disk space
    # and speed up some things.
    # skip-innodb=
     
    # If set to 1, InnoDB will flush (fsync) the transaction logs to the
    # disk at each commit, which offers full ACID behavior. If you are
    # willing to compromise this safety, and you are running small
    # transactions, you may set this to 0 or 2 to reduce disk I/O to the
    # logs. Value 0 means that the log is only written to the log file and
    # the log file flushed to disk approximately once per second. Value 2
    # means the log is written to the log file at each commit, but the log
    # file is only flushed to disk approximately once per second.
    innodb_flush_log_at_trx_commit=1
     
    # The size of the buffer InnoDB uses for buffering log data. As soon as
    # it is full, InnoDB will have to flush it to disk. As it is flushed
    # once per second anyway, it does not make sense to have it very large
    # (even with long transactions).
    # innodb_log_buffer_size=
     
    # InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and
    # row data. The bigger you set this the less disk I/O is needed to
    # access data in tables. On a dedicated database server you may set this
    # parameter up to 80% of the machine physical memory size. Do not set it
    # too large, though, because competition of the physical memory may
    # cause paging in the operating system.  Note that on 32bit systems you
    # might be limited to 2-3.5G of user level memory per process, so do not
    # set it too high.
    innodb_buffer_pool_size=4000M
     
    # Size of each log file in a log group. You should set the combined size
    # of log files to about 25%-100% of your buffer pool size to avoid
    # unneeded buffer pool flush activity on log file overwrite. However,
    # note that a larger logfile size will increase the time needed for the
    # recovery process.
    innodb_log_file_size=156M
     
    # Number of threads allowed inside the InnoDB kernel. The optimal value
    # depends highly on the application, hardware as well as the OS
    # scheduler properties. A too high value may lead to thread thrashing.
    innodb_thread_concurrency=18
     
    # The increment size (in MB) for extending the size of an auto-extend InnoDB system tablespace file when it becomes full.
    innodb_autoextend_increment=64
     
    # The number of regions that the InnoDB buffer pool is divided into.
    # For systems with buffer pools in the multi-gigabyte range, dividing the buffer pool into separate instances can improve concurrency,
    # by reducing contention as different threads read and write to cached pages.
    # innodb_buffer_pool_instances=
     
    # Determines the number of threads that can enter InnoDB concurrently.
    innodb_concurrency_tickets=5000
     
    # Specifies how long in milliseconds (ms) a block inserted into the old sublist must stay there after its first access before
    # it can be moved to the new sublist.
    innodb_old_blocks_time=1000
     
    # It specifies the maximum number of .ibd files that MySQL can keep open at one time. The minimum value is 10.
    # innodb_open_files=
     
    # When this variable is enabled, InnoDB updates statistics during metadata statements.
    innodb_stats_on_metadata=0
     
    # When innodb_file_per_table is enabled (the default in 5.6.6 and higher), InnoDB stores the data and indexes for each newly created table
    # in a separate .ibd file, rather than in the system tablespace.
    innodb_file_per_table=1
     
    # Use the following list of values: 0 for crc32, 1 for strict_crc32, 2 for innodb, 3 for strict_innodb, 4 for none, 5 for strict_none.
    innodb_checksum_algorithm=0
     
    # The number of outstanding connection requests MySQL can have.
    # This option is useful when the main MySQL thread gets many connection requests in a very short time.
    # It then takes some time (although very little) for the main thread to check the connection and start a new thread.
    # The back_log value indicates how many requests can be stacked during this short time before MySQL momentarily
    # stops answering new requests.
    # You need to increase this only if you expect a large number of connections in a short period of time.
    back_log=80
     
    # If this is set to a nonzero value, all tables are closed every flush_time seconds to free up resources and
    # synchronize unflushed data to disk.
    # This option is best used only on systems with minimal resources.
    flush_time=0
     
    # The minimum size of the buffer that is used for plain index scans, range index scans, and joins that do not use
    # indexes and thus perform full table scans.
    join_buffer_size=256K
     
    # The maximum size of one packet or any generated or intermediate string, or any parameter sent by the
    # mysql_stmt_send_long_data() C API function.
    max_allowed_packet=4M
     
    # If more than this many successive connection requests from a host are interrupted without a successful connection,
    # the server blocks that host from performing further connections.
    max_connect_errors=100
     
    # Changes the number of file descriptors available to mysqld.
    # You should try increasing the value of this option if mysqld gives you the error "Too many open files".
    open_files_limit=4161
     
    query_cache_type=1
     
    # If you see many sort_merge_passes per second in SHOW GLOBAL STATUS output, you can consider increasing the
    # sort_buffer_size value to speed up ORDER BY or GROUP BY operations that cannot be improved with query optimization
    # or improved indexing.
    sort_buffer_size=256K
     
    # The number of table definitions (from .frm files) that can be stored in the definition cache.
    # If you use a large number of tables, you can create a large table definition cache to speed up opening of tables.
    # The table definition cache takes less space and does not use file descriptors, unlike the normal table cache.
    # The minimum and default values are both 400.
    table_definition_cache=1400
     
    # Specify the maximum size of a row-based binary log event, in bytes.
    # Rows are grouped into events smaller than this size if possible. The value should be a multiple of 256.
    binlog_row_event_max_size=8K
     
    # If the value of this variable is greater than 0, a replication slave synchronizes its master.info file to disk.
    # (using fdatasync()) after every sync_master_info events.
    sync_master_info=10000
     
    # If the value of this variable is greater than 0, the MySQL server synchronizes its relay log to disk.
    # (using fdatasync()) after every sync_relay_log writes to the relay log.
    sync_relay_log=10000
     
    # If the value of this variable is greater than 0, a replication slave synchronizes its relay-log.info file to disk.
    # (using fdatasync()) after every sync_relay_log_info transactions.
    sync_relay_log_info=10000
     
    # Load mysql plugins at start."plugin_x ; plugin_y".
    # plugin_load=
     
    # MySQL server's plugin configuration.
    # loose_mysqlx_port=33060
     
    ssl=
    ssl-ca = "E:/serveur_web/MySQL/ca.pem"
    ssl-cert = "E:/serveur_web/MySQL/server.pem"
    ssl-key = "E:/serveur_web/MySQL/key.pem"
    Une idée ? Car la migration approche et je ne trouve pas ..

    Cordialement,

    AKdemy

  2. #2
    Membre confirmé
    Inscrit en
    Mars 2008
    Messages
    112
    Détails du profil
    Informations personnelles :
    Âge : 38

    Informations forums :
    Inscription : Mars 2008
    Messages : 112
    Par défaut
    Bonjour,

    Avez vous essayé d'augmenter la taille des fichiers logs également : (il est préconisé une taille de 25% du buffer)

    stoppez le service mysql
    supprimez les fichiers log existant

    configurez le my.ini avec ces valeurs
    innodb_buffer_pool_size=4G
    innodb_log_file_size=1G

    A+

  3. #3
    Membre prolifique Avatar de Artemus24
    Homme Profil pro
    Agent secret au service du président Ulysses S. Grant !
    Inscrit en
    Février 2011
    Messages
    6 917
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Agent secret au service du président Ulysses S. Grant !
    Secteur : Finance

    Informations forums :
    Inscription : Février 2011
    Messages : 6 917
    Par défaut
    Salut AKdemy.

    Citation Envoyé par AKdemy
    par exemple la mémoire ne décolle pas,
    La mémoire n'est pas une fusée et donc ne décolle pas.

    Je constate que votre fichier my.ini est standard.
    Vous avez deux solutions, soit reprendre celui de votre ancien serveur MySql, soit vous adaptez le mien ci-après :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    # *********************** #
    #                         #
    #     Sphere "Fraise"     #
    #                         #
    # *********************** #
     
    # ==================== #
    #     MySql Client     #
    # ==================== #
     
    [client]
    port   = 3306
    socket = mysql
     
    # ----------------------- #
    #     access features     #
    # ----------------------- #
     
    user     = root
    password = root
    host     = 127.0.0.1
     
    # --------------- #
    #     Charset     #
    # --------------- #
     
    # default-character-set = latin1
     
     
    # ==================== #
    #     MySql Server     #
    # ==================== #
     
    [mysqld]
    port   = 3306
    socket = mysql
     
    # -------------- #
    #     Master     #
    # -------------- #
     
    server-id = 1
    skip-slave-start
     
    # --------------- #
    #     Charset     #
    # --------------- #
     
    character-set-server     = latin1
    collation-server         = latin1_general_ci
    character-set-filesystem = latin1
     
    init-connect             = 'SET collation_connection = latin1_general_ci; SET NAMES latin1 COLLATE latin1_general_ci'
     
    # ------------------- #
    #     Date & Time     #
    # ------------------- #
     
    default-time-zone = SYSTEM
     
    explicit-defaults-for-timestamp = on
     
    # ------------------- #
    #     Directories     #
    # ------------------- #
     
    basedir = f:/Wamp/bin/mysql/mysql5.7.20/
    datadir = f:/Wamp/bin/mysql/mysql5.7.20/data
    tmpdir  = f:/Wamp/tmp
     
    # -------------------------#
    #     Full Text Search     #
    # -------------------------#
     
    ft-max-word-len  = 10
    ft-min-word-len  = 1
    ft-stopword-file = ""
     
    # ---------------#
    #     InnoDB     #
    # ---------------#
     
    default-storage-engine              = InnoDB
    default-tmp-storage-engine          = InnoDB
     
    innodb-adaptive-hash-index          = on
     
    innodb-buffer-pool-dump-now         = off
    innodb-buffer-pool-dump-at-shutdown = off
    innodb-buffer-pool-instances        = 2
    innodb-buffer-pool-load-at-startup  = OFF
    innodb-buffer-pool-size             = 128M
     
    innodb-data-file-path               = ibdata1:12M:autoextend
    innodb-data-home-dir                = f:/Wamp/bin/mysql/mysql5.7.20/data/ibdata/
    innodb-default-row-format           = compact
    innodb-doublewrite                  = 1
    #skip-innodb_doublewrite
     
    innodb-file-format-check            = on
    innodb-file-per-table               = 1
     
    innodb-flush-log-at-trx-commit      = 1
    innodb-flush-method                 = normal
    #innodb-force-recovery               = 1
     
    innodb-ft-enable-stopword           = off
    innodb-ft-max-token-size            = 10
    innodb-ft-min-token-size            = 0
     
    innodb-io-capacity                  = 2000
    innodb-lock-wait-timeout            = 600
     
    innodb-log-buffer-size              = 16M
    innodb-log-file-size                = 20M
    innodb-log-files-in-group           = 2
    innodb-log-group-home-dir           = f:/Wamp/bin/mysql/mysql5.7.20/data/ibdata/
     
    innodb-max-dirty-pages-pct          = 90
    innodb-optimize-fulltext-only       = 1
    innodb-page-size                    = 16K
    innodb-purge-threads                = 10
    innodb-read-io-threads              = 4
    innodb-stats-on-metadata            = 0
    # innodb-strict-mode                  = OFF
    innodb-support-xa                   = 1
    innodb-thread-concurrency           = 16
    innodb-undo-log-truncate            = 1
    innodb-write-io-threads             = 4
     
    # ---------------- #
    #     Language     #
    # ---------------- #
     
    lc-messages   = fr_FR
    lc-time-names = fr_FR
     
    # -------------------#
    #     Binary Log     #
    # -------------------#
     
    #log-bin              = f:/Wamp/logs/mysql_binary_log
    #binlog-cache-size    = 1M
    #binlog-format        = mixed
     
    # --------------------#
    #     General Log     #
    # --------------------#
     
    #general-log         = 1
    #general-log-file    = f:/Wamp/logs/mysql_general.log
    #log_output          = 'FILE';
     
    # ------------#
    #     Log     #
    # ------------#
     
    log-error                              = f:/Wamp/logs/mysql_error.log
    log-error-verbosity                    = 3
     
    log-queries-not-using-indexes          = 1
    log-slow-admin-statements              = 1
    log-throttle-queries-not-using-indexes = 60
     
    # ------------#
    #     Max     #
    # ------------#
     
    max-allowed-packet     = 16M
    max-connections        = 20
    max-connect-errors     = 10
    max-error-count        = 64
    max-heap-table-size    = 1G
    max-user-connections   = 0
    max-sp-recursion-depth = 255
     
    # --------------------#
    #     Buffer-Size     #
    # --------------------#
     
    join-buffer-size      = 512M
    read-buffer-size      = 512M
    read-rnd-buffer-size  = 512M
    sort-buffer-size      = 512M
     
    # ---------------#
    #     MyIsam     #
    # ---------------#
     
    bulk-insert-buffer-size   = 64M
     
    key-buffer-size           = 2G
     
    myisam-max-sort-file-size = 1G
    myisam-recover-options    = 1
    myisam-repair-threads     = 1
    myisam-sort-buffer-size   = 128M
    myisam-stats-method       = nulls_unequal
    myisam-use-mmap           = OFF
     
    # -------------------#
    #     Networking     #
    # -------------------#
     
    back-log           = 50
     
    bind-address       = 0.0.0.0
     
    net-buffer-length  = 8K
    net-read-timeout   = 60
    net-write-timeout  = 60
     
    # -----------------#
    #     Password     #
    # -----------------#
     
    default-password-lifetime      = 0
    disconnect-on-expired-password = 0
     
    # ---------------------------#
    #     Performance-Schema     #
    # ---------------------------#
     
    # performance-schema                                = ON
    # performance-schema-events-waits-history-size      = 20
    # performance-schema-events-waits-history-long-size = 1500
     
    # ----------------#
    #     Pluggin     #
    # ----------------#
     
    early-plugin-load =
    # early-plugin-load = keyring_file.dll
     
    # --------------#
    #     Query     #
    # --------------#
     
    query-alloc-block-size       = 8M
    query-cache-limit            = 1G
    query-cache-min-res-unit     = 4096
    query-cache-size             = 512M
    query-cache-type             = On
    query-cache-wlock-invalidate = Off
     
    # -------------#
    #     Skip     #
    # -------------#
     
    disable-partition-engine-check
     
    #skip-innodb-doublewrite
     
    skip-external-locking
    skip-federated
     
    #skip-grant-tables
    #skip-log-warnings
    skip-slave-start
    # skip-innodb-adaptive-hash-index
     
    # --------------------#
    #     Long & Slow     #
    # --------------------#
     
    long-query-time      = 0
     
    slow-query-log       = 1
    slow-query-log-file  = f:/Wamp/logs/mysql_slow.log
     
    # ------------#
    #     Ssl     #
    # ------------#
     
    skip-ssl
     
    # --------------#
    #     Table     #
    # --------------#
     
    table-definition-cache = 512
    table-open-cache       = 512
     
    # -------------------#
    #     Temp Table     #
    # -------------------#
     
    tmp-table-size = 1G
     
    # ---------------#
    #     Thread     #
    # ---------------#
     
    thread-cache-size = 8
    thread-stack      = 256K
     
    # ------------------------------#
    #     Timeout Configuration     #
    # ------------------------------#
     
    connect-timeout     = 600
    interactive-timeout = 600
    wait-timeout        = 600
     
    # --------------------#
    #     Transaction     #
    # --------------------#
     
    transaction-isolation = SERIALIZABLE
     
    # ---------------#
    #     Tuning     #
    # ---------------#
     
    concurrent-insert = 2
    open-files-limit  = 8192
     
    # secure-file-priv  = e:/mysql
    secure-file-priv  =
     
     
    # =================== #
    #     MySql Admin     #
    # =================== #
     
    [mysqldadmin]
    force
     
     
    # ================== #
    #     MySql Dump     #
    # ================== #
     
    [mysqldump]
    add-drop-database
    add-drop-table
    add-drop-trigger
     
    default-character-set = utf8
     
    flush-logs
    flush-privileges
     
    lock-all-tables
    max-allowed-packet    = 16M
    no-autocommit
    order-by-primary
    quick
    routines
     
    skip-comments
    skip-opt
    skip-set-charset
    skip-tz-utc
     
    triggers
     
     
    # ===================== #
    #     My Isam Check     #
    # ===================== #
     
    [myisamchk]
    key-buffer-size  = 128M
    sort-buffer-size = 128M
    read-buffer      = 2M
    write-buffer     = 2M
     
     
    # ====================== #
    #     MySql Hot Copy     #
    # ====================== #
     
    [mysqlhotcopy]
    interactive-timeout
     
     
    # ===================== #
    #     MySql Monitor     #
    # ===================== #
     
    [mysql]
    default-character-set = latin1
    no-auto-rehash
    #safe-updates
    skip-reconnect
    table
     
     
    # ================== #
    #     MySql Safe     #
    # ================== #
     
    [mysqld_safe]
    open-files-limit = 8192
     
    log-error        = f:/Wamp/logs/mysql_error.log
    @+

Discussions similaires

  1. Comment libérer l'éspace mémoire utilisé par Acrobat Reader?
    Par Matt2094 dans le forum Autres Logiciels
    Réponses: 2
    Dernier message: 28/03/2006, 17h48
  2. Trouvé la mémoire utilisé par un processus (selon sont pid)
    Par Coussati dans le forum API, COM et SDKs
    Réponses: 1
    Dernier message: 21/02/2006, 02h02
  3. Allocation mémoire, je ne comprends pas !
    Par bouba dans le forum C
    Réponses: 5
    Dernier message: 13/12/2005, 13h11
  4. [JDialog] La mémoire ne se libère pas au dispose()
    Par bugalood dans le forum Agents de placement/Fenêtres
    Réponses: 9
    Dernier message: 01/09/2005, 22h31
  5. [JVM] Connaitre la taille mémoire utilisé par les dif classe
    Par sur_uix dans le forum Général Java
    Réponses: 4
    Dernier message: 18/09/2003, 09h17

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo