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 / February 2007

Tip: Looking for answers? Try searching our database.

Heap space with Java Web Start

Thread view: 
aaronfude@gmail.com - 26 Feb 2007 17:59 GMT
Hi,

I have an application which needs quite a bit of heap space. I'm able
to run it as an application with the

-Xmx1000m

flag.

However, when I try it as a Web Start application I get the following
error:

Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError:
Java heap space

I have the following tags in my jnlp file:

<resources>
   <j2se version="1.6.0+" java-vm-args="-esa -Xnoclassgc" maximum-
heap-size="1000m" />
   <j2se version="1.5.0+" java-vm-args="-esa -Xnoclassgc" maximum-
heap-size="1000m" />
 </resources>

So could be going on here?

Thanks!

Aaron Fude
Chris Uppal - 27 Feb 2007 18:22 GMT
> I have the following tags in my jnlp file:
>
>  <resources>
>     <j2se version="1.6.0+" java-vm-args="-esa -Xnoclassgc" maximum-
> heap-size="1000m" />

Try "max-heap-size" instead of "maximum-heap-size".

Or you could try adding a -Xmx argument to the java-vm-args string.

   -- chris


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.