• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CodeCache handling in Java7

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 48
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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/
 
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you try with a later versions?



-Reda
 
niku shah
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic