High CPU in regex calls from Hibernate's PatternValidator

Solution Verified - Updated -

Issue

  • JBoss is consuming high CPU and data shows the high CPU consuming threads making the following calls:
java.util.regex.Pattern$GroupHead.match(Pattern.java:4168)
java.util.regex.Matcher.match(Matcher.java:1127)
java.util.regex.Matcher.matches(Matcher.java:502)
org.hibernate.validator.PatternValidator.isValid(PatternValidator.java:28)
org.hibernate.validator.ClassValidator.getPotentialInvalidValues(ClassValidator.java:524)

Environment

  • JBoss Enterprise Application Platform (EAP)
  • Hibernate

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content