Conversation
…er LOB blocks Agent-Logs-Url: https://github.com/Open-J-Proxy/ojp/sessions/4e44dba8-a156-4849-a9e0-a75fefe76edd Co-authored-by: rrobetti <7221783+rrobetti@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Open-J-Proxy/ojp/sessions/4e44dba8-a156-4849-a9e0-a75fefe76edd Co-authored-by: rrobetti <7221783+rrobetti@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
rrobetti
May 8, 2026 05:02
View session
|
rrobetti
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Four targeted changes to reduce OJP proxy overhead on latency and throughput.
Virtual threads (was: fixed thread pool of 200)
Every gRPC handler that blocks on JDBC I/O previously pinned a platform thread. With a 20-connection pool, only 20 requests could execute SQL concurrently; the remaining 180 threads were parked. Virtual threads yield during blocking I/O and remove the hard throughput ceiling.
ojp.server.threadPoolSizeis preserved but now logged as ignored.Hot-path
log.info→log.debugSLF4J evaluates arguments at INFO level regardless of whether any appender writes them — string allocation + timestamp construction on every SQL call. Demoted in:
ExecuteQueryAction,ExecuteUpdateActionStartTransactionAction,CommitTransactionAction,RollbackTransactionActionSessionManagerImpl(session create/terminate/LOB lifecycle)CreateLobAction,ReadLobActionJMX stats gated in
ConnectionAcquisitionManagerHikariCP's
getHikariPoolMXBean()methods acquire a brief internal pool lock. The stats-gathering block now only executes when:log.isDebugEnabled(), orNoOpPoolMetrics) is activeUnder default production settings (INFO, no OTel), the lock is never taken on the connection acquisition hot path.
LOB block size 1 KB → 64 KB
CommonConstants.MAX_LOB_DATA_BLOCK_SIZE:1024→65536. A 1 MB BLOB previously required 1,024 block transfers; now 16, proportionally reducing LOB streaming latency and per-block gRPC serialisation overhead.