MySQL Forums
Forum List  »  French

Plantage du service MySql sous Windows
Posted by: Eric CHRIST
Date: July 24, 2013 10:49AM

J'ai une application qui tourne depuis quelques mois.
Jusqu'à la pas de problème.
Depuis quelques jours je constate des crashs répétés du service MySQL sous Windows.
Evidement, a force, cela finie par planter l'application.

Lorsque le service crash, 1 fois sur 2 je suis forcé de lancer mysql en mode restauration pour la récupéré.
Ensuite je la relance en mode normale.

Ce qui me surprend est que jusqu'à là cela fonctionnait bien.
Je découvrais de temps en temps de bug sur l'application, mais mysql ne plantait pas.


CONTEXTE
L'application enregistre des valeurs venant de divers capteurs
il y a 2200 capteurs et autant de table (une table par mesure)
J'ai développé le frontale sous LabVIEW et j'utilise le connecteur ODBC.
Le débit de données est assez variable car je n'enregistre que sur variation de mesure.

La base de données fait environ 35.7 Go
J'utilise le format de fichier innoDB, avec un fichier par table.


MATERIEL
J'utilise MySQL community édition, v5.5.32
Je suis sous Windows 7 x32 (pour le client et le serveur).


REQUETES
Mes requêtes d'écritures se font par bloques. Typiquement elles sont la forme :
INSERT INTO `z_mes_00245`(`SYNC`,`Y`,`X`)
VALUES (1, 0, 0),(1, 0, 0) ;


Fichier ERR
Voici un extrait du fichier d'erreur lors de la restauration
(Nota : Pour que la restauration fonctionne à tous les coups,
je suis forcé d'effacé les fichiers ib_logfile0 et ib_logfile1).

130724 18:06:42 [Note] Plugin 'FEDERATED' is disabled.
130724 18:06:42 InnoDB: The InnoDB memory heap is disabled
130724 18:06:42 InnoDB: Mutexes and rw_locks use Windows interlocked functions
130724 18:06:42 InnoDB: Compressed tables use zlib 1.2.3
130724 18:06:42 InnoDB: Initializing buffer pool, size = 618.0M
130724 18:06:42 InnoDB: Completed initialization of buffer pool
130724 18:06:42 InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
130724 18:06:42 InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
130724 18:06:42 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
130724 18:06:42 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Error: trying to add tablespace 2161 of name '.\edf_scav\z_mes_0041.ibd'
InnoDB: to the tablespace memory cache, but tablespace
InnoDB: 2161 of name '.\edf_scav\alarme_historique.ibd' already exists in the tablespace
InnoDB: memory cache!


FICHIER MY.INI
Voici le fichier my.ini (je l'ai un peu tassé pour le raccourcir)
[client]
port=3306

[mysql]
default-character-set=latin1

[mysqld]
port=3306
basedir=C:\\Program Files\\MySQL\\MySQL Server 5.5
datadir=D:\\SCAV\\DATA_BASE\\mySQL
character-set-server=latin1
default-storage-engine=INNODB
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
max_connections=100
query_cache_size=203M
table_cache=256
tmp_table_size=205M
thread_cache_size=8

#*** MYISAM Specific options ***
myisam_max_sort_file_size=100G
myisam_sort_buffer_size=35M
key_buffer_size=128M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=256K

#*** INNODB Specific options ***
innodb_data_home_dir="D:/EDF_SCAV/DATA_BASE/mySQL/"
innodb_additional_mem_pool_size=13M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=4M
innodb_buffer_pool_size=618M
innodb_thread_concurrency=18
innodb_thread_concurrency=18
innodb_file_per_table
innodb_force_recovery = 0


Merci de votre aide
Salutations
EricC

Options: ReplyQuote


Subject
Views
Written By
Posted
Plantage du service MySql sous Windows
3480
July 24, 2013 10:49AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.