WEB开发网
开发学院操作系统Linux/Unix AIX 5L 上的共享库内存占用 阅读

AIX 5L 上的共享库内存占用

 2008-11-10 08:28:28 来源:WEB开发网   
核心提示: 真棒!现在,我们以更简洁的方式显示相同的结果:# cat prev.command.out.txt | sort | uniqautomountddtexecdtgreetdtlogindtsessiondttermdtwmjavaportmapradiusdrdesktoprpc.mou

真棒!现在,我们以更简洁的方式显示相同的结果:

# cat prev.command.out.txt | sort | uniq
   
automountd
dtexec
dtgreet
dtlogin
dtsession
dtterm
dtwm
java
portmap
radiusd
rdesktop
rpc.mountd
rpc.statd
rpc.ttdbserver
ttsession
xmwlm

于是,我们得到了目前正在执行并加载了 libpthreads.a 库的二进制文件的排序列表。请注意,列出的进程只占当时系统中正在运行的进程的一小部分:

# ps -e | wc -l   
   85

接下来,我们看一下每个进程加载 libpthreads.a 的位置:

# ps -e | grep java
34648   - 4:13 java
#
# procmap 34648 | grep libpthreads.a
d0049000     217K read/exec   /usr/lib/libpthreads.a[shr_xpg5.o]
f03e6000     16K read/write   /usr/lib/libpthreads.a[shr_xpg5.o]
d0045000     15K read/exec   /usr/lib/libpthreads.a[shr_comm.o]
f03a3000     265K read/write   /usr/lib/libpthreads.a[shr_comm.o]
#
# ps -e | grep automountd
15222   - 1:00 automountd
25844   - 0:00 automountd
#
# procmap 15222 | grep libpthreads.a
d0049000     217K read/exec   /usr/lib/libpthreads.a[shr_xpg5.o]
f03e6000     16K read/write   /usr/lib/libpthreads.a[shr_xpg5.o]
d0045000     15K read/exec   /usr/lib/libpthreads.a[shr_comm.o]
f03a3000     265K read/write   /usr/lib/libpthreads.a[shr_comm.o]
d10ff000     194K read/exec     /usr/lib/libpthreads.a[shr.o]
f0154000     20K read/write    /usr/lib/libpthreads.a[shr.o]
#
# ps -e | grep portmap       
12696   - 0:06 portmap
34446   - 0:00 portmap
#
# procmap 12696 | grep libpthreads.a
d0045000     15K read/exec   /usr/lib/libpthreads.a[shr_comm.o]
f03a3000     265K read/write   /usr/lib/libpthreads.a[shr_comm.o]
d10ff000     194K read/exec     /usr/lib/libpthreads.a[shr.o]
f0154000     20K read/write    /usr/lib/libpthreads.a[shr.o]
#
# ps -e | grep dtlogin
 6208   - 0:00 dtlogin
 6478   - 2:07 dtlogin
20428   - 0:00 dtlogin
#
# procmap 20428 | grep libpthreads.a
d0045000     15K read/exec   /usr/lib/libpthreads.a[shr_comm.o]
f03a3000     265K read/write   /usr/lib/libpthreads.a[shr_comm.o]
d0049000     217K read/exec   /usr/lib/libpthreads.a[shr_xpg5.o]
f03e6000     16K read/write   /usr/lib/libpthreads.a[shr_xpg5.o]

上一页  1 2 3 4 5 6 7 8 9  下一页

Tags:AIX 共享 内存

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接