java - GC overhead limit exceeded when reading large xls file -


when run project in netbeans ide (compiling , testing it), works fine. enables me reading xls file size of 25000 rows , extract infromation above, save them database.

the problem appears when generate installer , deliver it. when install application , run it, obtain error:

java.lang.outofmemoryerror: gc overhead limit exceeded     @ jxl.read.biff.file.read(file.java:217)     @ jxl.read.biff.record.getdata(record.java:117)     @ jxl.read.biff.cellvalue.<init>(cellvalue.java:94)     @ jxl.read.biff.labelsstrecord.<init>(labelsstrecord.java:53)     @ jxl.read.biff.sheetreader.read(sheetreader.java:412)     @ jxl.read.biff.sheetimpl.readsheet(sheetimpl.java:716)     @ jxl.read.biff.workbookparser.getsheet(workbookparser.java:257)     @ com.insy2s.importer.semapexcelimporter.launchimport(semapexcelimporter.java:82)     at//staff 

i user poi libraries got same scenario.

update:

in messages.log file of application, found strange values (i have changed them in netbeans.conf)

input arguments:     -xms24m     -xmx64m     -xx:maxpermsize=256m     -dnetbeans.user.dir=c:\program files\insy2s_semap_app     -djdk.home=c:\program files\java\jdk1.8.0_05     -dnetbeans.home=c:\program files\insy2s_semap_app\platform 

ok, got answer... let's begin beginning.

it true microsoft documents hanlders' libraries need resources not bad cause application running failure thought @ beginning. in fact, probleme has revealed me weakness , shortage.

because of working netbeans 8.0.2, new property

app.conf

should taken consideration. has needed configure our applications. not possible edit directly increase max permitted memory, have change values in

harness/etc/app.conf

in netbeans installation directory. more details here.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -