littlenoodles <ryampols <at> harris.com> writes:

Ummm.  I guess this was obvious.  I should add calls to
(*env)->ExceptionOccurred(env) after each of my JNI calls.

I guess I can do that for each call, and only unhandled exceptions will be
reported - which I can then log and fail 'nicely'.  Then again, if the JVM
is dumping, will I still be able to call ExceptionOccurred once it's dumped?

Since my exception seems to be an out of memory condition, is there any rule
of thumb for how much memory to allocate to a JVM that's going to be running
POI?  I'm giving it 128MB (which was basically from some boilerplate JVM
startup code somebody was nice enough to post here for me).  Since the old
XLS format only support 64000 rows, I guess there must be some reasonable
upper limit for buffering up a spreadsheet in POI and writing it out.

The spreadsheet in question had 26000 rows by 43 columns.  In CSV format,
it's only 7.4 MB.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to