Jprofiler 9在离线模式下抛出segemnetation故障

时间:2016-05-20 12:02:44

标签: java performance jvm segmentation-fault jprofiler

我在Windows 7上安装了jprofiler 9,我试图在离线模式下远程配置在远程linux上运行的JVM。

我在JVM参数中添加了JVM参数,如下所示。并将二进制文件和config.xml复制到linux框中。

#Jprofiler Settings
JAVA_OPTIONS="-agentlib:jprofilerti=port=8849,nowait -Xbootclasspath/a:/home/jprofiler9/bin/agent.jar -agentpath:/home/jprofiler9/bin/linux-x64/libjprofilerti.so=offline,id=108,config=/home/.jprofiler9/config.xml  ${JAVA_OPTIONS}"
export JAVA_OPTIONS
export LD_LIBRARY_PATH=/home/jprofiler9/bin/linux-x64:$LD_LIBRARY_PATH

现在,当我启动服务器时,我遇到了分段错误并且它转储核心,输出日志在

之下
JProfiler> Protocol version 50
JProfiler> Using JVMTI
JProfiler> JVMTI version 1.1 detected.
JProfiler> Don't wait for frontend to connect.
JProfiler> 64-bit library
JProfiler> Starting up without initial configuration.
JProfiler> Listening on port: 8849.
JProfiler> Instrumenting native methods.
JProfiler> Can retransform classes.
JProfiler> Can retransform any class.
JProfiler> Native library initialized
JProfiler> Protocol version 50
JProfiler> Using JVMTI
JProfiler> JVMTI version 1.1 detected.
JProfiler> Offline profiling mode.
JProfiler> 64-bit library
JProfiler> Using config file /home/.jprofiler9/config.xml (id: 108)
JProfiler> Listening on port: 8849.
JProfiler> Instrumenting native methods.
JProfiler> Can retransform classes.
JProfiler> Can retransform any class.
JProfiler> Native library initialized
JProfiler> VM initialized
JProfiler> Using sampling (1 ms)
JProfiler> Time measurement: elapsed time
**JProfiler> CPU profiling enabled**
JProfiler> VM initialized
JProfiler> Using sampling (1 ms)
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling enabled
<PATH>/startWebLogic.sh: line 192:  3372 Segmentation fault      (core dumped) ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WLS_POLICY_FILE} ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}
Stopping Derby server...

1)在使用GUI的在线模式下,服务器启动,我可以获取配置文件。但是,当服务器启动时,我将Jprofiler与服务器分离,一旦服务器启动,我再次连接并获取配置文件。 那么在离线模式下是否有分离和附加功能?

请注意,服务器启动堆大小为8GB

2)所以在离线模式下服务器实际上是在尝试捕获CPU配置文件,因为在日志中它表示&#34; JProfiler&gt;启用CPU配置文件&#34; 。这可能是服务器启动失败的原因,分段错误

由于

1 个答案:

答案 0 :(得分:0)

您加载本机代理库两次。这意味着您传递两个-agentlib:jprofilerti参数或另一个加载代理库的-agentpath参数。