Jprofiler性能调优注意点

使用Jprofiler进行性能调优的注意点:

1.使用Call Tree视图时,注意 Thread status选择All states,否则不能正常统计JDBC调用时SQL执行时间(等待时间)。

2.Method Statistics视图也是一种非常有用的视图。

3.在64位服务器上调优Websphere时,要注意修改生成的server.xml,将

<jvmEntries xmi:id="JavaVirtualMachine_1282214224085" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" initialHeapSize="1024" maximumHeapSize="1024" runHProf="false" debugMode="false" debugArgs="-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments
="-Xshareclasses:none -agentpath:/opt/jprofiler6/bin/linux-x86 /libjprofilerti.so=port=8849 " disableJIT="false" />

修改为

<jvmEntries xmi:id="JavaVirtualMachine_1282214224085" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" initialHeapSize="1024" maximumHeapSize="1024" runHProf="false" debugMode="false" debugArgs="-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments
="-Xshareclasses:none -agentpath:/opt/jprofiler6/bin/linux-x64 /libjprofilerti.so=port=8849 " disableJIT="false" />

你可能感兴趣的:(sql,linux,SQL Server,socket,websphere)