2023-01-20 291
我的申请正在经历生产现金.
碰撞转储表示已在gctaskthread
中发生了sigsegv
它使用JNI,因此可能有一些记忆损坏的来源,尽管我无法确定.
我该如何调试这个问题 – 我虽然做-xx:onerror …但是我不确定是什么帮助我调试.
另外,你们中的一些人可以给出一个关于JNI代码如何使用Sigsegv崩溃
的具体示例
编辑:
OS:Suse Linux Enterprise Server 10(x86_64)
vm_info:Java热点(TM)64位服务器VM(11.0-B15)用于Linux-AMD64 JRE(1.6.0_10-B33),建于9月26日,2008年9月26日01:10:29,由” Java_re”,由GCC 3.2 .2(Suse Linux)
编辑:
问题在我们禁用超线程后停止发生,任何想法吗?
JNI代码中的错误可能以多种方式发生:
The program crashes during execution of a native method (most common).
The program crashes some time after returning from the native method, often during GC (not so common).
Bad JNI code causes deadlocks shortly after returning from a native method (occasional).
如果您认为自己对用户编写的本机代码和JVM之间的相互作用有疑问(即JNI问题),则可以运行诊断功能来帮助您检查JNI过渡.调用这些诊断;启动JVM时指定-XCHECK:JNI选项.
-XCHECK:JNI选项激活JNI功能围绕JNI功能的一组包装函数.包装器功能对传入参数执行检查.这些检查包括:
Whether the call and the call that initialized JNI are on the same thread.
Whether the object parameters are valid objects.
Whether local or global references refer to valid objects.
Whether the type of a field matches the Get<Type>Field or Set<Type>Field call.
Whether static and nonstatic field IDs are valid.
Whether strings are valid and non-null.
Whether array elements are non-null.
The types on array elements.
pls阅读以下链接
http://publib.boulder.ibm.com/infocenter/javasdk/v5r0/index.jsp?topic=/com.ib.ibm.java.diaostics.50/html/html/jni_debug.html/jni_debug.html
http://www.oracle.com/technetwork/java/javase/clopts-139448.html#gbmtq
使用Valgrind.这听起来像是记忆腐败.输出将是冗长的,但如果可能的话,请尝试将报告隔离到JNI库.
由于故障线程似乎是GCTASKTHREAD,您是否尝试过启用verbose:gc并分析输出(最好使用诸如武士等图形工具等)?检查HS_ERR文件后,您是否可以隔离特定的LIB?
另外,您能否提供有关导致问题以及是否容易再现的更多信息?
以上所述是小编给大家介绍的如何调试jvm GCTaskThread的SIGSEGV?,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对77isp云服务器技术网的支持!
原文链接:https://77isp.com/post/26013.html
=========================================
https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。
数据库技术 2022-03-28
网站技术 2022-11-26
网站技术 2023-01-07
网站技术 2022-11-17
Windows相关 2022-02-23
网站技术 2023-01-14
Windows相关 2022-02-16
Windows相关 2022-02-16
Linux相关 2022-02-27
数据库技术 2022-02-20
抠敌 2023年10月23日
嚼餐 2023年10月23日
男忌 2023年10月22日
瓮仆 2023年10月22日
簿偌 2023年10月22日
扫码二维码
获取最新动态