利用 Eclipse 开发基于 OSGi 的 Bundle 应用
how Eclipse resolve plug-in problems using OSGi Equinux Framework
other good links:
how Eclipse resolve plug-in problems using OSGi Equinux Framework
other good links:
日子︰10月18日
巧克力︰手卷杜芙球(Hand-Rolled Truffle)
成份︰加入焦糖的巧克力杜芙球,面层铺上淡味可可粉
特性︰桀骜难顺
生日占卜︰你喜欢自由自在的生活,为自己计划将来,从不假手他人你也要处于主导地位,不喜受人约束,为了达到目的,毫不掩饰自己的野心,只要能成王称后,就算没有报酬也在所不惜。如此看来,你只是追求虚荣,领略一下被重视的感觉,并非真正的野心家。
巧克力蜜语︰只要得到了你想得到的东西,其它的也就变得平凡。
really???!!! !
fi yuo cna raed tihs, yuo hvae a sgtrane mnid, too.Cna yuo raed tihs? Olny 55 plepoe tuo fo 100 anc.
i cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno’t mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghitpclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter byistlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt! if you can raed tihs forwrad it.
If you can read this, your brain is 50% faster than those who can’t
因为一如既往的不正确的打字习惯,我的手腕神经性的疼了1个小时。一下子变成了左撇子。
我想,如果有那么一天我不能打字了,怎么办。。。
吃饭的时候,xiaoyan说有个6几年的人面世,几个部门多说太老了,不想要,
我想,我到了35岁的时候我能做什么,是不是也是这样的结局。。。
AIX:
vmstat 5 5 for sigle CPU;
topas -P for multi CPU;
Solaris: vmstat 5 5, check 5 times every 5sec
Other platforms: top / free -m/b
$ whereis kmtune
kmtune: /usr/sbin/kmtune /usr/share/man/man1m.Z/kmtune.1m
$ /usr/sbin/kmtune |grep max_thread_proc
kmtune is a wrapper script which exists for compatibility reasons only.
The underlying command used is ‘kctune’. New or modified scripts or
procedures should use kctune directly.
About to execute: kctune
max_thread_proc 1024 1024 Immed
$
default for 64bit machine: max_thread_proc 64 64
To be continued….
1: 使用top指令.
top指令是按cpu占用率排序的,如果想一次获得所有进程的快照,使用命令
top -n [最大进程数] -f 输出到文件,比如top -n 1000 -f topsnapshot.log
top指令输出内存的统计信息包括
Memory: 2614368K (2249100K) real, 5838616K (5264696K) virtual, 113028K free Page# 1/1
其中没有括号起来的是总数,括号括起来的部分是活动进程使用的内存数,free则是真实空闲的物理内存数.
进程信息的列包括
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
和内存相关的只有SIZE和RES
SIZE:任务的代码加上数据再加上栈空间的大小。
RES:任务使用的物理内存的总数量
要检查进程是否有内存泄露,和实际占用的内存大小,看RES列即可.
这里要说下,在HP-UX系统下,top的内存大小显示是不准的-_-
2:检查共享内存占用的内存容量
使用ipcs -m -b命令,-m表示检查共享内存,-b表示输出每个内存的字节数,得到的共享内存信息输出列包括:
T ID KEY MODE OWNER GROUP SEGSZ
SEGSZ列则是字节数.把每列相加则是共享内存占用的内存总数.
3: 调整内核动态高速缓冲区参数
HP-UX某些型号的服务器运行的时候需要几乎1G的内存维持系统运行,比如作为设备缓冲什么的.
可以用kmtune命令检查内核配置参数,动态高速缓冲区参数dbc_min_pct 和 dbc_max_pct参数表示一个高速缓冲区允许的可用内存的最小和最大百分比,dbc_max_pct的缺省值是50,一般设置为10即可.
4:在HP-UX上还可以使用glance
glance是个很强的工具,可以清楚的看到内存的情况,当然它不是免费的。
Powered by WordPress