??xml version="1.0" encoding="utf-8" standalone="yes"?>福彩快乐12:BlogJava - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/ivanwan/自由的力量,自由的生活?/description>zh-cnMon, 10 Dec 2018 13:23:34 GMTMon, 10 Dec 2018 13:23:34 GMT60centos rabbitmq - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/ivanwan/archive/2015/07/03/426029.htmlivaneeoivaneeoFri, 03 Jul 2015 12:25:00 GMT//www.ot7t.com.cn/ivanwan/archive/2015/07/03/426029.html//www.ot7t.com.cn/ivanwan/comments/426029.html//www.ot7t.com.cn/ivanwan/archive/2015/07/03/426029.html#Feedback0//www.ot7t.com.cn/ivanwan/comments/commentRss/426029.html//www.ot7t.com.cn/ivanwan/services/trackbacks/426029.htmlcurl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash

rabbitmq.config 

[{rabbit, [{cluster_partition_handling, autoheal},{loopback_users, []}]}].



ivaneeo 2015-07-03 20:25 发表评论
]]>
centos startup script - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/ivanwan/archive/2015/07/03/426026.htmlivaneeoivaneeoFri, 03 Jul 2015 12:06:00 GMT//www.ot7t.com.cn/ivanwan/archive/2015/07/03/426026.html//www.ot7t.com.cn/ivanwan/comments/426026.html//www.ot7t.com.cn/ivanwan/archive/2015/07/03/426026.html#Feedback0//www.ot7t.com.cn/ivanwan/comments/commentRss/426026.html//www.ot7t.com.cn/ivanwan/services/trackbacks/426026.html#!/bin/sh

#

# Startup script for ovirt-agent

#

# chkconfig: 2345 85 20

# description: ovirt-agent

# processname: ovirt-agent

# pidfile: /var/run/tomcat.pid # config:# Source function library.

. /etc/rc.d/init.d/functions

# Source networking configuration.

. /etc/sysconfig/network

# Check that networking is up.

export OVIRT_AGENT_HOME=/opt/ovirt-agent

[ -f $OVIRT_AGENT_HOME/bin/startServer.sh ] ||?exit 0 [ -f $OVIRT_AGENT_HOME/bin/stopServer.sh ] ||?exit 0

# See how we were called.

case "$1" in

start)

# Start daemon.

        echo ?"Starting OVirt-agent: "

        $OVIRT_AGENT_HOME/bin/startServer.sh $OVIRT_AGENT_HOME/conf/ovirt-agent.xml

        touch /var/lock/subsys/ovirt-agent

;;

stop)

# Stop daemons.

        echo ?"Shutting down OVirt-agent: "

        $OVIRT_AGENT_HOME/bin/stopServer.sh

        rm -f /var/lock/subsys/ovirt-agent

;;

restart)

        $0 stop

        $0 start

;;

status)

status ovirt-agent

;;

*)

echo "Usage: $0 {start|stop|restart|status}"

exit 1

esac

exit 0



