Home  >  Article  >  Database  >  [MySQL FAQ]系列 — 内存溢出案例

[MySQL FAQ]系列 — 内存溢出案例

WBOY
WBOYOriginal
2016-06-07 16:41:381149browse

在MySQL 5.0版本中,主机名长度超过16个字符,如果启用 统计的话,十有八九会出现内存溢出问题。其实早在2009年已经发现这个问题了,CLIENT_STATISTICS are broken if hostname is 16 chars,同时还会导致内存溢出,其他同事也刚刚在5.0.67版本上证实发现这

在MySQL 5.0版本中,主机名长度超过16个字符,如果启用 统计的话,十有八九会出现内存溢出问题。其实早在2009年已经发现这个问题了,CLIENT_STATISTICS are broken if hostname is > 16 chars,同时还会导致内存溢出,其他同事也刚刚在5.0.67版本上证实发现这个问题。

可以使用Valgrind来检查哪里导致了内存泄露。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn