You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by "Thom-x (via GitHub)" <gi...@apache.org> on 2025/02/06 15:42:13 UTC
[PR] fix: do not log complete stream. [cxf]
Thom-x opened a new pull request, #2258:
URL: https://github.com/apache/cxf/pull/2258
Log the hashCode instead of toString to avoid dumping all the file content in memory and in log because of https://github.com/apache/cxf/blob/main/core/src/main/java/org/apache/cxf/io/CachedOutputStream.java#L423 This cause OOM on our app.
--
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: dev-unsubscribe@cxf.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix: do not log complete stream causing OOM [cxf]
Posted by "reta (via GitHub)" <gi...@apache.org>.
reta commented on code in PR #2258:
URL: https://github.com/apache/cxf/pull/2258#discussion_r1945126028
##########
core/src/main/java/org/apache/cxf/io/DelayedCachedOutputStreamCleaner.java:
##########
@@ -119,7 +119,7 @@ private void clean(Collection<DelayedCloseable> closeables) {
final DelayedCloseable next = iterator.next();
try {
iterator.remove();
- LOG.warning("Unclosed (leaked?) stream detected: " + next.closeable);
+ LOG.warning("Unclosed (leaked?) stream detected: " + next.closeable.hashCode());
Review Comment:
Thank you @Thom-x , this was certainly not expected ...
--
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: dev-unsubscribe@cxf.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix: do not log complete stream causing OOM [cxf]
Posted by "reta (via GitHub)" <gi...@apache.org>.
reta merged PR #2258:
URL: https://github.com/apache/cxf/pull/2258
--
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: dev-unsubscribe@cxf.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org