Skip to content

Web Async responses force concurrentResult.toString() call [SPR-12253] #16867

Closed
@spring-projects-issues

Description

@spring-projects-issues

Ryszard Perkowski opened SPR-12253 and commented

I've been tracking CPU usage of my application and multiple times have I seen in thread dump whole response object string concatenation (toString() method called) taking a lot of CPU.
That string concatenation is forced by using
WebAsyncManager:348
logger.debug("Concurrent result value [" + concurrentResult + "]");

Since it's only for debug it should not be executed for other logging levels.

Pull request provided:
#652


Affects: 3.2.11, 4.0.7, 4.1 GA

Backported to: 4.0.8, 3.2.12

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions