Précédent   Forum des professionnels en informatique > Bases de données > MySQL > Installation
Installation Forum d'entraide sur les problèmes liés à l'installation de MySQL
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 04/11/2003, 13h21   #1
Membre confirmé
 
Avatar de iubito
 
Homme
Développeur informatique
Inscription : janvier 2003
Messages : 376
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 29
Localisation : France

Informations professionnelles :
Activité : Développeur informatique
Secteur : Finance

Informations forums :
Inscription : janvier 2003
Messages : 376
Points : 244
Points : 244
Par défaut mysql bouffe de la place en mémoire !

Salut, j'ai installé mysql comme indiqué sur le tutorial, et j'ai mis comme fichier my.ini le plus petit (small).
J'ai une pauvre base avec 2 tables sur lesquelles je fais des tests de rien du tout avec (si y'a 3 lignes c'est le grand maximum).

Et je vois qu'au bout d'un moment, le processus mysqld.exe (windows 2000) occupe :
- 32Mo de RAM + 30 en mémoire cache disque,
- 4400 threads

Je trouve que ça fait pas mal, surtout que je dois à terme installer MySQL sur des portables peu véloces et pas forcément bien fournis en mémoire (si y'a 128 c'est déjà pas mal!) qui seront sous winNT ou win2K.

Autant dire que ça va faire ralentir considérablement l'ordinateur (je dois en plus y installer un serveur Tomcat et Java...!)

Une telle utilisation de mémoire est-elle normale ?
Y a-t'il moyen de réduire un peu ?
__________________
Compatibilité CSS | Hacks CSS IE | IE7

Lé SMS cé kom lé ognon, sa pike lé yeu
iubito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/11/2003, 11h57   #2
Membre régulier
 
Inscription : avril 2002
Messages : 99
Détails du profil
Informations forums :
Inscription : avril 2002
Messages : 99
Points : 94
Points : 94
Salut,

