重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
[root@localhost handle_tomcat_status]# cat handle.sh #!/bin/sh awk '/Free memory:/{print "Free memory: " $4}' a.txt awk '/Total memory:/{print "Total memory: " $8}' a.txt awk '/Max memory:/{print "Max memory: " $12}' a.txt for n in 'Eden Space' 'Survivor Space' 'Tenured Gen' 'Code Cache' 'Compressed Class Space' 'Metaspace' do awk -F"($n)+" '/Eden Space/{ print $2}' a.txt |awk -v name="$n" -F'[()]+' '{print name ": " $5 " "$7 " "$9 " "$11}' done html内容:
成都创新互联专注于图木舒克企业网站建设,响应式网站,商城网站开发。图木舒克网站建设公司,为图木舒克等地区提供建站服务。全流程按需搭建网站,专业设计,全程项目跟踪,成都创新互联专业和态度为您提供的服务curl http://tomcat:s3cret@192.168.10.12:8080/manager/status?JSON=true/manager
Server Status
Manager List Applications HTML Manager Help Manager Help Complete Server Status
Server Information Tomcat Version JVM Version JVM Vendor OS Name OS Version OS Architecture Hostname IP Address Apache Tomcat/7.0.53 1.8.0_91-b14 Oracle Corporation Linux 2.6.32-431.el6.x86_64 amd64 localhost 127.0.0.1
JVM
Free memory: 27.21 MB Total memory: 58.00 MB Max memory: 928.00 MB
Memory Pool Type Initial Total Maximum Used Eden Space Heap memory 16.00 MB 16.00 MB 256.00 MB 10.50 MB (4%) Survivor Space Heap memory 2.00 MB 2.00 MB 32.00 MB 0.82 MB (2%) Tenured Gen Heap memory 40.00 MB 40.00 MB 640.00 MB 19.45 MB (3%) Code Cache Non-heap memory 2.43 MB 6.62 MB 240.00 MB 6.49 MB (2%) Compressed Class Space Non-heap memory 0.00 MB 2.12 MB 1024.00 MB 1.95 MB (0%) Metaspace Non-heap memory 0.00 MB 18.37 MB -0.00 MB 17.73 MB "ajp-bio-8009"
Max threads: 200 Current thread count: 0 Current thread busy: 0
Max processing time: 0 ms Processing time: 0.0 s Request count: 0 Error count: 0 Bytes received: 0.00 MB Bytes sent: 0.00 MB
Stage Time B Sent B Recv Client (Forwarded) Client (Actual) VHost Request P: Parse and prepare request S: Service F: Finishing R: Ready K: Keepalive
"http-bio-8080"
Max threads: 200 Current thread count: 10 Current thread busy: 1
Max processing time: 166 ms Processing time: 0.552 s Request count: 47 Error count: 6 Bytes received: 0.00 MB Bytes sent: 0.27 MB
Stage Time B Sent B Recv Client (Forwarded) Client (Actual) VHost Request S 1 ms 0 KB 0 KB 192.168.10.12 192.168.10.12 192.168.10.12 GET /manager/status?JSON=true HTTP/1.1 R ? ? ? ? ? ? R ? ? ? ? ? ? R ? ? ? ? ? ? P: Parse and prepare request S: Service F: Finishing R: Ready K: Keepalive
Copyright © 1999-2014, Apache Software Foundation 另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
分享题目:tomcatstatushtml内容处理awk-创新互联
网站路径:http://cqcxhl.com/article/jiipo.html其他资讯