当我们编译java分类
时,我遇到了错误使用java版本 java版" 1.7.0_11" Java(TM)SE运行时环境(版本1.7.0_11-b21) Java HotSpot(TM)64位服务器VM(版本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 :(得分:0)
除了将其增加到384m之外,您还可以尝试启用代码缓存刷新它,应该可以工作。
-XX:ReservedCodeCacheSize=384m
-XX:+UseCodeCacheFlushing