Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

How to set the java heap space in IntelliJ 5.1 ?!

Thread view: 
Pixelschubser - 13 Mar 2006 10:42 GMT
Hi @ all,

I've got a big problem, and i hope to find some answers here :)

Actually i am trying zu read an Excel-file in Java. That works quit
good, until the file is not too big. I've got a 3 MB Excel file, and it
does not work.

At this point:
HSSFWorkbook wb = new HSSFWorkbook(fs);
i get an error message:org.apache.jasper.JasperException: Java heap
space

So i treid to configure my heap-settings, but i don't know how. In the
IntelliJ manual stands, that i have to click on preferences, but there
is not such an icon anywhere on the screen.

I really don't know what to do. Has anyone an idea ?
Thx a lot.

Regards
Andi
Bart Cremers - 13 Mar 2006 11:00 GMT
You got two options:

- Select "Edit Configurations" in the "Run" menu and add -Xms and -Xmx
options to the VM
 parameters field in the configuration used to run the program.

- Go to the bin directory of your intellij installation
 (C:\Program Files\JetBrains\IntelliJ IDEA 5.1\bin) and alter the
idea.exe.vmoptions file.
 Simply open it in a text editor and increase the sizes.

Bart
Pixelschubser - 13 Mar 2006 11:18 GMT
> You got two options:
>
[quoted text clipped - 8 lines]
>
> Bart

Hi Bart,
Thx a lot - that was a great answer, but it does not work :-)
But why not ?

Have i any possibilitys to watch why i get this error ?

regards
Andi
Bart Cremers - 13 Mar 2006 11:29 GMT
I'm not sure on why it gives that error and I've got to little info to
work on. 3MB doesn't seem to big. It looks like while reading the file
a lot of objects are created and probably some of them should become
available for garbage collection during the read.

Run it using the debugger or look for a profiler to check what's going
on in memory while you run the progam.

Regards,

Bart


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.