位置: 编程技术 - 正文

Slave memory leak and trigger oom-killer

编辑:rootadmin

推荐整理分享Slave memory leak and trigger oom-killer,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

Bug Description

We have this problem:

we have set innodb_buffer_pool =GB on both master and slave , master offer usually workload,but slave with nothing workload except these slave threads, But with the memory consumption is increasing , after a few days , it uses about GB of memory(RES) and sometime the machine starts swapping out. and in the /var/log/message(loged :Out of memory: Kill process (mysqld) score or sacrifice childKilled process , UID , (mysqld) total-vm:kB, anon-rss:kB, file-rss:kB)

We have the exact version of PerconaServer on the master (with production workload) and it doesn't have this problem

This problem is the same for a few recent versions of Percona server, not just the last one.

we do not user MyISAM tables and just use Innodb Tables;TokuDB is not installed.

Other Information:

this one just OOM last night T-T:

xiean@(none) :> s--------------mysql Ver . Distrib 5.6.-.1, for Linux (x_) using EditLine wrapper

Connection id: Current database:Current user: xiean@localhostSSL: Not in useCurrent pager: stdoutUsing outfile: ''Using delimiter: ;Server version: 5.6.-.1-log Source distributionProtocol version: Connection: Localhost via UNIX socketServer characterset: utf8Db characterset: utf8Client characterset: utf8Conn. characterset: utf8UNIX socket: /data/mysql//var/run/mysql.sockUptime: hours min 9 sec

Threads: 6 Questions: Slow queries: Opens: Flush tables: 1 Open tables: Queries per second avg: .--------------

CentOS release 6.5 (Final)Linux xxxxxxx 2.6.-.el6.x_ #1 SMP Fri Nov :: UTC x_ x_ x_ GNU/Linux

Slave memory leak and trigger oom-killer

my.cnf-----------------------------------------------------[mysqld]

skip-external-lockingskip-name-resolvedefault-storage-engine = InnoDBcharacter-set-client-handshake = FALSEcharacter-set-server = utf8collation-server = utf8_unicode_ciinit_connect='set names utf8'connect_timeout = back_log = log_bin_trust_function_creators = 1

binlog_format = rowmax_binlog_size = Mbinlog_cache_size = 2Mexpire-logs-days = 7

slave-net-timeout = log_slave_updates = 1relay_log_recovery = 1sync_master_info = 1sync_relay_log_info = 1master_info_repository = TABLErelay_log_info_repository = TABLE

slow_query_log = 1long_query_time = 1

max_connections = max_user_connections = max_connect_errors = key_buffer_size = Mmax_allowed_packet = Mtable_open_cache = table_definition_cache = sort_buffer_size = Kread_buffer_size = Kread_rnd_buffer_size = kjoin_buffer_size = Ktmp_table_size = Mmax_heap_table_size = Mquery_cache_type = 0query_cache_size = 0bulk_insert_buffer_size = Mthread_cache_size = thread_stack = K

innodb_data_file_path = ibdata1:M:autoextendinnodb_buffer_pool_size = Ginnodb_buffer_pool_instances = 8innodb_additional_mem_pool_size = Minnodb_use_sys_malloc = 0innodb_log_file_size = Minnodb_log_buffer_size = Minnodb_log_files_in_group = 3innodb_lock_wait_timeout = innodb_spin_wait_delay = innodb_thread_concurrency = 0innodb_max_dirty_pages_pct = innodb_support_xa = 0innodb_flush_log_at_trx_commit = 2innodb_flush_method = O_DIRECTinnodb_read_io_threads = innodb_write_io_threads = innodb_io_capacity = innodb_flush_neighbors = 0innodb_page_size = 4Kinnodb_log_block_size = innodb_file_per_table = 1innodb_file_format = Barracudainnodb_file_format_max = Barracudainnodb_strict_mode = 1innodb_purge_threads = 2innodb_purge_batch_size = innodb_old_blocks_pct = innodb_old_blocks_time = innodb_change_buffering = allinnodb_stats_on_metadata = off

