String.substring performance degraded after moving from JDK 6 to JDK 7

Solution Verified - Updated -

Issue

  • Our application has some parser or serializer making heavy use of String.substring. This worked fine on JDK 6. But we recently migrated to JDK 7 and performance is severely degraded. GC logging shows GCs are happening much more frequently now on JDK 7.

Environment

  • Java

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.