免费注册 查看新帖 |

ChinaUnix.net

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4425 | 回复: 3

Hp-ux IA64上java程序出现的问题 [复制链接]

论坛徽章:
0
发表于 2008-01-22 15:40 |显示全部楼层
Hp-ux IA64上java程序出现的问题


Exception java.lang.OutOfMemoryError: requested 717496320 bytes for OneContigSpaceCardGeneration::grow_to_reserved. Out of swap space?
Possible causes:
- not enough swap space left, or
- kernel parameter MAXDSIZ is very small.
=> low system memory? commit_memory fails: 2
Java out of memory messages are marked with pid: 1548 in /var/adm/syslog/syslog.log.



查看交换区
bash-2.04$ ./swapinfo -atm
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 3308 788 81% 0 - 1 /dev/vg00/lvol2
reserve - 788 -788
memory 4088 3663 425 90%
total 8184 7759 425 95% - 0 -



查看/var/adm/syslog/syslog.log

Jan 22 14:28:47 HPITA vmunix: Deferred swap reservation failure pid: 1548
Jan 22 14:28:52 HPITA syslog: Java out of memory messages are marked with pid:1548 in /var/adm/syslog/syslog.log.
Jan 22 14:28:53 HPITA syslog: pid: 1548 4Kb 4Kb 4Kb PCT START/ 4Kb DEV NO./ Jan 22 14:28:53 HPITA syslog: pid: 1548 TYPE AVAIL USED FREE USED LIMIT RESERVE PRI FILE NAME
Jan 22 14:28:52 HPITA vmunix: Deferred swap reservation failure pid: 1548
Jan 22 14:28:53 HPITA syslog: pid: 1548 dev 1048576 846798 201778 80.76% 0 - 1 64 (major) 2 (minor)
Jan 22 14:28:53 HPITA syslog: pid: 1548 reserve - 201778 -201778
Jan 22 14:28:53 HPITA syslog: pid: 1548 memory 1046488 898725 147763 85.88%
Jan 22 14:28:53 HPITA syslog: pid: 1548 Dynamic libraries:
Jan 22 14:28:53 HPITA syslog: pid: 1548 /opt/java1.4/bin/IA64W/java
Jan 22 14:28:53 HPITA syslog: pid: 1548 text:0x4000000000000000-0x4000000000024620 data:0x6000000000000000-0x6000000000002268
Jan 22 14:28:53 HPITA syslog: pid: 1548 /usr/lib/hpux64/libpthread.so.1
Jan 22 14:28:53 HPITA syslog: pid: 1548 text:0xc00000000008c000-0xc00000000012ab00 data:0x9fffffffef7ec000-0x9fffffffef7ef350
Jan 22 14:28:53 HPITA syslog: pid: 1548 /usr/lib/hpux64/libdl.so.1
Jan 22 14:28:53 HPITA syslog: pid: 1548 text:0xc000000000375000-0xc000000000377b10 data:0x9fffffffef7eb000-0x9fffffffef7eb068
Jan 22 14:28:53 HPITA syslog: pid: 1548 /usr/lib/hpux64/libc.so.1
Jan 22 14:28:53 HPITA syslog: pid: 1548 text:0xc00000000012b000-0xc0000000003745a0 data:0x9fffffffef7d0000-0x9fffffffef7e2cb8
Jan 22 14:28:53 HPITA syslog: pid: 1548 /opt/java1.4/jre/lib/IA64W/server/libjvm.so
Jan 22 14:28:53 HPITA syslog: pid: 1548 text:0xc000000003c27000-0xc000000004a38f90 data:0x9fffffffef500000-0x9fffffffef736108
Jan 22 14:28:53 HPITA syslog: pid: 1548 /usr/lib/hpux64/libm.so.1
Jan 22 14:28:53 HPITA syslog: pid: 1548 text:0xc000000001890000-0xc0000000019fcc20 data:0x9fffffffef7aa000-0x9fffffffef7aa5d8
Jan 22 14:28:53 HPITA syslog: pid: 1548 /usr/lib/hpux64/librt.so.1
Jan 22 14:28:53 HPITA syslog: pid: 1548 text:0xc00000000155e000-0xc0000000015643e0 data:0x9fffffffef7ad000-0x9fffffffef7ad0d8
Jan 22 14:28:53 HPITA syslog: pid: 1548 /usr/lib/hpux64/libcl.so.1
Jan 22 14:28:53 HPITA syslog: pid: 1548 text:0xc000000002885000-0xc0000000028854bc data:0x9fffffffef7e8000-0x9fffffffef7e8018
Jan 22 14:28:54 HPITA syslog: pid: 1548 /usr/lib/hpux64/libIO77.so.1
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc000000002886000-0xc000000002926a30 data:0x9fffffffef7b0000-0x9fffffffef7bb108
Jan 22 14:28:54 HPITA syslog: pid: 1548 /usr/lib/hpux64/libunwind.so.1
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc0000000019fd000-0xc000000001a46d10 data:0x9fffffffef7be000-0x9fffffffef7bf370
Jan 22 14:28:54 HPITA syslog: pid: 1548 /usr/lib/hpux64/libuca.so.1
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc000000002846000-0xc00000000284de00 data:0x9fffffffef7e3000-0x9fffffffef7e3150
Jan 22 14:28:54 HPITA syslog: pid: 1548 /usr/lib/hpux64/libCsup.so.1
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc000000001840000-0xc00000000188f340 data:0x9fffffffef7c2000-0x9fffffffef7c92b8
Jan 22 14:28:54 HPITA syslog: pid: 1548 /opt/java1.4/jre/lib/IA64W/native_threads/libhpi.so
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc000000004a39000-0xc000000004a53270 data:0x9fffffffef7a2000-0x9fffffffef7a38b8
Jan 22 14:28:54 HPITA syslog: pid: 1548 /opt/java1.4/jre/lib/IA64W/libverify.so
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc000000004a54000-0xc000000004a74c70 data:0x9fffffffef79e000-0x9fffffffef79f7d8
Jan 22 14:28:54 HPITA syslog: pid: 1548 /opt/java1.4/jre/lib/IA64W/libjava.so
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc000000004a75000-0xc000000004abfd10 data:0x9fffffffef79a000-0x9fffffffef79bfb8
Jan 22 14:28:54 HPITA syslog: pid: 1548 /opt/java1.4/jre/lib/IA64W/libzip.so
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc000000004ac0000-0xc000000004aef9b0 data:0x9fffffffef794000-0x9fffffffef795910
Jan 22 14:28:54 HPITA syslog: pid: 1548 /homebk/bw432pq/gzhang/bw432/bin/HP-UX/libnpjavanative4.so
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc000000003b68000-0xc000000003b98f80 data:0x9fffffffef793000-0x9fffffffef793c50
Jan 22 14:28:54 HPITA syslog: pid: 1548 /homebk/bw432pq/gzhang/bw432/bin/HP-UX/libiconv4_dgi6.so
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc00000000951c000-0xc0000000097d2f30 data:0x9fffffffef493000-0x9fffffffef4ffa60
Jan 22 14:28:54 HPITA syslog: pid: 1548 /homebk/bw432pq/gzhang/bw432/bin/HP-UX/libvtlocale4_dgi6.so
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc0000000097d3000-0xc000000009c38980 data:0x9fffffffe8a00000-0x9fffffffe8b6bf98
Jan 22 14:28:54 HPITA syslog: pid: 1548 /homebk/bw432pq/gzhang/bw432/bin/HP-UX/libvtmeta4_dgi6.so
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc000000009c39000-0xc000000009fc40a0 data:0x9fffffffef460000-0x9fffffffef48d568
Jan 22 14:28:54 HPITA syslog: pid: 1548 /usr/lib/hpux64/libstd_v2.so.1
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc000000001578000-0xc00000000183f9e0 data:0x9fffffffef740000-0x9fffffffef74faf8
Jan 22 14:28:54 HPITA syslog: pid: 1548 /opt/java1.4/jre/lib/IA64W/libnet.so
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc0000000052bc000-0xc0000000052e0b70 data:0x9fffffffef737000-0x9fffffffef737810
Jan 22 14:28:54 HPITA syslog: pid: 1548 /usr/lib/hpux64/libnm.so
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc000000002a2f000-0xc000000002a4e240 data:0x9fffffffef492000-0x9fffffffef492458
Jan 22 14:28:54 HPITA syslog: pid: 1548 /usr/lib/hpux64/libnss_files.so.1
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc000000000378000-0xc00000000038c400 data:0x9fffffffef48f000-0x9fffffffef48fcb8
Jan 22 14:28:54 HPITA syslog: pid: 1548 /opt/java1.4/jre/lib/IA64W/librmi.so
Jan 22 14:28:54 HPITA syslog: pid: 1548 text:0xc000000002a2c000-0xc000000002a2c730 data:0x9fffffffef48e000-0x9fffffffef48e088
Jan 22 14:30:35 HPITA vmunix: Deferred swap reservation failure pid: 1548
Jan 22 14:30:35 HPITA vmunix: Deferred swap reservation failure pid: 1548



/usr/sbin/kcusage -t -d maxdsiz
Tunable: maxdsiz
Setting: 1073741824
Time Usage % Usage Id Name
==========================================================================
Mon 01/21/08 15:00 EAT 16777216 1.6
.
.
.
.

.
.
.
.

Tue 01/22/08 14:00 EAT 27004928 2.5
27004928 845 ns-slapd
16777216 2359 midaemon
10625024 878 ns-httpd
2260992 2405 scopeux
1900544 974 c-setup

maxdsiz设置为1G,使用都没超出过3%,所以这个应该没问题吧?



bash-2.04$ /usr/sbin/kcusage -t -d maxdsiz_64bit
Tunable: maxdsiz_64bit
Setting: 4294967296
Time Usage % Usage Id Name
==========================================================================
Mon 01/21/08 15:00 EAT 2345218048 54.6
Mon 01/21/08 16:00 EAT 134754304 3.1
Mon 01/21/08 17:00 EAT 3629056 0.1
Mon 01/21/08 18:00 EAT 3629056 0.1
Mon 01/21/08 19:00 EAT 7143424 0.2
Mon 01/21/08 20:00 EAT 7143424 0.2
Mon 01/21/08 21:00 EAT 7143424 0.2
Mon 01/21/08 22:00 EAT 7143424 0.2
Mon 01/21/08 23:00 EAT 7151616 0.2
Tue 01/22/08 00:00 EAT 7684096 0.2
Tue 01/22/08 01:00 EAT 7856128 0.2
Tue 01/22/08 02:00 EAT 8888320 0.2
Tue 01/22/08 03:00 EAT 8888320 0.2
Tue 01/22/08 04:00 EAT 8888320 0.2
Tue 01/22/08 05:00 EAT 8888320 0.2
Tue 01/22/08 06:00 EAT 8888320 0.2
Tue 01/22/08 07:00 EAT 8888320 0.2
Tue 01/22/08 08:00 EAT 8888320 0.2
Tue 01/22/08 09:00 EAT 513597440 12.0
Tue 01/22/08 10:00 EAT 1900445696 44.2
Tue 01/22/08 11:00 EAT 2463600640 57.4
Tue 01/22/08 12:00 EAT 1755271168 40.9
Tue 01/22/08 13:00 EAT 1778491392 41.4
Tue 01/22/08 14:00 EAT 988946432 23.0


maxdsiz_64bit该值4G
最大曾经达到54%,可有问题?


java的版本
java -version
Warning: -d64 specified in _JAVA_LAUNCHER_OPTIONS
java version "1.4.2.09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.09-050713-03:34)
Java HotSpot(TM) 64-Bit Server VM (build 1.4.2 1.4.2.09-050713-12:56-IA64W IA64W, mixed mode)


请教达人,应该调整系统的那个参数,如何调整,多谢了

论坛徽章:
0
发表于 2008-01-22 15:54 |显示全部楼层
thanks.

论坛徽章:
0
发表于 2008-01-22 16:24 |显示全部楼层
有人么?

论坛徽章:
0
发表于 2008-01-23 10:04 |显示全部楼层
顶起来看看有人知道莫?

谢谢关注
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

ITPUB技术栈

ITPUB技术栈是ITPUB企业打造的垂直于IT领域的知识社群平台,在这里,你既可以是创作者也可以是消费者。如果你的IT生涯丰富多彩,喷薄的个人价值尽可在小栈内体现;如果你渴望找到志同道合的伙伴,拓宽人脉,小栈比跑会场更快。 小栈特色:
1.极高的用户转化率,实现更直接的知识变现;
2.随时随地,刷个朋友圈的时间,实现更长效的信息沉淀;
3.戳痛、难点的专业咨询,更接近成功解决方案的时刻;
4.贴近意见领袖,个人高速成长,迈入更富有价值的人际圈。

----------------------------------------

技术小栈>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP