Search code examples
webspherewebsphere-7

List system properties in WebSphere 7


I have a running instance of WebSphere Application Server 7 and I need to know the current values of Java System Properties.

Is there any way to get this information?

(I would like to know the least intrusive way, so adding a JSP which prints properties is not considered)


Solution

  • I'm able to get specific properties by name via wsadmin scripting, but there doesn't seem to be an equivalent way to list "all" properties.

    This may not help you, but in case anyone has a similar need in the future, here's a couple of Jython commands to retrieve one of the standard System properties.

    jvm = AdminControl.completeObjectName('WebSphere:type=JVM,process=YourServerName,*')
    AdminControl.invoke(jvm,'getProperty','user.timezone')