database.sarang.net
UserID
Passwd
Database
DBMS
ㆍMySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
MySQL Q&A 28673 게시물 읽기
No. 28673
새벽만 되면 느려지고; Lock wait timeout exceeded 되네요;
작성자
민이
작성일
2009-06-09 13:12
조회수
7,007

제가 DB에관해 정말 초보라서 그런데..;;


밑글들 찾아봐도 잘 모르겠더라고요;;


새벽에 좀 느려지고..


Received throwable with Message: General error,  message from server: "Lock wait timeout exceeded; Try restarting transaction"

General error,  message from server: "Lock wait timeout exceeded; Try restarting transaction"java.lang.Exception: General error,  message from server: "Lock wait timeout exceeded; Try restarting transaction"


이 에러가 나오더라고요..


사항들은..



cpu 찾아보니깐 이렇게 나오고


processor       : 0

vendor_id       : GenuineIntel

cpu family      : 6

model           : 15

model name      : Intel(R) Xeon(R) CPU           X3210  @ 2.13GHz

stepping        : 11

cpu MHz         : 2128.001

cache size      : 4096 KB

physical id     : 0

siblings        : 4

core id         : 0

cpu cores       : 4

fdiv_bug        : no

hlt_bug         : no

f00f_bug        : no

coma_bug        : no

fpu             : yes

fpu_exception   : yes

cpuid level     : 10

wp              : yes

flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm

bogomips        : 4258.49

 

processor       : 1

vendor_id       : GenuineIntel

cpu family      : 6

model           : 15

model name      : Intel(R) Xeon(R) CPU           X3210  @ 2.13GHz

stepping        : 11

cpu MHz         : 2128.001

cache size      : 4096 KB

physical id     : 0

siblings        : 4

core id         : 1

cpu cores       : 4

fdiv_bug        : no

hlt_bug         : no

f00f_bug        : no

coma_bug        : no

fpu             : yes

fpu_exception   : yes

cpuid level     : 10

wp              : yes

flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm

bogomips        : 4255.99

 

processor       : 2

vendor_id       : GenuineIntel

cpu family      : 6

model           : 15

model name      : Intel(R) Xeon(R) CPU           X3210  @ 2.13GHz

stepping        : 11

cpu MHz         : 2128.001

cache size      : 4096 KB

physical id     : 0

siblings        : 4

core id         : 2

cpu cores       : 4

fdiv_bug        : no

hlt_bug         : no

f00f_bug        : no

coma_bug        : no

fpu             : yes

fpu_exception   : yes

cpuid level     : 10

wp              : yes

flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm

bogomips        : 4256.03

 

processor       : 3

vendor_id       : GenuineIntel

cpu family      : 6

model           : 15

model name      : Intel(R) Xeon(R) CPU           X3210  @ 2.13GHz

stepping        : 11

cpu MHz         : 2128.001

cache size      : 4096 KB

physical id     : 0

siblings        : 4

core id         : 3

cpu cores       : 4

fdiv_bug        : no

hlt_bug         : no

f00f_bug        : no

coma_bug        : no

fpu             : yes

fpu_exception   : yes

cpuid level     : 10

wp              : yes

flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm

bogomips        : 4256.02










메모리는 이렇게..

               total       used       free     shared    buffers     cached

Mem:          2025       1490        534          0        127        942

-/+ buffers/cache:        421       1604

Swap:         1983          0       1983









show variables 는



| Variable_name                   | Value                                                                                                                                                            |

+---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+

| back_log                        | 50                                                                                                                                                               |

| basedir                         | /usr/local/mysql/                                                                                                                                                |

| binlog_cache_size               | 32768                                                                                                                                                            |

| bulk_insert_buffer_size         | 8388608                                                                                                                                                          |

| character_set                   | euc_kr                                                                                                                                                           |

| character_sets                  | euc_kr dec8 dos german1 hp8 koi8_ru latin1 latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5 |

| concurrent_insert               | ON                                                                                                                                                               |

| connect_timeout                 | 5                                                                                                                                                                |

| convert_character_set           |                                                                                                                                                                  |

| datadir                         | /usr/local/mysql/var/                                                                                                                                            |

| default_week_format             | 0                                                                                                                                                                |

| delay_key_write                 | ON                                                                                                                                                               |

| delayed_insert_limit            | 100                                                                                                                                                              |

| delayed_insert_timeout          | 300                                                                                                                                                              |

| delayed_queue_size              | 1000                                                                                                                                                             |

