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, 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