sync_binlog = 0

innodb_buffer_pool_dump_at_shutdown = 1innodb_buffer_pool_load_at_startup = 1

show engine innodb statusG

=====================================-- :: 7faf INNODB MONITOR OUTPUT=====================================Per second averages calculated from the last 3 seconds-----------------BACKGROUND THREAD-----------------srv_master_thread loops: srv_active, 0 srv_shutdown, srv_idlesrv_master_thread log flush and writes: ----------SEMAPHORES----------OS WAIT ARRAY INFO: reservation count OS WAIT ARRAY INFO: signal count Mutex spin waits , rounds , OS waits RW-shared spins , rounds , OS waits RW-excl spins , rounds , OS waits Spin rounds per wait: 1. mutex, 4. RW-shared, 2. RW-excl

....................................................

----------------------BUFFER POOL AND MEMORY----------------------Total memory allocated ; in additional pool allocated Total memory allocated by read views Internal hash tables (constant factor + variable factor) Adaptive hash index ( + ) Page hash (buffer pool 0 only) Dictionary cache ( + ) File system ( + ) Lock system ( + ) Recovery system 0 (0 + 0)Dictionary memory allocated Buffer pool size Buffer pool size, bytes Free buffers Database pages Old database pages Modified db pages Pending reads 0Pending writes: LRU 0, flush list 0, single page 0Pages made young , not young . youngs/s, 3. non-youngs/sPages read , created , written . reads/s, 9. creates/s, . writes/sBuffer pool hit rate / , young-making rate 0 / not 0 / Pages read ahead 0./s, evicted without access 0./s, Random read ahead 0./sLRU len: , unzip_LRU len: 0I/O sum[]:cur[], unzip sum[0]:cur[0]----------------------INDIVIDUAL BUFFER POOL INFO-------------------------BUFFER POOL 0Buffer pool size Buffer pool size, bytes Free buffers Database pages Old database pages Modified db pages Pending reads 0Pending writes: LRU 0, flush list 0, single page 0Pages made young , not young . youngs/s, 3. non-youngs/sPages read , created , written . reads/s, 0. creates/s, . writes/sBuffer pool hit rate / , young-making rate 0 / not 0 / Pages read ahead 0./s, evicted without access 0./s, Random read ahead 0./sLRU len: , unzip_LRU len: 0I/O sum[]:cur[], unzip sum[0]:cur[0]---BUFFER POOL 1Buffer pool size Buffer pool size, bytes Free buffers Database pages Old database pages Modified db pages Pending reads 0Pending writes: LRU 0, flush list 0, single page 0Pages made young , not young . youngs/s, 0. non-youngs/sPages read , created , written . reads/s, 3. creates/s, . writes/sBuffer pool hit rate / , young-making rate 0 / not 0 / Pages read ahead 0./s, evicted without access 0./s, Random read ahead 0./sLRU len: , unzip_LRU len: 0I/O sum[]:cur[], unzip sum[0]:cur[0]---BUFFER POOL 2Buffer pool size Buffer pool size, bytes Free buffers Database pages Old database pages Modified db pages Pending reads 0Pending writes: LRU 0, flush list 0, single page 0Pages made young , not young . youngs/s, 0. non-youngs/sPages read , created , written . reads/s, 0. creates/s, . writes/sBuffer pool hit rate / , young-making rate 0 / not 0 / Pages read ahead 0./s, evicted without access 0./s, Random read ahead 0./sLRU len: , unzip_LRU len: 0I/O sum[]:cur[], unzip sum[0]:cur[0]---BUFFER POOL 3Buffer pool size Buffer pool size, bytes Free buffers Database pages Old database pages Modified db pages Pending reads 0Pending writes: LRU 0, flush list 0, single page 0Pages made young , not young . youngs/s, 0. non-youngs/sPages read , created , written . reads/s, 0. creates/s, . writes/sBuffer pool hit rate / , young-making rate 0 / not 0 / Pages read ahead 0./s, evicted without access 0./s, Random read ahead 0./sLRU len: , unzip_LRU len: 0I/O sum[]:cur[], unzip sum[0]:cur[0]---BUFFER POOL 4Buffer pool size Buffer pool size, bytes Free buffers Database pages Old database pages Modified db pages Pending reads 0Pending writes: LRU 0, flush list 0, single page 0Pages made young , not young . youngs/s, 0. non-youngs/sPages read , created , written . reads/s, 1. creates/s, . writes/sBuffer pool hit rate / , young-making rate 0 / not 0 / Pages read ahead 0./s, evicted without access 0./s, Random read ahead 0./sLRU len: , unzip_LRU len: 0I/O sum[]:cur[], unzip sum[0]:cur[0]---BUFFER POOL 5Buffer pool size Buffer pool size, bytes Free buffers Database pages Old database pages Modified db pages Pending reads 0Pending writes: LRU 0, flush list 0, single page 0Pages made young , not young . youngs/s, 0. non-youngs/sPages read , created , written . reads/s, 3. creates/s, . writes/sBuffer pool hit rate / , young-making rate 0 / not 0 / Pages read ahead 0./s, evicted without access 0./s, Random read ahead 0./sLRU len: , unzip_LRU len: 0I/O sum[]:cur[], unzip sum[0]:cur[0]---BUFFER POOL 6Buffer pool size Buffer pool size, bytes Free buffers Database pages Old database pages Modified db pages Pending reads 0Pending writes: LRU 0, flush list 0, single page 0Pages made young , not young . youngs/s, 0. non-youngs/sPages read , created , written . reads/s, 0. creates/s, . writes/sBuffer pool hit rate / , young-making rate 0 / not 0 / Pages read ahead 0./s, evicted without access 0./s, Random read ahead 0./sLRU len: , unzip_LRU len: 0I/O sum[]:cur[], unzip sum[0]:cur[0]---BUFFER POOL 7Buffer pool size Buffer pool size, bytes Free buffers Database pages Old database pages Modified db pages Pending reads 0Pending writes: LRU 0, flush list 0, single page 0Pages made young , not young . youngs/s, 0. non-youngs/sPages read , created , written . reads/s, 0. creates/s, . writes/sBuffer pool hit rate / , young-making rate 0 / not 0 / Pages read ahead 0./s, evicted without access 0./s, Random read ahead 0./sLRU len: , unzip_LRU len: 0I/O sum[]:cur[], unzip sum[0]:cur[0]--------------ROW OPERATIONS--------------0 queries inside InnoDB, 0 queries in queue1 read views open inside InnoDB0 RW transactions active inside InnoDB0 RO transactions active inside InnoDB0 out of descriptors used---OLDEST VIEW---Normal read viewRead view low limit trx n:o Read view up limit trx id Read view low limit trx id Read view individually stored trx ids:-----------------Main thread process no. , id , state: sleepingNumber of rows inserted , updated , deleted , read . inserts/s, . updates/s, 0. deletes/s, . reads/s----------------------------END OF INNODB MONITOR OUTPUT============================

