× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Steve,

You must have a faster computer than I do :-) My biggest spreadsheet is 14000 rows and 18 columns, and it takes about 30 minutes. And that's using SXSSF (lower memory footprint of XSSF)

But, anyway... I would go with the newest JVM that you can. Unless you're having problems with jdk60, that's the one I'd use.

-SK



On 6/28/2012 1:56 PM, sjones@xxxxxxxxxxxxxxx wrote:
Scott:

It runs for about 20 minutes - would love for it to run quicker but don't
have any ideas on how to achieve that.

Your tip on looking at the QIBM_RPG_JAVA_PROPERTIES variable led me to our
CL that is called before we build the spread sheets. I found that it was
changed to be pointing to the 64bit of jdk60 - It used to be jdk50/32bit

So I changed it to the following & now my program runs.

ADDENVVAR ENVVAR(JAVA_HOME) +
VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit') +
REPLACE(*YES)

Is there any reason to go back to jdk50 or can I leave it at jdk60?

Steve Jones



From: Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>,
Date: 06/28/2012 02:05 PM
Subject: Re: Using HSSF & getting error
Sent by: rpg400-l-bounces@xxxxxxxxxxxx



I haven't experienced this problem, myself, as I don't create
spreadsheets that large with HSSF. (It must take forever to run!)

But, I do know that it's possible to tweak the amount of memory that
Java allows programs to use in the QIBM_RPG_JAVA_PROPERTIES variable.
Maybe worth try?


On 6/28/2012 12:16 PM, sjones@xxxxxxxxxxxxxxx wrote:
Have been using Scott Klements HSSF programs to create some Excel spread
sheets & has been working great. Today I add 2 new columns to be put on
the spread sheet & when I run the job it blows up with
"java.lang.OutOfMemoryError" The spread sheet has 25 columns & contains
37249 rows. What do I need to do so that I can continue to run this?

Thanks!!
Steve Jones
H-P Products, Inc






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.