Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add if (LOG.isDebugEnabled()) in CompressExtension.decompress #5121

Closed
leonchen83 opened this issue Aug 6, 2020 · 3 comments · Fixed by #5123
Closed

Add if (LOG.isDebugEnabled()) in CompressExtension.decompress #5121

leonchen83 opened this issue Aug 6, 2020 · 3 comments · Fixed by #5123
Assignees
Labels

Comments

@leonchen83
Copy link
Contributor

leonchen83 commented Aug 6, 2020

Jetty version
jetty-9.4.x
Java version
java 1.8.u202
Question
jetty should add if (LOG.isDebugEnabled()) in CompressExtension.decompress method befor LOG.debug
we profile memory allocation and found that LOG.debug("Decompress: read 0 {}", toDetail(inflater)); break; cosume some of memory as bellow
2020-08-05-7 29 44

@lachlan-roberts
Copy link
Contributor

Yeah you're right, these debug logs should be guarded with the LOG.isDebugEnabled() check.
I will put up a PR to fix this.

lachlan-roberts added a commit that referenced this issue Aug 6, 2020
…pressExtension

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
lachlan-roberts added a commit that referenced this issue Aug 6, 2020
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@lachlan-roberts lachlan-roberts self-assigned this Aug 6, 2020
@lachlan-roberts
Copy link
Contributor

I'm going to reopen this issue until the PR gets merged.

lachlan-roberts added a commit that referenced this issue Aug 6, 2020
…in WebSocket

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
gregw pushed a commit that referenced this issue Aug 11, 2020
…in WebSocket (#5123)

* Issue #5121 - always use isDebugEnabled() check before logging in CompressExtension

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>

* Issue #5121 - always use isDebugEnabled() check before debug logging

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>

* Issue #5121 - always use isDebugEnabled() check before debug logging in WebSocket

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@janbartel
Copy link
Contributor

Merged for 9.4.32 and above.

@joakime joakime added this to To do in Jetty 9.4.32 via automation Aug 12, 2020
@joakime joakime moved this from To do to Done in Jetty 9.4.32 Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Jetty 9.4.32
  
Done
3 participants