| flush                           | OFF                                                                                                                                                              |

| flush_time                      | 0                                                                                                                                                                |

| ft_boolean_syntax               | + -><()~*:""&|                                                                                                                                                   |

| ft_max_word_len                 | 254                                                                                                                                                              |

| ft_max_word_len_for_sort        | 20                                                                                                                                                               |

| ft_min_word_len                 | 4                                                                                                                                                                |

| ft_stopword_file                | (built-in)                                                                                                                                                       |

| have_bdb                        | NO                                                                                                                                                               |

| have_crypt                      | YES                                                                                                                                                              |

| have_innodb                     | YES                                                                                                                                                              |

| have_isam                       | YES                                                                                                                                                              |

| have_openssl                    | NO                                                                                                                                                               |

| have_query_cache                | YES                                                                                                                                                              |

| have_raid                       | NO                                                                                                                                                               |

| have_symlink                    | YES                                                                                                                                                              |

| init_file                       |                                                                                                                                                                  |

| innodb_additional_mem_pool_size | 1048576                                                                                                                                                          |

| innodb_autoextend_increment     | 8                                                                                                                                                                |

| innodb_buffer_pool_size         | 8388608                                                                                                                                                          |

| innodb_data_file_path           | ibdata1:10M:autoextend                                                                                                                                           |

| innodb_data_home_dir            |                                                                                                                                                                  |

| innodb_fast_shutdown            | ON                                                                                                                                                               |

| innodb_file_io_threads          | 4                                                                                                                                                                |

| innodb_flush_log_at_trx_commit  | 1                                                                                                                                                                |

| innodb_flush_method             |                                                                                                                                                                  |

| innodb_force_recovery           | 0                                                                                                                                                                |

| 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_max_dirty_pages_pct      | 90                                                                                                                                                               |

| innodb_max_purge_lag            | 0                                                                                                                                                                |

| innodb_mirrored_log_groups      | 1                                                                                                                                                                |

| innodb_table_locks              | ON                                                                                                                                                               |

| innodb_thread_concurrency       | 8                                                                                                                                                                |

| interactive_timeout             | 28800                                                                                                                                                            |

| join_buffer_size                | 131072                                                                                                                                                           |

| key_buffer_size                 | 402653184                                                                                                                                                        |

| language                        | /usr/local/mysql/share/mysql/english/                                                                                                                            |

| large_files_support             | ON                                                                                                                                                               |

| license                         | GPL                                                                                                                                                              |

| local_infile                    | ON                                                                                                                                                               |

| locked_in_memory                | OFF                                                                                                                                                              |

| log                             | OFF                                                                                                                                                              |

| log_bin                         | ON                                                                                                                                                               |

| log_error                       |                                                                                                                                                                  |

| log_slave_updates               | OFF                                                                                                                                                              |

| log_slow_queries                | OFF                                                                                                                                                              |

| log_update                      | OFF                                                                                                                                                              |

| log_warnings                    | 1                                                                                                                                                                |

| long_query_time                 | 10                                                                                                                                                               |

| low_priority_updates            | OFF                                                                                                                                                              |

| lower_case_file_system          | OFF                                                                                                                                                              |

| lower_case_table_names          | 0                                                                                                                                                                |

| max_allowed_packet              | 1047552                                                                                                                                                          |

| max_binlog_cache_size           | 4294967295                                                                                                                                                       |

| max_binlog_size                 | 1073741824                                                                                                                                                       |

| max_connect_errors              | 10                                                                                                                                                               |

| max_connections                 | 100                                                                                                                                                              |

| max_delayed_threads             | 20                                                                                                                                                               |

| max_heap_table_size             | 16777216                                                                                                                                                         |

| max_insert_delayed_threads      | 20                                                                                                                                                               |

| max_join_size                   | 4294967295                                                                                                                                                       |

| max_relay_log_size              | 0                                                                                                                                                                |

| max_seeks_for_key               | 4294967295                                                                                                                                                       |

| max_sort_length                 | 1024                                                                                                                                                             |

| max_tmp_tables                  | 32                                                                                                                                                               |

| max_user_connections            | 0                                                                                                                                                                |

| max_write_lock_count            | 4294967295                                                                                                                                                       |

| myisam_max_extra_sort_file_size | 268435456                                                                                                                                                        |

| myisam_max_sort_file_size       | 2147483647                                                                                                                                                       |

| myisam_recover_options          | OFF                                                                                                                                                              |

| myisam_repair_threads           | 1                                                                                                                                                                |

