O'Reilly logo

JBoss AS 7 Configuration, Deployment, and Administration by Francesco Marchioni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mod_cluster

Mod_cluster management can be carried out using the following CLI operations:

  • List proxies connected:
    /subsystem=modcluster:list-proxies
    
  • Read proxies info:
    /subsystem=modcluster:read-proxies-info
    
  • Add a proxy to the cluster:
    /subsystem=modcluster:add-proxy(host= CP15-022, port=9999)
    
  • Remove a proxy:
    /subsystem=modcluster:remove-proxy(host=CP15-022, port=9999)
    
  • Add a web context:
    /subsystem=modcluster:enable-context(context=/myapp, virtualhost=default-host)
    
  • Disable a web context:
    /subsystem=modcluster:disable-context(context=/myapp, virtualhost=default-host)
    
  • Stop a web context:
    /subsystem=modcluster:stop-context(context=/myapp, virtualhost=default-host, waittime=50)
    
  • Add a metric:
    /subsystem=modcluster:add-metric(type=heap)
    

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required