You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by "spmallette (via GitHub)" <gi...@apache.org> on 2025/01/06 17:33:10 UTC

[PR] TINKERPOP-3124 Added custom MessageSizeEstimator to cover Frame [tinkerpop]

spmallette opened a new pull request, #2964:
URL: https://github.com/apache/tinkerpop/pull/2964

   https://issues.apache.org/jira/browse/TINKERPOP-3124
   
   Improved logging around channel pauses. Added new metrics for Gremlin Server around channels and pauses. Added some extra capabilities to the java driver profiling tool.
   
   VOTE +1
   


-- 
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: commits-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] TINKERPOP-3124 Added custom MessageSizeEstimator to cover Frame [tinkerpop]

Posted by "kenhuuu (via GitHub)" <gi...@apache.org>.
kenhuuu commented on code in PR #2964:
URL: https://github.com/apache/tinkerpop/pull/2964#discussion_r1906171115


##########
docs/src/reference/gremlin-applications.asciidoc:
##########
@@ -1273,22 +1274,27 @@ NOTE: Installing Ganglia will include `org.acplt:oncrpc`, which is an LGPL licen
 Regardless of the output, the metrics gathered are the same. Each metric is prefixed with
 `org.apache.tinkerpop.gremlin.server.GremlinServer` and the following metrics are reported:
 
-* `sessions` - The number of sessions open at the time the metric was last measured. For the `UnifiedChannelizer`, each
-request creates a "session", even a so-called "sessionless request", which is basically a session that will only
-execute within the context of that single request.
+* `channels.paused` - The current number of open channels (HTTP and Websocket) that are have their writes to buffer

Review Comment:
   ```suggestion
   * `channels.paused` - The current number of open channels (HTTP and WebSocket) that have their writes to buffer
   ```



-- 
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: commits-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] TINKERPOP-3124 Added custom MessageSizeEstimator to cover Frame [tinkerpop]

Posted by "kenhuuu (via GitHub)" <gi...@apache.org>.
kenhuuu commented on code in PR #2964:
URL: https://github.com/apache/tinkerpop/pull/2964#discussion_r1906171663


##########
docs/src/upgrade/release-3.7.x.asciidoc:
##########
@@ -30,6 +30,28 @@ complete list of all the modifications that are part of this release.
 
 === Upgrading for Users
 
+==== Improved Server Memory Management
+
+A TinkerPop-specific `MessageSizeEstimator` was added to more accurately measure the size of responses being written
+back to the client. With a more accurate measurement, the server is able to better prevent exhaustion of direct memory
+by overly eager channels writing large result sets to slower clients. Overall, this change should help reduce the
+likelihood of the server hitting `OutOfMemoryExceptions` and other performance problems that may appear under certain
+workloads and network conditions.
+
+It is worth nothing that logging around the `writeBufferHighWaterMark` has been modified to include a bit more

Review Comment:
   ```suggestion
   It is worth noting that logging around the `writeBufferHighWaterMark` has been modified to include a bit more
   ```



-- 
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: commits-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] TINKERPOP-3124 Added custom MessageSizeEstimator to cover Frame [tinkerpop]

Posted by "spmallette (via GitHub)" <gi...@apache.org>.
spmallette merged PR #2964:
URL: https://github.com/apache/tinkerpop/pull/2964


-- 
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: commits-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] TINKERPOP-3124 Added custom MessageSizeEstimator to cover Frame [tinkerpop]

Posted by "kenhuuu (via GitHub)" <gi...@apache.org>.
kenhuuu commented on PR #2964:
URL: https://github.com/apache/tinkerpop/pull/2964#issuecomment-2576447826

   VOTE +1


-- 
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: commits-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] TINKERPOP-3124 Added custom MessageSizeEstimator to cover Frame [tinkerpop]

Posted by "xiazcy (via GitHub)" <gi...@apache.org>.
xiazcy commented on PR #2964:
URL: https://github.com/apache/tinkerpop/pull/2964#issuecomment-2581028962

   VOTE +1


-- 
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: commits-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org