MySQL 5.6 & 5.7最优配置文件模板(my.ini) Inside君整理了一份最新基于MySQL5.6和5.7的配置文件模板,基本上可以说覆盖%的调优选项,用户只需根据自己的服务器配置稍作修改即可,如InnoDB缓冲池

MYSQL神秘的HANDLER命令与实现方法 MySQL自古以来都有一个神秘的HANDLER命令,而此命令非SQL标准语法,可以降低优化器对于SQL语句的解析与优化开销,从而提升查询性能。看到这里,可能

全面解析Windows下安装 mysql5.7的方法 关于在windows下安装mysql5.7要注意的新坑:5.7版本安装后ROOT账号是有默认的密码的,这个密码在windows下可以在mysql.ini配置文件指定的data文件夹下面,那

标签: Slave memory leak and trigger oom-killer

本文链接地址:https://www.jiuchutong.com/biancheng/347924.html 转载请保留说明!

上一篇:MySQL Slave 触发 oom-killer解决方法(mysql触发事件)

下一篇:MySQL 5.6 & 5.7最优配置文件模板(my.ini)(mysql 5.6 5.7 性能)

  • 个人所得税退税操作流程
  • 销售软件系统退货怎么退
  • 只有增值税专用发票才能抵扣进项吗
  • 平台收取的佣金开具什么发票
  • 发票上的金额是什么字体
  • 企业注销库存怎么做账
  • 贷款利息是否能降低
  • 税控设备抵减增值税政策
  • 建筑企业增值税纳税义务发生时间如何确定
  • 银行转账结算方式的种类及适用范围
  • 退还增值税留抵税额是什么政策
  • 融资租赁开具的发票是货物还是租金
  • 建筑安装工程承包合同
  • 拿到一个材料如何加工
  • 软件著作权如何入账
  • 广告宣传费用的计算方法
  • 国税的申报表季报本月数如何填写?
  • 进项发票已经抵扣怎么做退回处理
  • 劳务费个人所得税税率表2023最新
  • 研发人员工资加计
  • 不开票收入是怎么回事
  • 采购均价怎么计算
  • 增值税专用发票有效期是多长时间
  • 租赁发票多少点
  • 审计报告报备流程
  • mac怎么创建热点
  • 税控专用设备全称是什么
  • 怎么在bios中开启硬件虚拟化
  • 收到工会经费怎样做账
  • 工地安装监控哪个部门管
  • linux命令有啥用
  • 500万元固定资产管理办法
  • Fort Rock Valley Historical Homestead博物馆,俄勒冈 (© Prisma by Dukas Presseagentur GmbH/Alamy)
  • 酒店会计科目及账务处理视频
  • 今日冬至有什么讲究吗
  • vue组件引入外部js
  • 递延收益会计科目的账务处理
  • 土石方工程的税费缴纳方法
  • 未缴纳的出资款怎样清算
  • 购买研发设备可以直接列入研发开支不
  • 抵押房产的保险费
  • 微擎框架是开源的吗
  • 购销合同交印花税吗怎么交
  • 偿还银行贷款利息计算
  • 税率变更对企业的影响
  • 一般纳税人附加税减半征收政策2023
  • 无形资产175加计扣除例题
  • 普通发票为什么只能领一张
  • 使用积分换取物的软件
  • 电子承兑到期怎么收款
  • 三项费用合计包括哪些
  • 现金存入银行凭证怎么写
  • 客户退货不退赠品怎么办
  • 服务类企业主要经营范围
  • 货已经收到未收到怎么办
  • 日记账对方科目代表什么意思
  • 报关单的运费没填怎么办
  • 设立明细账的目的
  • centos6.4下mysql5.7.18安装配置方法图文教程
  • 在数据库中对数据表进行生成的是
  • 将Sublime Text 2固定到Ubuntu启动器的方法
  • pd虚拟机安装安卓系统
  • 比较常见的成语有哪些
  • 电脑任务管理器磁盘100%是什么意思
  • 如何修改windows默认语言
  • ubuntu10.04 root的帐户启用方法
  • win10 20h2 微软账户
  • Visual Studio 2013 Tools for Unity安装目录,Visual Studio 2013 Tools.unitypackage
  • js中事件的三要素
  • .android
  • 【新功能】“回调特性”的使用教程:
  • python嵌套语句
  • 沈阳税务局兑奖中心在哪
  • 国家税务总局发票查验平台网络异常
  • 软件即征即退软件是什么
  • 上饶二手房契税
  • 土地增值税分期清算条件?
  • 设备抵扣增值税
  • 普通发票每个月有限制吗
  • 中山火炬开发区建设发展有限公司
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设