High CPU in regex calls from Hibernate's PatternValidator
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
