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

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

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

    waterye

    #

    -XX:+UseConcMarkSweepGC

    系統(tǒng)這兩天出現(xiàn)了長(zhǎng)時(shí)間的full gc, 使用-XX:+UseConcMarkSweepGC后,系統(tǒng)正常
     
    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 閱讀(4762) | 評(píng)論 (0)編輯 收藏

    hashmap引起的high cpu

    系統(tǒng)運(yùn)行一段時(shí)間后老是出現(xiàn)爆cpu的情況,通過(guò)jconsole查看jvm,原來(lái)是hashmap引起的,系統(tǒng)使用hashmap作為cache容器.

    替換成高并發(fā)訪(fǎng)問(wèn)下性能更好的ConcurrentHashMap并調(diào)整實(shí)際的initialCapacity就可以解決爆cpu的問(wèn)題.

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

    ps set screen width

    ps -ef --width 2000

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

    使用iptables限制ip

    iptables -I INPUT -s 66.249.89.147 -j DROP

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

    lftp upload

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

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

    無(wú)題

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

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

    檢測(cè)進(jìn)程是否存在

    #!/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 閱讀(1083) | 評(píng)論 (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

    當(dāng)然使用其他ftp client更加方便

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

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

    date format

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

    posted @ 2007-06-17 01:49 waterye 閱讀(649) | 評(píng)論 (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 閱讀(529) | 評(píng)論 (0)編輯 收藏

    僅列出標(biāo)題
    共18頁(yè): 上一頁(yè) 1 2 3 4 5 6 7 8 9 下一頁(yè) Last 
    主站蜘蛛池模板: 亚洲 欧洲 日韩 综合在线| 亚洲免费网站在线观看| 男男gay做爽爽免费视频| 国产精品久久久久久久久久免费 | 成人超污免费网站在线看| 77777_亚洲午夜久久多人| 三年片在线观看免费观看大全动漫| 亚洲综合日韩久久成人AV| 亚洲阿v天堂在线2017免费| 亚洲熟伦熟女新五十路熟妇| 亚洲AV日韩AV永久无码久久| 亚洲中文字幕久久精品蜜桃| 免费可以在线看A∨网站| 中国china体内裑精亚洲日本| 青青草国产免费久久久下载| 国产成人不卡亚洲精品91 | 亚洲免费日韩无码系列| 亚洲国产亚洲综合在线尤物| 免费大片黄在线观看yw| 亚洲日韩乱码中文无码蜜桃臀网站| 亚洲成年人电影在线观看| aaa毛片视频免费观看| 成年女人毛片免费观看97| 亚洲欧洲无卡二区视頻| 亚洲毛片网址在线观看中文字幕| 国产性生大片免费观看性| 国产精品公开免费视频| 五月天婷婷免费视频| 亚洲人成电影在线天堂| 国产在线精品一区免费香蕉| 成人亚洲网站www在线观看| 国产精品亚洲一区二区麻豆| 国产精品色午夜免费视频| 不卡视频免费在线观看| 亚洲成人网在线播放| 国产精品久久免费视频| 免费观看91视频| 国产亚洲精品观看91在线| 黄色网页在线免费观看| 亚洲综合色丁香麻豆| 亚洲第一视频在线观看免费|