アンドロイドアプリでかいてます

14
またまた、ペパボがやってくれました!
自宅のタブレットは、旧バージョンがはいってたのですが、
最新のバージョンでは、ポータルの新着情報も、
簡単に表示できるようになっています!
まぁ、表示だけなら、他社もやってると思いますが、
そこは、ペパボ!!
uiが、洗練されてます!
まずは、いれてみて!!

apachetopいいんじゃない?

0

    apachetopは、apacheの負荷状況とかをつかえそうなので、いれてみた。

    epelからダウンロードしてみた。
    yum install apachetop

    使ってみた感じですが、topコマンドのようにつかえちゃんですね

    下記は、apachetop表示中にhボタンを押したところ

    --------------------------------------------------------------------------------------
    ApacheTop version 0.12.6, Copyright (c) 2003-2004, Chris Elsworth

    ONE-TOUCH COMMANDS
    d          : switch item display between urls/referrers/hosts
    n          : switch numbers display between hits & bytes or return codes
    h or ?     : this help window
    p          : (un)pause display (freeze updates)
    q          : quit ApacheTop
    up/down    : move marker asterisk up/down
    right/left : enter/exit detailed subdisplay mode

    SUBMENUS:
    s:  SORT BY: [the appropriate menu will appear for your display]
            r) requests  R) reqs/sec  b) bytes  B) bytes/sec
            2) 2xx   3) 3xx   4) 4xx   5) 5xx

    t:  TOGGLE SUBDISPLAYS ON/OFF:
            u) urls  r) referrers  h) hosts

    f:  MANIPULATE FILTERS:
            a) add/edit menu c) clear all  s) show active (not done yet)
            a:  ADD FILTER SUBMENU
                    u) to urls  r) to referrers  h) to hosts

    Hit any key to continue:

    --------------------------------------------------------------------------------------


    ヘルプにあるように、nボタンで200系、300系、400系が何件でているのか?
    とか、リクエスト順とか、IP順とかもいける。

    いままで、tailとawkで障害時にリクエストがおおいいIPとか調べてたけど、
    これがあれば、その手の作業が楽になりそうだね!


    ip順とかは、こんな感じで表示するみたい。
    --------------------------------------------------------------------------------------
    last hit: 08:43:01         atop runtime:  0 days, 00:09:36             08:43:09
    All:          461 reqs (   0.8/sec)       3171.6K ( 5648.3B/sec)    7045.0B/req
    2xx:     432 (93.7%) 3xx:      19 ( 4.1%) 4xx:    10 ( 2.2%) 5xx:     0 ( 0.0%)
    R ( 30s):       9 reqs (   0.3/sec)        117.4K ( 4008.5B/sec)      13.0K/req
    2xx:       7 (77.8%) 3xx:       1 (11.1%) 4xx:     1 (11.1%) 5xx:     0 ( 0.0%)

     REQS REQ/S    KB KB/S HOST
        2  0.07   0.6  0.0*88.131.106.6 [88.131.106.6]
        2  0.22  25.8  2.9 ???.107.150.100 [184.107.150.100]
        1  0.03  55.3  1.8 ???.126.176.16 [140.126.176.16]
        1  0.06   1.0  0.1 ???.26.163.200 [122.26.163.200]
        1  0.04   1.3  0.0 ???.142.160.167 [210.172.160.167]
        1  0.05   9.8  0.4 ???.1.206.237 [211.1.206.237]
        1  0.05  23.6  1.1 ???.131.106.3 [88.131.106.3]


    apachetopの確認では、ドMな坊主に協力していただきました!
    http://mod-cband.heteml.jp/blog/の管理人さん、ありがとう!


    parallelをいれてみた

    0

      並列処理が簡単に出来そうなので、paprellを入れてみる


      cd /tmp/
      wget
      http://ftp.gnu.org/gnu/parallel/parallel-20110822.tar.bz2


      bzip2 -d parallel-20110822.tar.bz2
      tar xvf parallel-20110822.tar
      cd parallel-20110822

      ./configure && make && make install


      無事にはいった


      # parallel --help
      Usage:
      parallel [options] [command [arguments]] < list_of_arguments
      parallel [options] [command [arguments]] (::: arguments|:::: argfile(s))...
      cat ... | parallel --pipe [options] [command [arguments]]

      -j n           Run n jobs in parallel
      -k             Keep same order
      -X             Multiple arguments with context replace
      --colsep regexp      Split input on regexp for positional replacements
      {} {.} {/} {/.} {#}  Replacement strings
      {3} {3.} {3/} {3/.}  Positional replacement strings

      -S sshlogin    Example: foo@server.example.com
      --trc {}.bar   Shorthand for --transfer --return {}.bar --cleanup
      --onall        Run the given command with argument on all sshlogins
      --nonall       Run the given command with no arguments on all sshlogins

      --pipe         Split stdin (standard input) to multiple jobs.
      --recend str   Record end separator for --pipe.
      --recstart str Record start separator for --pipe.

      See 'man parallel' for details


      1

      calendar

      S M T W T F S
            1
      2345678
      9101112131415
      16171819202122
      23242526272829
      3031     
      << October 2011 >>

      selected entries

      categories

      archives

      recent comment

      recent trackback

      recommend

      links

      profile

      書いた記事数:219 最後に更新した日:2022/09/09

      search this site.

      others

      mobile

      qrcode

      powered

      無料ブログ作成サービス JUGEM