momo-jun commented on code in PR #17004:
URL: https://github.com/apache/pulsar/pull/17004#discussion_r940873542


##########
site2/docs/client-libraries-java.md:
##########
@@ -168,7 +168,7 @@ You can set the client memory allocator configurations 
through Java properties.<
 |---|---|---|---|---
 `pulsar.allocator.pooled` | String | If set to `true`, the client uses a 
direct memory pool. <br /> If set to `false`, the client uses a heap memory 
without pool | true | <li> true </li> <li> false </li> 
 `pulsar.allocator.exit_on_oom` | String | Whether to exit the JVM when OOM 
happens | false |  <li> true </li> <li> false </li>
-`pulsar.allocator.leak_detection` | String | Service URL provider for Pulsar 
service | Disabled | <li> Disabled </li> <li> Simple </li> <li> Advanced </li> 
<li> Paranoid </li>
+`pulsar.allocator.leak_detection` | String | The leak detection policy for 
Pulsar bytebuf allocator. <li> **Disabled**: No leak detection and no overhead. 
</li> <li> **Simple**: Instruments 1% of the allocated buffer to track for 
leaks. </li> <li> **Advanced**: Instruments 1% of the allocated buffer to track 
for leaks, reporting stack traces of places where the buffer was used. </li> 
<li> **Paranoid**: Instruments 100% of the allocated buffer to track for leaks, 
reporting stack traces of places where the buffer was used. Introduce very 
significant overhead. </li> | Disabled | <li> Disabled </li> <li> Simple </li> 
<li> Advanced </li> <li> Paranoid </li>

Review Comment:
   ```suggestion
   `pulsar.allocator.leak_detection` | String | The leak detection policy for 
Pulsar bytebuf allocator. <li> **Disabled**: No leak detection and no overhead. 
</li> <li> **Simple**: Instruments 1% of the allocated buffer to track for 
leaks. </li> <li> **Advanced**: Instruments 1% of the allocated buffer to track 
for leaks, reporting stack traces of places where the buffer is used. </li> 
<li> **Paranoid**: Instruments 100% of the allocated buffer to track for leaks, 
reporting stack traces of places where the buffer is used and introduces a 
significant overhead. </li> | Disabled | <li> Disabled </li> <li> Simple </li> 
<li> Advanced </li> <li> Paranoid </li>
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to