c'est bizzare, sur mon poste je lance mysql (+apache +php avec easyphp) avec 4 tables qui ont chacunes quelques 100 aines de lignes mais je n'ai pas du tout la même chose (avec applis qui tournent dessus en web ainsi qu'en delphi):

-> Threads 375 (tu ne confondrais pas avec les Handle par hasard ?)
-> Ram mysql : 5.6Mo
__________________
A+---------------> Nat <-------------------
rbag est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/11/2003, 13h17   #3
Membre confirmé
 
Avatar de iubito
 
Homme
Développeur informatique
Inscription : janvier 2003
Messages : 376
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 29
Localisation : France

Informations professionnelles :
Activité : Développeur informatique
Secteur : Finance

Informations forums :
Inscription : janvier 2003
Messages : 376
Points : 244
Points : 244
quand j'avais EasyPHP en effet ça prenait moins de place, mais là je veux pas EasyPHP, et je constate ça sur 2 postes.
Le premier (mon poste perso), j'ai 1 Go de RAM et j'avais mis pour voir la config large ou huge je sais plus, quand j'ai vu 400 Mo j'ai tout de suite réduit !
Sur l'autre j'ai mis directement la plus petite et j'en suis toujours à 32 Mo RAM + 30 Mo mémoire virtuelle + 4414 handles, et 16 threads
__________________
Compatibilité CSS | Hacks CSS IE | IE7

Lé SMS cé kom lé ognon, sa pike lé yeu
iubito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/11/2003, 14h24   #4
Membre confirmé
 
Avatar de omiossec
 
Inscription : juin 2002
Messages : 219
Détails du profil
Informations personnelles :
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : juin 2002
Messages : 219
Points : 240
Points : 240
Envoyer un message via AIM à omiossec Envoyer un message via Skype™ à omiossec
Quel est la version utilisé
et que donne un show variables
__________________
Olivier Miossec
omiossec est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/11/2003, 14h49   #5
Membre confirmé
 
Avatar de iubito
 
Homme
Développeur informatique
Inscription : janvier 2003
Messages : 376
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 29
Localisation : France

Informations professionnelles :
Activité : Développeur informatique
Secteur : Finance

Informations forums :
Inscription : janvier 2003
Messages : 376
Points : 244
Points : 244
version 4.0.15 je crois

et les variables, attention c'est partiiiii
Code :
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
Variable_name                   | Value
back_log                        | 50
basedir                         | c:\mysql\
bdb_cache_size                  | 8388572
bdb_log_buffer_size             | 32768
bdb_home                        | c:\mysql\DATA\
bdb_max_lock                    | 10000
bdb_logdir                      |
bdb_shared_data                 | OFF
bdb_tmpdir                      | C:\WINNT\TEMP\
bdb_version                     | Sleepycat Software: Berkeley DB 3.2.9a: (September  6, 2003)
binlog_cache_size               | 32768
bulk_insert_buffer_size         | 8388608
character_set                   |  latin1
character_sets                  |  latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ... danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5
concurrent_insert               |  ON
connect_timeout                 | 5
convert_character_set           |
datadir                         | c:\mysql\DATA\
default_week_format             | 0
delay_key_write                 | ON
delayed_insert_limit            | 100
delayed_insert_timeout          | 300
delayed_queue_size              | 1000
FLUSH                           | OFF
flush_time                      | 1800
ft_boolean_syntax               | + -><()~*:""&|
ft_min_word_len                 | 4
ft_max_word_len                 | 254
ft_max_word_len_for_sort        | 20
ft_stopword_file                | (built-IN)
have_bdb                        | YES
have_crypt                      | NO
have_innodb                     | YES
have_isam                       | YES
have_raid                       | NO
have_symlink                    | YES
have_openssl                    | NO
have_query_cache                | YES
init_file                       |
innodb_additional_mem_pool_size | 1048576
innodb_buffer_pool_size         | 8388608
innodb_data_file_path           | ibdata1:10M:autoextend
innodb_data_home_dir            |
innodb_file_io_threads          | 4
innodb_force_recovery           | 0
innodb_thread_concurrency       | 8
innodb_flush_log_at_trx_commit  | 1
innodb_fast_shutdown            | ON
innodb_flush_method             |
innodb_lock_wait_timeout        | 50
innodb_log_arch_dir             | .\
innodb_log_archive              | OFF
innodb_log_buffer_size          | 1048576
innodb_log_file_size            | 5242880
innodb_log_files_in_group       | 2
innodb_log_group_home_dir       | .\
innodb_mirrored_log_groups      | 1
innodb_max_dirty_pages_pct      | 90
interactive_timeout             | 28800
join_buffer_size                | 131072
key_buffer_size                 | 16384
LANGUAGE                        | c:\mysql\share\french\
large_files_support             | ON
local_infile                    | ON
log                             | OFF
log_update                      | OFF
log_bin                         | OFF
log_slave_updates               | OFF
log_slow_queries                | OFF
log_warnings                    | OFF
long_query_time                 | 10
low_priority_updates            | OFF
lower_case_table_names          | ON
max_allowed_packet              | 1047552
max_binlog_cache_size           | 4294967295
max_binlog_size                 | 1073741824
max_connections                 | 100
max_connect_errors              | 10
max_delayed_threads             | 20
max_heap_table_size             | 16777216
max_join_size                   | 4294967295
max_relay_log_size              | 0
max_seeks_for_key               | 4294967295
max_sort_length                 | 1024
max_user_connections            | 0
max_tmp_tables                  | 32
max_write_lock_count            | 4294967295
myisam_max_extra_sort_file_size | 268435456
myisam_max_sort_file_size       | 2147483647
myisam_repair_threads           | 1
myisam_recover_options          | OFF
myisam_sort_buffer_size         | 8388608
net_buffer_length               | 2048
net_read_timeout                | 30
net_retry_count                 | 10
net_write_timeout               | 60
new                             | OFF
open_files_limit                | 0
pid_file                        | c:\mysql\DATA\MICSMACHEFER.pid
log_error                       | .\MICSMACHEFER.err
port                            | 3306
protocol_version                | 10
query_cache_limit               | 1048576
query_cache_size                | 0
query_cache_type                | ON
read_buffer_size                | 131072
read_only                       | OFF
read_rnd_buffer_size            | 262144
rpl_recovery_rank               | 0
server_id                       | 1
slave_net_timeout               | 3600
skip_external_locking           | ON
skip_networking                 | OFF
skip_show_database              | OFF
slow_launch_time                | 2
sort_buffer_size                | 65500
sql_mode                        | 0
table_cache                     | 4
table_type                      | MYISAM
thread_cache_size               | 0
thread_stack                    | 65536
tx_isolation                    | REPEATABLE-READ
timezone                        | Paris, Madrid
tmp_table_size                  | 33554432
tmpdir                          | C:\WINNT\TEMP\
version                         | 4.0.15-max-debug
wait_timeout                    | 28800
__________________
Compatibilité CSS | Hacks CSS IE | IE7

Lé SMS cé kom lé ognon, sa pike lé yeu
iubito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/11/2003, 14h51   #6
Membre confirmé
 
Avatar de iubito
 
Homme
Développeur informatique
Inscription : janvier 2003
Messages : 376
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 29
Localisation : France

Informations professionnelles :
Activité : Développeur informatique
Secteur : Finance

Informations forums :
Inscription : janvier 2003
Messages : 376
Points : 244
Points : 244
peut-être que le tmp_table_size = 33554432, non ?

et comment on peut changer?
__________________
Compatibilité CSS | Hacks CSS IE | IE7

Lé SMS cé kom lé ognon, sa pike lé yeu
iubito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/11/2003, 15h12   #7
Membre confirmé
 
Avatar de omiossec
 
Inscription : juin 2002
Messages : 219
Détails du profil
Informations personnelles :
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : juin 2002
Messages : 219
Points : 240
Points : 240
Envoyer un message via AIM à omiossec Envoyer un message via Skype™ à omiossec
Il faudrait peut être desactivé INNODB et BDB
__________________
Olivier Miossec
omiossec est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/11/2003, 15h24   #8
Membre confirmé
 
Avatar de iubito
 
Homme
Développeur informatique
Inscription : janvier 2003
Messages : 376
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 29
Localisation : France

Informations professionnelles :
Activité : Développeur informatique
Secteur : Finance

Informations forums :
Inscription : janvier 2003
Messages : 376
Points : 244
Points : 244
hmmm ça sert à quoi et comment on désactive ?

ça ne vas pas gêner mon appli ? c'est quelques tables avec essentiellement de la lecture, un peu de synchronisation, mais relativement bête au niveau base de données.
__________________
Compatibilité CSS | Hacks CSS IE | IE7

Lé SMS cé kom lé ognon, sa pike lé yeu
iubito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/11/2003, 15h29   #9
Membre confirmé
 
Avatar de iubito
 
Homme
Développeur informatique
Inscription : janvier 2003
Messages : 376
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 29
Localisation : France

Informations professionnelles :
Activité : Développeur informatique
Secteur : Finance

Informations forums :
Inscription : janvier 2003
Messages : 376
Points : 244
Points : 244
j'ai trouvé dans my.ini :
Citation:
# Uncomment the following if you are NOT using BDB tables
#skip-bdb
j'ai enlevé le commentaire, mais pour InnoDB...

[quote]
# Uncomment the following if you are using Innobase tables
#innodb_data_file_path = ibdata1:100M
#innodb_data_home_dir = c:\ibdata
#innodb_log_group_home_dir = c:\iblogs
#innodb_log_arch_dir = c:\iblogs
#set-variable = innodb_mirrored_log_groups=1
#set-variable = innodb_log_files_in_group=3
#set-variable = innodb_log_file_size=5M
#set-variable = innodb_log_buffer_size=8M
#innodb_flush_log_at_trx_commit=1
#innodb_log_archive=0
#set-variable = innodb_buffer_pool_size=16M
#set-variable = innodb_additional_mem_pool_size=2M
#set-variable = innodb_file_io_threads=4
#set-variable = innodb_lock_wait_timeout=50[/quot]

je n'utilise pas les tables et c'est commenté, comment se fait-il que ce soit activé alors ?
__________________
Compatibilité CSS | Hacks CSS IE | IE7

Lé SMS cé kom lé ognon, sa pike lé yeu
iubito est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/11/2003, 16h01   #10
Membre confirmé
 
Avatar de iubito
 
Homme
Développeur informatique
Inscription : janvier 2003
Messages : 376
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 29
Localisation : France

Informations professionnelles :
Activité : Développeur informatique
Secteur : Finance

Informations forums :
Inscription : janvier 2003
Messages : 376
Points : 244
Points : 244
skip-innodb tout simplement, bon je relance mySQL pour voir......... 3 Mo en mémoire !
__________________
Compatibilité CSS | Hacks CSS IE | IE7

Lé SMS cé kom lé ognon, sa pike lé yeu
iubito est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 21h37.


 
 
 
 
Partenaires

Hébergement Web