hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor Xu (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HBASE-11420) ThriftServer (version 1) may crash on OOME
Date Tue, 01 Jul 2014 03:54:24 GMT

     [ https://issues.apache.org/jira/browse/HBASE-11420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Victor Xu resolved HBASE-11420.
-------------------------------

    Resolution: Duplicate

HBASE-11052 is a better solution, so just close this issue.

> ThriftServer (version 1) may crash on OOME
> ------------------------------------------
>
>                 Key: HBASE-11420
>                 URL: https://issues.apache.org/jira/browse/HBASE-11420
>             Project: HBase
>          Issue Type: Bug
>          Components: Thrift
>    Affects Versions: 0.98.2
>         Environment: hadoop-cdh5, hbase-0.98.2, thrift-0.9.0
>            Reporter: Victor Xu
>         Attachments: HBASE-11420.patch
>
>
> When using ThriftServer as a gateway for php & c/c++ applications, I found it very
easy to crash of OOME. I analyzed the jprof file and found that the ThriftServer had a 1.2G
size byte array before it crashed. It seems to be a memory leak. But when did it happen? I
checked the huge byte array and realized that it was a HTTP request string. That means a request
in protocols other than Thrift may cause memory allocation exception. 
> We cound easily recur the bug by wget/curl the ThriftServer. And we can check the memory
usage infomation using TOP command.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message