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 2008

Tip: Looking for answers? Try searching our database.

JRE 1.6 update 5 - IE fatal error with -Xmx256M parameter

Thread view: 
Sylvain - 13 Mar 2008 11:52 GMT
Hi !

I manage a web service with an applet. To easy some memory consuming
actions, i have added a -Xmx256M parameter to the execution parameter of my
current JRE (and i've done it for some of my customers). It has been working
fine for monthes.

I have installed the lastest JRE release this morning and since that, it's
impossible to start the applet with IE7 (it works fine with Firefox) : i get
the following error : "unable to load the java framework" (translation from
french written message).
And just after closing IE, i get a readonly memory error of iexplore.exe.

I work on Windows XPsp2 well updated (last yesterday).

Does anybody has this error ? Is this a JRE's bug ? Or do i have to set
another parameter ?

Thank you for your help.

Best regards

Sylvain Caillet
Thomas Kellerer - 13 Mar 2008 12:10 GMT
Sylvain, 13.03.2008 11:52:
> Hi !
>
> I manage a web service with an applet. To easy some memory consuming
> actions, i have added a -Xmx256M parameter to the execution parameter of my
> current JRE (and i've done it for some of my customers). It has been working
> fine for monthes.

Isn't that supposed to be a lowercase "m": -Xmx256m
Andrew Thompson - 13 Mar 2008 12:26 GMT
On Mar 13, 10:10 pm, Thomas Kellerer <YQDHXVLMU...@spammotel.com>
wrote:
> Sylvain, 13.03.2008 11:52:
..
> > ...added a -Xmx256M parameter...
>
> Isn't that supposed to be a lowercase "m": -Xmx256m

According to the docs*, either is OK.  OTOH,
since we are possibly in 'bug territory', I'd
sure give the alternative a spin.

* <http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/
java.html#options>
(OK that's solaris, but..)
"-Xmxn
Specify the maximum size, in bytes, of the memory allocation pool.
This value must a multiple of 1024 greater than 2MB. Append the letter
k or K to indicate kilobytes, or m or M to indicate megabytes. ..."

As an aside, the wording of the JNLP spec.
for the launch files memory requirements is
not worded as clearly.  I read it wrong and
for many months believed that the only
allowable letters were lower case.

--
Andrew T.
PhySci.org
Andrew Thompson - 13 Mar 2008 12:16 GMT
...
> I manage a web service with an applet.

My deepest condolences.  Applets are a PITA.

> ...To easy some memory consuming
> actions,

Like what?  Downloading half the records in the DB?
Quite a lot can be achieved within the standard 64
meg provided.

Now, I am unable to proivide information on
exactly what IE's prblem is, applets seem to
sprout another bug in some browser or other
every other week (you might scan the bug DB
for recent additions), but was just interested
to find out if this applet *really* needs a
browser wrapped around it.  Could your clients
deal with a free floating applet?  Is there
any JS/Java interaction in this applet?

If those answers are 'yes', then 'no', you
might be able to solve this quite easily using
webstart.  Not only can the launch file be
configured to specify a memory requirement,
but JWS launched applets get around many of
the bugs that affect applets with a (mostly
useless) browser wrapped around them.

--
Andrew T.
PhySci.org


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.