指令 asadmin get -m "server.*" 傳回與該伺服器有關的所有監視資料。在部署許多應用程式時,資料的數量非常龐大,可能要花很長的時間才能傳回。用戶端可能逾時,並產生下列用戶端錯誤:
./asadmin get --monitor=true "server.*" I/O Error: Read timed out Command get failed. |
如需更多資訊,請參閱問題報告。
將要傳回至用戶端的資料數量減至最低。
執行 asadmin list -m "server.*" 指令,該指令可傳回頂層元素。
選取需要其詳細資料的頂層元素,並且用它作為篩選器。例如︰
> ./asadmin list -m "server.*" ... server.applications.SPECjAppServer.supplier\.jar.POEnt.bean-cache server.applications.SPECjAppServer.supplier\.jar.POEnt.bean-methods server.applications.SPECjAppServer.supplier\.jar.POEnt.bean-methods. create-int-int-[Lorg\.spec\.jappserver\.supplier\.helper\.ComponentOrder server.applications.SPECjAppServer.supplier\.jar.POEnt.bean-methods. findByPrimaryKey-java\.lang\.Integer server.applications.SPECjAppServer.supplier\.jar.POEnt.bean-methods.generateXml server.applications.SPECjAppServer.supplier\.jar.POEnt.bean-methods.getEJBLocalHome ... >./asadmin get -m "server.applications.SPECjAppServer.supplier\.jar.POEnt.bean-methods.*" ... server.applications.SPECjAppServer.supplier\.jar.POEnt.bean-methods.remove. methodstatistic-name = MethodStatistic server.applications.SPECjAppServer.supplier\.jar.POEnt.bean-methods.remove. methodstatistic-starttime = 1259604209775 ... |