<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    waterye

    #

    -XX:+UseConcMarkSweepGC

    系統這兩天出現了長時間的full gc, 使用-XX:+UseConcMarkSweepGC后,系統正常
     
    5.4 The Concurrent Low Pause Collector
    The concurrent low pause collector is a generational collector similar to the serial collector. The tenured generation is collected concurrently with this collector.
    This collector attempts to reduce the pause times needed to collect the tenured generation. It uses a separate garbage collector thread to do parts of the major collection concurrently with the applications threads. The concurrent collector is enabled with the command line option -XX:+UseConcMarkSweepGC. For each major collection the concurrent collector will pause all the application threads for a brief period at the beginning of the collection and toward the middle of the collection. The second pause tends to be the longer of the two pauses and multiple threads are used to do the collection work during that pause. The remainder of the collection is done with a garbage collector thread that runs concurrently with the application. The minor collections are done in a manner similar to the serial collector although multiple threads are used to do the collection. See "Parallel Minor Collection Options with the Concurrent Collector" below for information on using multiple threads with the concurrent low pause collector.
    The techniques used in the concurrent collector (for the collection of the tenured generation) are described at:
    http://research.sun.com/techrep/2000/abstract-88.html


    http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html

    print gc.log
    -verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:+PrintTenuringDistribution

    posted @ 2007-12-28 19:41 waterye 閱讀(4765) | 評論 (0)編輯 收藏

    hashmap引起的high cpu

    系統運行一段時間后老是出現爆cpu的情況,通過jconsole查看jvm,原來是hashmap引起的,系統使用hashmap作為cache容器.

    替換成高并發訪問下性能更好的ConcurrentHashMap并調整實際的initialCapacity就可以解決爆cpu的問題.

    posted @ 2007-12-22 18:26 waterye 閱讀(558) | 評論 (0)編輯 收藏

    ps set screen width

    ps -ef --width 2000

    posted @ 2007-12-14 00:32 waterye 閱讀(324) | 評論 (0)編輯 收藏

    使用iptables限制ip

    iptables -I INPUT -s 66.249.89.147 -j DROP

    posted @ 2007-11-20 00:00 waterye 閱讀(1065) | 評論 (2)編輯 收藏

    lftp upload

    lftp -e "cd /home/root; mirror -R $DIRNAME; quit" -u root,$2 sftp://$1

    posted @ 2007-11-05 22:47 waterye 閱讀(344) | 評論 (0)編輯 收藏

    無題

    周一公司搬家,臨時使用網通的寬帶,可惜公司的服務器放在電信機房.網通連電信實在讓人無法忍受,還好google到netpas,果然好用,試用后注冊成包月用戶(15元/月).哎,上網舒服多了.

    posted @ 2007-08-09 23:11 waterye 閱讀(501) | 評論 (1)編輯 收藏

    檢測進程是否存在

    #!/bin/sh

    while :
    do
        PID=`cat /home/pid.file`
        RUN_FLAG=`ps -p $PID | awk -v var=$PID '$1==var { print "1" }'`
       
        if [ -n "$RUN_FLAG" ] # string is not "null".
          then
            echo 'running' # running
          else
            echo 'kao' # restart process
        fi
       
        sleep 60 # 1 minute
    done

    posted @ 2007-07-09 21:47 waterye 閱讀(1085) | 評論 (0)編輯 收藏

    traditional FTP client upload script

    for f in $UPLOADDIR
    do
    if [ -f $f ]; then
    ftp -n $HOST <<END_SCRIPT
    quote USER $USER
    quote PASS $PASSWD
    ascii
    put ${f##*/}
    END_SCRIPT
    fi
    done

    當然使用其他ftp client更加方便

    http://www.columbia.edu/kermit/ftpscripts.html

    posted @ 2007-06-17 01:53 waterye 閱讀(618) | 評論 (0)編輯 收藏

    date format

    date +%Y-%m-%d
    DIRNAME=$(date +%Y-%m-%d)
    echo $DIRNAME

    posted @ 2007-06-17 01:49 waterye 閱讀(653) | 評論 (0)編輯 收藏

    echo filename

    Given:
    foo=/tmp/my.dir/filename.tar.gz
    We can use these expressions:
    path = ${foo%/*}
    To get: /tmp/my.dir (like dirname)
    file = ${foo##*/}
    To get: filename.tar.gz (like basename)
    base = ${file%%.*}
    To get: filename
    ext = ${file#*.}
    To get: tar.gz

    http://linuxgazette.net/issue18/bash.html

    posted @ 2007-06-17 01:47 waterye 閱讀(531) | 評論 (0)編輯 收藏

    僅列出標題
    共18頁: 上一頁 1 2 3 4 5 6 7 8 9 下一頁 Last 
    主站蜘蛛池模板: 亚洲国产精品免费观看| 男人进去女人爽免费视频国产 | WWW国产亚洲精品久久麻豆| 免费三级毛片电影片| 亚洲精品一区二区三区四区乱码| 亚洲视频在线免费观看| 亚洲AV无码国产精品麻豆天美| 99精品全国免费观看视频..| 国产亚洲人成网站在线观看不卡| a级毛片毛片免费观看永久| 国产亚洲精久久久久久无码| 国产99视频精品免费专区| 久久亚洲AV无码精品色午夜麻豆 | 亚洲AV无码国产在丝袜线观看| 岛国岛国免费V片在线观看| 亚洲人成人77777网站| 午夜不卡久久精品无码免费| 久久久久久久亚洲Av无码| 青娱乐免费视频在线观看| 亚洲熟女精品中文字幕| 免费一看一级毛片人| 精精国产www视频在线观看免费| 人人狠狠综合久久亚洲婷婷| 中文免费观看视频网站| 亚洲国产一区二区三区在线观看| 国产成人综合久久精品免费 | 一区二区三区亚洲| 182tv免费观看在线视频 | 永久免费无码日韩视频| 亚洲国产婷婷六月丁香| 亚洲黄色免费电影| 成人婷婷网色偷偷亚洲男人的天堂| 亚洲国产成人爱av在线播放| 另类免费视频一区二区在线观看 | 日韩a在线观看免费观看| 国产免费高清69式视频在线观看| 无码欧精品亚洲日韩一区| 99久久综合国产精品免费| 日韩久久无码免费毛片软件| 亚洲人成在线影院| 亚洲JIZZJIZZ中国少妇中文|