In this tutorial I'll introduce another tool to help find possible problems in your code, PMD. It will check for empty blocks, unused variables or par...
分类:
其他好文 时间:
2015-05-21 22:11:11
阅读次数:
121
执行Maven Install打包的时候,出现以下错误信息:
Ignoring unused library classes…java.io.IOException: You have to specify ‘-keep’ options for the shrinking step. [proguard] Ignoring unused library classes...java.io.IOE...
分类:
编程语言 时间:
2015-05-12 17:10:01
阅读次数:
221
#define UNUSED(x) ((void)(x))void fun(int noused_arg, int b){ UNUSED(noused_arg); printf("%d\n", b);}上面那个函数因为有一个无用的参数,所以如果没有使用UNUSED那个宏,那么就会产生一个warn.....
分类:
其他好文 时间:
2015-04-29 19:27:57
阅读次数:
86
1、查看所有的kvm虚拟机[root@5201351_kvm ~]# virsh list --all 2、重命名kvm虚拟机最好是将虚拟机先关机,然后再导出其xml文件[root@5201351_kvm ~]# cd /etc/libvirt/qemu[root@5201351_kvm qemu]...
分类:
其他好文 时间:
2015-04-29 00:32:38
阅读次数:
136
今天笔者在对kvm虚拟机进行管理时,使用virsh shutdown命令关闭指定的虚拟机时,发现虽然有如下的提示,但其实虚拟机却一直不会真正的关闭。经过查看virsh命令帮助和上网查询,才得知virsh shutdown命令使用发送acpi指令来控制虚拟机的电源,而kvm虚拟机安装linux系统时默...
分类:
其他好文 时间:
2015-04-28 13:37:03
阅读次数:
214
# virsh version
Compiled against library: libvirt 1.1.1
Using library: libvirt 1.1.1
Using API: QEMU 1.1.1
Running hypervisor: QEMU 1.5.3
cat /etc/redhat-release
Red Hat Enterprise Linux Server...
分类:
其他好文 时间:
2015-04-26 22:53:43
阅读次数:
310
今天在linux服务器上编译安装升级了下qemu,升级命令如下:root@ubuntu:/opt/qemu-2.0.0# ./configure --prefix=/usr/local/ --target-list=x86_64-softmmuroot@ubuntu:/opt/qemu-2.0.0....
分类:
其他好文 时间:
2015-04-22 20:25:31
阅读次数:
434
KVM主机动态更改cpu数量和内存大小关机状态下设置最大cpu颗数和最大内存使用量:#virshlist--all
IdNameState
-------------------------------------------------
-bbotteshutoff
#virshsetvcpusbbotte--maximum4--config
#virshsetmaxmembbotte1048576--config用virsh命令调..
分类:
其他好文 时间:
2015-04-19 19:40:16
阅读次数:
201
#!/usr/bin/env python
'makeFile.py -- create a file'
import os
ls = os.linesep
# get filename
while True:
fname = raw_input('Input an unused file name >')
if os.path.exists(fname):
print "ERROR...
分类:
编程语言 时间:
2015-04-17 15:52:14
阅读次数:
161
下面结合官方文档和实验介绍下HWM:
以下英文摘自11gR2官方文档:
HWM(high water mark):The boundary between used and unused space in a segment.
ORACLE9i之后开始使用自动段空间管理即ASSM,它使用位图来管理段空间的使用情况,如果表空间ASSM,则表空间中的段也是ASSM.
At table c...
分类:
其他好文 时间:
2015-04-16 15:45:13
阅读次数:
242