General commands

The following commands can be used to gather system information and set specific server properties:

  • Show environment information:
    version
    
  • Show the JNDI context:
    /subsystem=naming:jndi-view
    
  • Show the XML server configuration:
    :read-config-as-xml
    
  • Show the services registered in the container and their statuses:
    /core-service=service-container:dump-services
    
  • Set a system property:
    /system-property=property1:add(value="value")
    
  • Show a system property:
    /system-property=property1:read-resource
    
  • Show all system properties:
    /core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
    
  • Remove a system property:
    /system-property=property1:remove
    
  • Change a socket binding port (for example, the http port):
    /socket-binding-group=standard-sockets/socket-binding=http:write-attribute(name="port", ...

Get WildFly Configuration, Deployment, and Administration - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.