This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Features new in Java 7
Bookmark "CodeCache handling in Java7" Watch "CodeCache handling in Java7" New topic
Author

CodeCache handling in Java7

niku shah
Ranch Hand

Joined: Aug 28, 2006
Posts: 41
Hello,

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?

Thanks,
Nikesh
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:
http://blogs.atlassian.com/2012/05/codecache-is-full-compiler-has-been-disabled/


SCEA EE5, CSM, PMP, IBM OOAD with UML, SCDJWS, SCWCD, SCJP 1.5
Reda Mokrane
Ranch Hand

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



-Reda
niku shah
Ranch Hand

Joined: Aug 28, 2006
Posts: 41
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.

-Nikesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CodeCache handling in Java7