15-20% Increase in CPU Usage after hibernate upgrade to 5.4.2

Description

We upgraded hibernate version from 4.3.5 to 5.4.2 in our java enterprise web application. There were no other changes made in the application. On executing a load test for one of the features we observed a 15%-20% increase in the cpu usage. We profiled the two application deployments (before and after) twice using jvisualvm and generated flame graphs (using sjk tool) for both the versions. Once the profiling was done for 5 mins and the next run was done for 30 mins. Kindly find the profiling snapshots and the flame graphs attached. Note the flame graphs take ~ 20 mins to open in browser.

Please troubleshoot this further and let us know what could be the root cause

Environment

Hibernate jars are upgraded from version 4.3.5 to 5.4.2.
Linux operating system
Oracle as the database

Attachments

Assignee

Sanne Grinovero

Reporter

AmitS

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

4.3.5

Components

Affects versions

Priority

Critical
Configure