| myisam_sort_buffer_size         | 67108864                                                                                                                                                         |

| net_buffer_length               | 16384                                                                                                                                                            |

| net_read_timeout                | 30                                                                                                                                                               |

| net_retry_count                 | 10                                                                                                                                                               |

| net_write_timeout               | 60                                                                                                                                                               |

| new                             | OFF                                                                                                                                                              |

| open_files_limit                | 1134                                                                                                                                                             |

| pid_file                        | /usr/local/mysql/var/ns.shunjin.com.pid                                                                                                                          |

| port                            | 3306                                                                                                                                                             |

| protocol_version                | 10                                                                                                                                                               |

| query_alloc_block_size          | 8192                                                                                                                                                             |

| query_cache_limit               | 1048576                                                                                                                                                          |

| query_cache_size                | 33554432                                                                                                                                                         |

| query_cache_type                | ON                                                                                                                                                               |

| query_cache_wlock_invalidate    | OFF                                                                                                                                                              |

| query_prealloc_size             | 8192                                                                                                                                                             |

| range_alloc_block_size          | 2048                                                                                                                                                             |

| read_buffer_size                | 2093056                                                                                                                                                          |

| read_only                       | OFF                                                                                                                                                              |

| read_rnd_buffer_size            | 262144                                                                                                                                                           |

| rpl_recovery_rank               | 0                                                                                                                                                                |

| server_id                       | 1                                                                                                                                                                |

| skip_external_locking           | ON                                                                                                                                                               |

| skip_networking                 | OFF                                                                                                                                                              |

| skip_show_database              | OFF                                                                                                                                                              |

| slave_net_timeout               | 3600                                                                                                                                                             |

| slow_launch_time                | 2                                                                                                                                                                |

| socket                          | /tmp/mysql.sock                                                                                                                                                  |

| sort_buffer_size                | 2097144                                                                                                                                                          |

| sql_mode                        | 0                                                                                                                                                                |

| table_cache                     | 512                                                                                                                                                              |

| table_type                      | MYISAM                                                                                                                                                           |

| thread_cache_size               | 8                                                                                                                                                                |

| thread_stack                    | 196608                                                                                                                                                           |

| timezone                        | KST                                                                                                                                                              |

| tmp_table_size                  | 33554432                                                                                                                                                         |

| tmpdir                          | /tmp/                                                                                                                                                            |

| transaction_alloc_block_size    | 8192                                                                                                                                                             |

| transaction_prealloc_size       | 4096                                                                                                                                                             |

| tx_isolation                    | REPEATABLE-READ                                                                                                                                                  |

| version                         | 4.0.27-log                                                                                                                                                       |

| version_comment                 | Source distribution                                                                                                                                              |

| version_compile_os              | pc-linux-gnu                                                                                                                                                     |

| wait_timeout                    | 28800    







show status는 



+--------------------------+------------+

| Variable_name            | Value      |

+--------------------------+------------+

| Aborted_clients          | 2695       |

| Aborted_connects         | 175        |

| Bytes_received           | 2792603413 |

| Bytes_sent               | 612623609  |

| Com_admin_commands       | 0          |

| Com_alter_table          | 159        |

| Com_analyze              | 0          |

| Com_backup_table         | 0          |

| Com_begin                | 0          |

| Com_change_db            | 3340       |

| Com_change_master        | 0          |

| Com_check                | 0          |

| Com_commit               | 33030      |

| Com_create_db            | 2          |

| Com_create_function      | 0          |

| Com_create_index         | 0          |

| Com_create_table         | 81         |

| Com_delete               | 146        |

| Com_delete_multi         | 0          |

| Com_drop_db              | 1          |

| Com_drop_function        | 0          |

| Com_drop_index           | 0          |

| Com_drop_table           | 80         |

| Com_flush                | 0          |

| Com_grant                | 0          |

| Com_ha_close             | 0          |

| Com_ha_open              | 0          |

| Com_ha_read              | 0          |

| Com_insert               | 19137      |

| Com_insert_select        | 81         |

| Com_kill                 | 2          |

| Com_load                 | 0          |

| Com_load_master_data     | 0          |

| Com_load_master_table    | 0          |

| Com_lock_tables          | 85         |

| Com_optimize             | 0          |

| Com_purge                | 0          |

| Com_rename_table         | 0          |

| Com_repair               | 0          |

| Com_replace              | 0          |

| Com_replace_select       | 0          |

| Com_reset                | 0          |

| Com_restore_table        | 0          |

| Com_revoke               | 0          |

