Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x000000077ff80000, 1431830528, 0

启动程序报错:

[linux@hw-sh-dmz-ecard-coupon-04 apache-tomcat-7.0.75]$ bin/shutdown.sh
Using CATALINA_BASE: /home/linux/fingerlink/tomcat/apache-tomcat-7.0.75
Using CATALINA_HOME: /home/linux/fingerlink/tomcat/apache-tomcat-7.0.75
Using CATALINA_TMPDIR: /home/linux/fingerlink/tomcat/apache-tomcat-7.0.75/temp
Using JRE_HOME: /home/linux/fingerlink/jdk1.7.0_75/jre
Using CLASSPATH: /home/linux/fingerlink/tomcat/apache-tomcat-7.0.75/bin/bootstrap.jar:/home/linux/fingerlink/tomcat/apache-tomcat-7.0.75/bin/tomcat-juli.jar
Java HotSpot™ 64-Bit Server VM warning: INFO: os::commit_memory(0x000000077ff80000, 1431830528, 0) failed; error=‘Cannot allocate memory’ (errno=12)

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (malloc) failed to allocate 1431830528 bytes for committing reserved memory.

An error report file with more information is saved as:

/home/linux/fingerlink/tomcat/apache-tomcat-7.0.75/hs_err_pid605.log

内存不足: 减少启动程序所需内存,或加大内存,如关闭一些程序。

解决方案:
调整tomca中对jvm内存的配置,因为jvm主要内存就是指jvm堆内存。
cd 到tomcat的/bin目录下,找到catalina.sh文件
vi 命令 vi catalina.sh 进入编辑状态,找到
JAVA_OPTS="-server -Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m "
进行修改。

发布了27 篇原创文章 · 获赞 7 · 访问量 3万+
展开阅读全文

java程序通过JNI调用第三方so文件,运行出现crash,导致程序退出

03-16

在spring boot中使用JNI集成第三方so文件,通过 java -XX:+UnlockDiagnosticVMOptions -XX:+VerifyBeforeGC -XX:+VerifyAfterGC -jar xxxxx.jar运行,在调用第三方so文件时出现crash,导致程序退出 ![图片说明](https://img-ask.csdn.net/upload/201803/16/1521168248_575820.jpg) 下面是crash产生的日志文件hs_err_pid17314.log ``` # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (instanceKlass.cpp:3358), pid=17314, tid=0x00007ff1fe6e6700 # guarantee(false) failed: boom # # JRE version: Java(TM) SE Runtime Environment (8.0_111-b14) (build 1.8.0_111-b14) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.111-b14 compiled mode linux-amd64 compressed oops) # Core dump written. Default location: /data/html/agora/core or core.17314 # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # --------------- T H R E A D --------------- Current thread (0x00007ff22c1c6000): VMThread [stack: 0x00007ff1fe5e6000,0x00007ff1fe6e7000] [id=17324] Stack: [0x00007ff1fe5e6000,0x00007ff1fe6e7000], sp=0x00007ff1fe6e5200, free space=1020k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0xac5c2a] VMError::report_and_die()+0x2ba V [libjvm.so+0x4fbc92] report_vm_error(char const*, int, char const*, char const*)+0x62 V [libjvm.so+0x655582] VerifyFieldClosure::do_oop(unsigned int*)+0x102 V [libjvm.so+0x64b651] InstanceKlass::oop_oop_iterate_nv(oopDesc*, NoHeaderExtendedOopClosure*)+0x91 V [libjvm.so+0x63ea8f] InstanceKlass::oop_verify_on(oopDesc*, outputStream*)+0x5f V [libjvm.so+0x8dd059] MutableSpace::verify()+0x69 V [libjvm.so+0x992486] PSYoungGen::verify()+0x16 V [libjvm.so+0xa8cf6c] Universe::verify(VerifyOption, char const*, bool)+0xcc V [libjvm.so+0x98e6f0] PSScavenge::invoke_no_policy()+0x330 V [libjvm.so+0x98fa81] PSScavenge::invoke()+0x41 V [libjvm.so+0x9467d0] ParallelScavengeHeap::failed_mem_allocate(unsigned long)+0x70 V [libjvm.so+0xac7647] VM_ParallelGCFailedAllocation::doit()+0x97 V [libjvm.so+0xacf125] VM_Operation::evaluate()+0x55 V [libjvm.so+0xacd4fa] VMThread::evaluate_operation(VM_Operation*)+0xba V [libjvm.so+0xacd87e] VMThread::loop()+0x1ce V [libjvm.so+0xacdcf0] VMThread::run()+0x70 V [libjvm.so+0x924ea8] java_start(Thread*)+0x108 VM_Operation (0x00007ff1753d7780): ParallelGCFailedAllocation, mode: safepoint, requested by thread 0x00007ff128001000 ``` 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览