我在哪里可以找到IBM WAS 8.5中的VMARGS

时间:2016-07-26 18:35:01

标签: websphere

我已安装IBM WAS 8.5在启动期间,我可以在控制台中看到

<?xml version="1.0" ?>
<verbosegc xmlns="http://www.ibm.com/j9/verbosegc" version="R26_Java626_SR2_20120322_1722_B106210_CMPRSS">
<initialized id="1" timestamp="2016-07-26T11:55:01.392">
  <attribute name="gcPolicy" value="-Xgcpolicy:gencon" />
  <attribute name="maxHeapSize" value="0x60000000" />
  <attribute name="initialHeapSize" value="0x60000000" />
  <attribute name="compressedRefs" value="true" />
  <attribute name="compressedRefsDisplacement" value="0x0" />
  <attribute name="compressedRefsShift" value="0x0" />
  <attribute name="pageSize" value="0x1000" />
  <attribute name="requestedPageSize" value="0x1000" />
  <attribute name="gcthreads" value="12" />
  <attribute name="numaNodes" value="0" />
  <system>
    <attribute name="physicalMemory" value="17100500992" />
    <attribute name="numCPUs" value="12" />
    <attribute name="architecture" value="amd64" />
    <attribute name="os" value="Windows 7" />
    <attribute name="osVersion" value="6.1" />
  </system>
  <vmargs>
    <vmarg name="-Xoptionsfile=C:\Program Files (x86)\IBM\WebSphere\AppServer\java\jre\bin\compressedrefs\options.default" />
    <vmarg name="-Xlockword:mode=default,noLockword=java/lang/String,noLockword=java/util/MapEntry,noLockword=java/util/HashMap$Entry,noLockword..." />
    <vmarg name="-Xlockword:noLockword=java/lang/invoke/MethodType" />
    <vmarg name="-Xlockword:noLockword=java/lang/invoke/MethodHandle" />
    <vmarg name="-Xlockword:noLockword=java/lang/invoke/CollectHandle" />
    <vmarg name="-Xlockword:noLockword=java/lang/invoke/ConstructorHandle" />
    <vmarg name="-Xlockword:noLockword=java/lang/invoke/ConvertHandle" />
    <vmarg name="-Xlockword:noLockword=java/lang/invoke/ArgumentConversionHandle" />
    <vmarg name="-Xlockword:noLockword=java/lang/invoke/AsTypeHandle" />
    <vmarg name="-Xlockword:noLockword=java/lang/invoke/ExplicitCastHandle" />
    <vmarg name="-Xlockword:noLockword=ja

... .rest为了简洁而被移除。

这些vmargs设置在哪个文件中?我需要编辑一个vmarg。

谢谢Scott。我遇到了类似下面的问题。

键和值

之间缺少'=',即等号

…..
<vmarg name="-Djava.security.auth.login.config=C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\EbodsMavenSpringWS/properties/wsjaas...." />
    <vmarg name="-Djava.security.policyC:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\EbodsMavenSpringWS/properties/server.policy" />                                       <vmarg name="-Dsun.java.command=com.ibm.wsspi.bootstrap.WSPreLauncher -nosplash -application com.ibm.ws.bootstrap.WSLauncher com.ibm.ws.runt..." />
    <vmarg name="-Dsun.java.launcher=SUN_STANDARD" />
    <vmarg name="_port_library" value="000007FEF4267A40" />
    <vmarg name="_bfu_java" value="000007FEF4268FD8" />
    <vmarg name="_org.apache.harmony.vmi.portlib" value="00000000002C0930" />
  </vmargs>
</initialized>


Insufficient Java 2 security permissions to start the process!
java.security.policy = null
CodeSource for bootstrap.jar = ProtectionDomain
CodeSource=CodeSource, url=file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/lib/bootstrap.jar, <no certificates>
ClassLoader=sun.misc.Launcher$AppClassLoader@c630ab9f
<no principals>

1 个答案:

答案 0 :(得分:0)

您要查找的文件是server.xml。您可以在配置文件夹中的以下位置找到它。

C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\EbodsMavenSpringWS\config\cells\<CELL_NAME>\nodes\<NODE_NAME>\servers\<SERVER_NAME>\server.xml

使用文本编辑器打开server.xml,找到&#39; jvmEntries&#39; ID。它应该像下面给出的例子。

<jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="true" verboseModeJNI="false" initialHeapSize="1280" maximumHeapSize="2048" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments="-Xdisableexplicitgc -Djava.awt.headless=true"> </jvmEntries>

您的JVM参数应列在genericJvmArguments部分下。修改值并启动服务器。

附加说明:已将WAS安装到程序文件(x86)&#39;文件夹,您将需要一个具有管理员权限的帐户来运行服务器。