ivaneeo 2015-07-03 20:06 发表评论
]]>
ningbo install - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/ivanwan/archive/2015/06/13/425667.htmlivaneeoivaneeoSat, 13 Jun 2015 07:09:00 GMT//www.ot7t.com.cn/ivanwan/archive/2015/06/13/425667.html//www.ot7t.com.cn/ivanwan/comments/425667.html//www.ot7t.com.cn/ivanwan/archive/2015/06/13/425667.html#Feedback0//www.ot7t.com.cn/ivanwan/comments/commentRss/425667.html//www.ot7t.com.cn/ivanwan/services/trackbacks/425667.htmldocker run -d --name="srdesktop1" -p 80:80 -p 8888:8888 -p 8000:8000 -p 8009:8009 -p 8081:8081 -p 3306:3306 -p 19:22 -v /opt/html:/var/www -v /opt/ssdb-master:/opt/ssdb-master -v /opt/apache-tomcat-7.0.53:/opt/apache-tomcat-7.0.53 -v /opt/mule-standalone-3.5.0:/opt/mule-standalone-3.5.0 -v /opt/mysql/data:/var/lib/mysql --privileged=true srdesktop/ubuntu /bin/bash  -exec 'echo -e "192.168.1.93 ovirt-manage\n192.168.1.243 www.engin.org\n127.0.0.1 localhost" >> /etc/hosts && service mysql start  && /etc/init.d/guaca start && rm /opt/ssdb-master/var/ssdb.pid && /opt/ssdb-master/ssdb-server  -d /opt/ssdb-master/ssdb.conf && export JAVA_HOME=/opt/jdk1.7.0_51 && export PATH=$JAVA_HOME/bin:$PATH && /opt/apache-tomcat-7.0.53/bin/startup.sh && service apache2 start && /opt/mule-standalone-3.5.0/bin/mule'


pptpsetup --create myvpn --server www.yanlingyi.com --username vpn --password mincloud --encrypt --start


docker run -d --name="rabbitmq_master" -p 200:22 -p 25672:25672 -p 15672:15672 -p 5672:5672 -p 4369:4369 -p 10051:10050 rabbitmq/ubuntu /bin/bash -exec 'echo -e "172.20.20.10 rabbitmq-master\n127.0.0.1 localhost" > /etc/hosts && /etc/init.d/rabbitmq-server start && /usr/sbin/sshd -D'


# Generated by ovirt-engine installer
#filtering rules
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type any -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
#drop all rule
COMMIT



ivaneeo 2015-06-13 15:09 发表评论
]]>
从Java转iOS第一个项目总结 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/ivanwan/archive/2015/05/02/424812.htmlivaneeoivaneeoFri, 01 May 2015 17:29:00 GMT//www.ot7t.com.cn/ivanwan/archive/2015/05/02/424812.html//www.ot7t.com.cn/ivanwan/comments/424812.html//www.ot7t.com.cn/ivanwan/archive/2015/05/02/424812.html#Feedback0//www.ot7t.com.cn/ivanwan/comments/commentRss/424812.html//www.ot7t.com.cn/ivanwan/services/trackbacks/424812.html//www.cocoachina.com/ios/20150417/11595.html

ivaneeo 2015-05-02 01:29 发表评论
]]>
greenvpn - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/ivanwan/archive/2015/04/29/424768.htmlivaneeoivaneeoWed, 29 Apr 2015 11:12:00 GMT//www.ot7t.com.cn/ivanwan/archive/2015/04/29/424768.html//www.ot7t.com.cn/ivanwan/comments/424768.html//www.ot7t.com.cn/ivanwan/archive/2015/04/29/424768.html#Feedback0//www.ot7t.com.cn/ivanwan/comments/commentRss/424768.html//www.ot7t.com.cn/ivanwan/services/trackbacks/424768.htmlhttps://www.igreenjsq.info/user-xianlu.html

ivaneeo 2015-04-29 19:12 发表评论
]]>
hadoop生态圈 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/ivanwan/archive/2015/04/25/424664.htmlivaneeoivaneeoSat, 25 Apr 2015 06:08:00 GMT//www.ot7t.com.cn/ivanwan/archive/2015/04/25/424664.html//www.ot7t.com.cn/ivanwan/comments/424664.html//www.ot7t.com.cn/ivanwan/archive/2015/04/25/424664.html#Feedback0//www.ot7t.com.cn/ivanwan/comments/commentRss/424664.html//www.ot7t.com.cn/ivanwan/services/trackbacks/424664.html//www.csdn.net/article/2014-01-02/2817984-13-tools-let-hadoop-fly
好用的数据工?br />
//blog.itpub.net/7816530/viewspace-1119924/


