This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Features new in Java 7 and the fly likes CodeCache handling in Java7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Features new in Java 7
Bookmark "CodeCache handling in Java7" Watch "CodeCache handling in Java7" New topic

CodeCache handling in Java7

niku shah
Ranch Hand

Joined: Aug 28, 2006
Posts: 43

We faced CodeCache full with jdk 1.6.x versions for our application and it doesn't get empty automatically. Only when we force it to do in JVM options.

Can we expect better codecache handling in Java 7 version?

Shiv Swaminathan
Ranch Hand

Joined: Jul 21, 2010
Posts: 48

Looks like it has been fixed in later versions, and even if you are using a JDK 1.6 version which has this issue, you might have to configure some custom setting for Code Cache flushing to avoid this exception, because looks like the default code cache memory allocation and the default flushing is not sufficient for your scenario.

I found this article to be a good start to help identify your code cache flushing needs which can avoid your exception:

Reda Mokrane
Ranch Hand

Joined: Jul 25, 2001
Posts: 237
Did you try with a later versions?

niku shah
Ranch Hand

Joined: Aug 28, 2006
Posts: 43
Thanks Shiv and Reda

Specifically we are using 1.6 update 28. I will check with JDK7.

And yes, we have configured JVM options to flush codecache.

I agree. Here's the link:
subject: CodeCache handling in Java7
jQuery in Action, 3rd edition