哪里可以在server.xml中添加-Djavax.net.debug =所有这些都在debugArgs中的jvmEntries中? [英] Where exactly in server.xml can I add -Djavax.net.debug=all is it in the jvmEntries in the debugArgs?
问题描述
我想添加以下JVM参数以在IBM WebSphere 6中获取更详细的日志
I wanted to add the following JVM arguments to get more detailed logs in IBM WebSphere 6
-Djavax.net.debug=all
我应该将它添加到 genericJvmArguments
或 debugArgs
选项。
更具体来说我应该只是编辑 server.xml
或使用管理控制台。
Should I add it to the genericJvmArguments
or the debugArgs
option.
More specifically should I just edit the server.xml
or use admin console.
推荐答案
我建议您使用管理控制台,而不是编辑 server.xml
。
I suggest you use the admin console rather than edit the server.xml
.
在管理控制台中,您将:
In the admin console you will:
- 导航到
服务器>应用服务器> ServerName>服务器基础设施:Java和流程管理>过程定义> Java虚拟机>自定义属性>新的
- 使用属性名称
javax.net.debug
作为您将使用的值true
(在配置WebSphere的所有示例中,您应该使用值true
,但Java文档使用的值为all
而不是在这个IBM技术说明
- navigate to
Servers > Application Servers > ServerName > Server Infrastructure: Java and Process Management > Process Definition > Java Virtual Machine > Custom Properties > New
- Use property name
javax.net.debug
and as a value you will usetrue
(In all examples I have seen when configuring WebSphere you should use the valuetrue
but Java documentation use the valueall
instead. More about it in this IBM technote
现在,如果您更喜欢在server.xml中执行此操作,您可以将其设置为 genericJvmArguments
,如此IBM技术说明
Now if you prefer to do it in your server.xml anyway, you would set it in genericJvmArguments
as described in this IBM technote
另一方面,WebSphere Application Server v6和v6.1已经在很久以前达到了其支持的终止,你应该真正研究升级到一个更新的版本。
On another note, WebSphere Application Server v6 and v6.1 has reached their end of support a long time ago. You should really look into upgrading to a more current version.
- IBM software support lifecycle - WebSphere Application Server 6.0.x
- IBM software support lifecycle - WebSphere Application Server 6.1.x
这篇关于哪里可以在server.xml中添加-Djavax.net.debug =所有这些都在debugArgs中的jvmEntries中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!