| Com_rollback             | 21952      |

| Com_savepoint            | 0          |

| Com_select               | 1832483    |

| Com_set_option           | 84909      |

| Com_show_binlog_events   | 0          |

| Com_show_binlogs         | 0          |

| Com_show_create          | 539        |

| Com_show_databases       | 19         |

| Com_show_fields          | 563        |

| Com_show_grants          | 0          |

| Com_show_innodb_status   | 0          |

| Com_show_keys            | 138        |

| Com_show_logs            | 0          |

| Com_show_master_status   | 0          |

| Com_show_new_master      | 0          |

| Com_show_open_tables     | 0          |

| Com_show_processlist     | 7          |

| Com_show_slave_hosts     | 0          |

| Com_show_slave_status    | 0          |

| Com_show_status          | 2          |

| Com_show_tables          | 459        |

| Com_show_variables       | 3310       |

| Com_slave_start          | 0          |

| Com_slave_stop           | 0          |

| Com_truncate             | 0          |

| Com_unlock_tables        | 84         |

| Com_update               | 207544     |

| Com_update_multi         | 6          |

| Connections              | 3539       |

| Created_tmp_disk_tables  | 1895       |

| Created_tmp_files        | 1016       |

| Created_tmp_tables       | 58824      |

| Delayed_errors           | 0          |

| Delayed_insert_threads   | 0          |

| Delayed_writes           | 0          |

| Flush_commands           | 1          |

| Handler_commit           | 54928      |

| Handler_delete           | 230        |

| Handler_read_first       | 47679      |

| Handler_read_key         | 86529511   |

| Handler_read_next        | 2745201481 |

| Handler_read_prev        | 417        |

| Handler_read_rnd         | 1345788    |

| Handler_read_rnd_next    | 714781170  |

| Handler_rollback         | 22464      |

| Handler_update           | 1710348    |

| Handler_write            | 3564029    |

| Key_blocks_used          | 54         |

| Key_read_requests        | 15513      |

| Key_reads                | 27         |

| Key_write_requests       | 1397       |

| Key_writes               | 450        |

| Max_used_connections     | 43         |

| Not_flushed_delayed_rows | 0          |

| Not_flushed_key_blocks   | 0          |

| Open_files               | 20         |

| Open_streams             | 0          |

| Open_tables              | 160        |

| Opened_tables            | 494        |

| Qcache_free_blocks       | 1123       |

| Qcache_free_memory       | 29871528   |

| Qcache_hits              | 3255436    |

| Qcache_inserts           | 1588613    |

| Qcache_lowmem_prunes     | 2413       |

| Qcache_not_cached        | 243597     |

| Qcache_queries_in_cache  | 2309       |

| Qcache_total_blocks      | 5790       |

| Questions                | 5465772    |

| Rpl_status               | NULL       |

| Select_full_join         | 14042      |

| Select_full_range_join   | 100        |

| Select_range             | 694075     |

| Select_range_check       | 0          |

| Select_scan              | 34908      |

| Slave_open_temp_tables   | 0          |

| Slave_running            | OFF        |

| Slow_launch_threads      | 0          |

| Slow_queries             | 323        |

| Sort_merge_passes        | 6          |

| Sort_range               | 155741     |

| Sort_rows                | 1346495    |

| Sort_scan                | 56276      |

| Table_locks_immediate    | 2264318    |

| Table_locks_waited       | 0          |

| Threads_cached           | 5          |

| Threads_connected        | 8          |

| Threads_created          | 211        |

| Threads_running          | 1          |

| Uptime                   | 1276204    |

+--------------------------+------------+


이렇게 나옵니다..


제발 고수님들 도와주세요...


[Top]
No.
제목
작성자
작성일
조회
28686MYSQL CPU가 수시로 100%를 점유합니다. 도와주세요ㅠㅠ
제임스
2009-06-10
5523
28683키워드 검색 테이블 구성및 검색 방법 조언 부탁드립니다. [1]
조항철
2009-06-10
5598
28682100만개 단순 쿼리가 너무 느립니다... [1]
이지영
2009-06-10
6446
28673새벽만 되면 느려지고; Lock wait timeout exceeded 되네요;
민이
2009-06-09
7007
28672여러 명이 동시에 query를 날리면 데이터 누락이 발생합니다 T_T
김승동
2009-06-09
5878
28657위키백과 데이터를 MySQL에 넣고 싶은데
마스터
2009-06-08
5874
28656delete문 관련 문의
정병선
2009-06-08
5508
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.018초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다