ivaneeo 2015-04-25 14:08 发表评论
]]>
windows mtu设置 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/ivanwan/archive/2015/04/25/424663.htmlivaneeoivaneeoSat, 25 Apr 2015 05:01:00 GMT//www.ot7t.com.cn/ivanwan/archive/2015/04/25/424663.html//www.ot7t.com.cn/ivanwan/comments/424663.html//www.ot7t.com.cn/ivanwan/archive/2015/04/25/424663.html#Feedback0//www.ot7t.com.cn/ivanwan/comments/commentRss/424663.html//www.ot7t.com.cn/ivanwan/services/trackbacks/424663.html
netsh interface ipv4 set subinterface "本地连接" mtu=1480 store=persistent


ivaneeo 2015-04-25 13:01 发表评论
]]>
ovirt jdk cert - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/ivanwan/archive/2015/04/21/424574.htmlivaneeoivaneeoTue, 21 Apr 2015 09:23:00 GMT//www.ot7t.com.cn/ivanwan/archive/2015/04/21/424574.html//www.ot7t.com.cn/ivanwan/comments/424574.html//www.ot7t.com.cn/ivanwan/archive/2015/04/21/424574.html#Feedback0//www.ot7t.com.cn/ivanwan/comments/commentRss/424574.html//www.ot7t.com.cn/ivanwan/services/trackbacks/424574.html//www.ovirt.org/Java-sdk

ivaneeo 2015-04-21 17:23 发表评论
]]>
mesos调度框架 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/ivanwan/archive/2015/04/15/424426.htmlivaneeoivaneeoTue, 14 Apr 2015 20:49:00 GMT//www.ot7t.com.cn/ivanwan/archive/2015/04/15/424426.html//www.ot7t.com.cn/ivanwan/comments/424426.html//www.ot7t.com.cn/ivanwan/archive/2015/04/15/424426.html#Feedback0//www.ot7t.com.cn/ivanwan/comments/commentRss/424426.html//www.ot7t.com.cn/ivanwan/services/trackbacks/424426.html
//m.blog.csdn.net/blog/ebay/43529401


ivaneeo 2015-04-15 04:49 发表评论
]]>
cpu time to cpu_util - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/ivanwan/archive/2015/04/06/424153.htmlivaneeoivaneeoMon, 06 Apr 2015 07:44:00 GMT//www.ot7t.com.cn/ivanwan/archive/2015/04/06/424153.html//www.ot7t.com.cn/ivanwan/comments/424153.html//www.ot7t.com.cn/ivanwan/archive/2015/04/06/424153.html#Feedback0//www.ot7t.com.cn/ivanwan/comments/commentRss/424153.html//www.ot7t.com.cn/ivanwan/services/trackbacks/424153.html

So now you have:

  • The elapsed wall clock time (this period's time, minus last period's time) Call this X
  • The elapsed process cpu time (this period's time, minus last period's time) Call this Y
  • The number of CPUs. Call this C

The percent utilization will be Y / (X x C) * 100

import java.lang.management.*;
import java.util.concurrent.*;

osx = ManagementFactory.getOperatingSystemMXBean();
cores = osx.getAvailableProcessors(); // Factorial to keep the process busy so we can see some actual activity
factorial = { n -> int fact = 1; int i = 1; while(i <= n) { i++; fact *= i; } return fact; }
long elapsedTime = -1, startTime = -1; long elapsedCpu = -1, startCpu = -1;;
for(i in 0..20) { startTime = System.nanoTime(); startCpu = osx.getProcessCpuTime(); CountDownLatch latch = new CountDownLatch(cores); for(x in 1..cores) { Thread.startDaemon() { factorial(1000000); latch.countDown(); } } latch.await(); elapsedTime = System.nanoTime()-startTime; elapsedCpu = osx.getProcessCpuTime()-startCpu; percUsage = (elapsedCpu / (elapsedTime* cores)) *100; println "Percent Usage:$percUsage %"; }


]]>