Return-Path: X-Original-To: apmail-poi-user-archive@www.apache.org Delivered-To: apmail-poi-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7B7A4C96 for ; Fri, 27 May 2011 05:19:09 +0000 (UTC) Received: (qmail 98538 invoked by uid 500); 27 May 2011 05:19:09 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 98523 invoked by uid 500); 27 May 2011 05:19:09 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 98515 invoked by uid 99); 27 May 2011 05:19:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2011 05:19:08 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rsharma@modeln.com designates 74.125.149.238 as permitted sender) Received: from [74.125.149.238] (HELO na3sys009aog115.obsmtp.com) (74.125.149.238) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2011 05:18:59 +0000 Received: from mail-iy0-f180.google.com ([209.85.210.180]) (using TLSv1) by na3sys009aob115.postini.com ([74.125.148.12]) with SMTP ID DSNKTd80LZZy/dppC256AXbVUIYIiqVqSnxA@postini.com; Thu, 26 May 2011 22:18:38 PDT Received: by mail-iy0-f180.google.com with SMTP id 40so1782394iyf.11 for ; Thu, 26 May 2011 22:18:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.18.220 with SMTP id x28mr1730015iba.185.1306473517342; Thu, 26 May 2011 22:18:37 -0700 (PDT) Received: by 10.231.184.2 with HTTP; Thu, 26 May 2011 22:18:37 -0700 (PDT) Date: Fri, 27 May 2011 10:48:37 +0530 Message-ID: Subject: Reducing the memory usage by POI From: Rohit Sharma To: user@poi.apache.org Content-Type: multipart/alternative; boundary=00032556417ee8df4d04a43b1130 X-Virus-Checked: Checked by ClamAV on apache.org --00032556417ee8df4d04a43b1130 Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm using POI for writing "xls and xlsx" documents. Although using the BigGridDemo example I can reduce the memory requirement for creating xlsx documents. But I can't figure out a way to reduce the memory requirement while writing a xls document. While writing a xls sheet with around 60K rows with 250 columns and increasing the size of my jvm I have avoided the "out of memory" exception. But still this operations takes a lot of memory; is there any way to write a xls file by streaming the data ? -- Thanks --00032556417ee8df4d04a43b1130--