`
lkj107
  • 浏览: 105074 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

IBM JDK 能不坑吗?

    博客分类:
  • J2EE
阅读更多

写入大文件(>2G)

FileChannel rwChannel =new RandomAccessFile(reportFilePath + reportFileName
				+ generaFileDate + ".TXT", "rw").getChannel();
byte[] a = sb.toString().getBytes();
ByteBuffer wrBuf = rwChannel.map(FileChannel.MapMode.READ_WRITE,POSITION, a.length);
POSITION = POSITION+a.length;
wrBuf.put(a);

 一次写入100,000条数据,笔记本正常(1.GJVM,Jrockit),服务器(4G JVM IBM JDK1.6.0)outofmemory

IBM官网Bug记录:http://www-01.ibm.com/support/docview.wss?uid=swg1IV34570

求不坑。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics