Your POI code could be optimized for memory usage. POI has problems
with memory leaks, but these problems are fixable with
experimentation. String handling is a place to look for optimization.
In my experience, a suboptimal arrangement of the POI code could be
the difference between creating a file in less than a second and
crashing the entire server.

The XML format works well and I have used it successfully, but it
isn't perfect. The main problem is that Excel 2007 throws up a warning
dialog box when you try to open an Excel 2003 XML file saying that the
content doesn't match the file extension. This is annoying and
unacceptable to some people and I don't believe there is any fix while
still retaining the Excel 2003 XML file format. The official fix
involves a registry change on the computer of the person opening the
file. This issue also applies for HTML opened in Excel. There is no
denying that the XML format is substantially easier to work with than
POI and doesn't have any RAM issues. There are other problems with
that file format, but the Excel 2007 issue that is the most noticeable
one.

There are alternatives to POI that produce native Excel for you.
Check out this page:
http://www.carehart.org/cf411/

Also maybe check the latest FAQU. http://www.fusionauthority.com/quarterly/

If you haven't already done so, try searching the list archive to see
if your specific question has already been answered.

Good luck,
Mike Chabot

On Tue, Dec 2, 2008 at 10:49 PM, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> I do pretty much everything with the XML format anymore.  Just send it
> with an xls extension and you're set. It's a native workbook with full
> control over everything, it's just not binary.  Users will never know
> the difference.
>
> cheers,
> barneyb
>
> On 12/2/08, Craigsell <[EMAIL PROTECTED]> wrote:
>> We currently have a CFMX7 application that uses Jakarta POI HSSF to
>> create
>> excel spreadsheets from a query.  We initially chose POI because we
>> wanted a
>> higher degree of control over cell formatting (currency, date, etc)
>> than
>> what we could get in CFReport.  The problem is that POI is eating
>> memory.  A
>> two thousand row 24 column spreadsheet which saves out at 771kb
>> takes over
>> 120mb of memory during creation and is bringing our server down when
>> we get
>> multiple requests.
>>
>> We were looking for alternatives to POI.  I found JExcel but I
>> couldn't find
>> any data to see if it was better on memory usage than POI.  I
>> suspect it
>> won't be but....   I am also contemplating creating XML spreadsheets
>> which I
>> can send to the user zipped to compensate for the bigger size.  I've
>> done
>> that before but I just would prefer the user to get an xls workbook
>> rather
>> than an xml one.
>>
>> Anyone have any experience with JExcel and how it compares to POI
>> HSSF?  Or
>> another alternative I hadn't considered?
>>
>> Thanks!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316138
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to