File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CodeCache handling in Java7

 
niku shah
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Shiv Swaminathan
Ranch Hand
Posts: 48
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • 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/
 
Reda Mokrane
Ranch Hand
Posts: 237
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try with a later versions?



-Reda
 
niku shah
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic