There is a configuration named as “jute.maxbuffer” when using zookeeper. This can be set on zookeeper client side or server side. On zookeeper client side, the setting should be lower than that on zookeeper server. If a client gets data bigger than the setting, it will get an error.

There are some related issue.

In order to avoid this errors. Some metrics should be monitored on zookeeper.

  • last_client_response_size or max_client_response_size
    • client_response_size is a response size in bytes from zookeeper server to client.
  • last_proposal_size or max_proposal_size

These values should be lower than jute.maxbuffer. This setting can be set through jvm argument like -Djute.maxbuffer=10485760 (10mb).