2016-04-29 139 views
0

我得到以下错误,当我们编译Java中使用的Java版本 Java版本 “1.7.0_11” 的Java(TM)SE运行时环境归类CodeCahe充满java7

(建立1.7.0_11-B21) 的Java HotSpot(TM)64位服务器虚拟机(内部版本23.6-b04,混合模式)

我试图增加reservedcodeCachesize到80M也不工作。任何建议,这将是非常有用的?

[exec] Java HotSpot(TM) Client VM warning: CodeCache is full. Compiler has been disabled. 
[exec] Java HotSpot(TM) Client VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize= 
[exec] Code Cache [0xf8c00000, 0xf8e60000, 0xfdc00000) 
[exec] total_blobs=1129 nmethods=986 adapters=72 free_code_cache=79503Kb largest_free_block=81411200 
[exec] # 
[exec] # There is insufficient memory for the Java Runtime Environment to continue. 
[exec] # Native memory allocation (malloc) failed to allocate 4092 bytes for char in /export/HUDSON/workspace/jdk7u11-2-build-solaris-sparc-product/jdk7u11/hotspot/src/share/vm/utilities/stack.inline.hpp 
[exec] # An error report file with more information is saved as: 

[exec] Java HotSpot(TM) Client VM warning: CodeCache is full. Compiler has been disabled. 
[exec] Java HotSpot(TM) Client VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize= 
[exec] Code Cache [0xf8c00000, 0xf8e60000, 0xfdc00000) 
[exec] total_blobs=1140 nmethods=997 adapters=72 free_code_cache=79497Kb largest_free_block=81405696 
[exec] Java HotSpot(TM) Client VM warning: CodeCache is full. Compiler has been disabled. 
[exec] Java HotSpot(TM) Client VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize= 
[exec] Code Cache [0xf8c00000, 0xf8e60000, 0xfdc00000) 
[exec] total_blobs=1144 nmethods=1000 adapters=72 free_code_cache=79495Kb largest_free_block=81403392 
[exec] # 
[exec] # There is insufficient memory for the Java Runtime Environment to continue. 
[exec] # Native memory allocation (malloc) failed to allocate 4092 bytes for char in /export/HUDSON/workspace/jdk7u11-2-build-solaris-sparc-product/jdk7u11/hotspot/src/share/vm/utilities/stack.inline.hpp 
[exec] # An error report file with more information is saved as: 
[exec] # /vobs/wran_cm/wran_cm_mom/src/com/ericsson/nms/umts/ranos/wranmom/tmp/momjenkins/O10/mom/xml_4-27-15-52-24/output_jar/hs_err_pid23237.log 
[exec] Java HotSpot(TM) Client VM warning: CodeCache is full. Compiler has been disabled. 
[exec] Java HotSpot(TM) Client VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize= 
[exec] Code Cache [0xf8c00000, 0xf8e58000, 0xfdc00000) 
[exec] total_blobs=1147 nmethods=1005 adapters=72 free_code_cache=79520Kb largest_free_block=81428992 
[exec] # 
[exec] # There is insufficient memory for the Java Runtime Environment to continue. 
[exec] # Native memory allocation (malloc) failed to allocate # 
[exec] # There is insufficient memory for the Java Runtime Environment to continue. 
[exec] # Native memory allocation (malloc) failed to allocate 8192 bytes for card table expansion 
[exec] # An error report file with more information is saved as: 
[exec] # 
[exec] # 
[exec] # There is insufficient memory for the Java Runtime Environment to continue. 
[exec] # Native memory allocation (malloc) failed to allocate 4092 bytes for char in /export/HUDSON/workspace/jdk7u11-2-build-solaris-sparc-product/jdk7u11/hotspot/src/share/vm/utilities/stack.inline.hpp 
[exec] # An error report file with more information is saved as: 
[exec] # 

回答

0

随着它增加到384米,你也可以尝试启用代码缓存刷新它,应该工作。

-XX:ReservedCodeCacheSize=384m 
-XX:+UseCodeCacheFlushing