Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6516270
Votes 17
Synopsis Java applet failure with IE7 displaying "Several Java Virtual Machines running" error
Category java_plugin:iexplorer
Reported Against
Release Fixed
State 11-Closed, duplicate of 6622332, bug
Priority: 2-High
Related Bugs 6579181
Submit Date 23-JAN-2007
Description
Tried to run a Java applet embedded in a web site in IE7 browser, returned a Java(TM) Plug-in Fatal Error - "Several Java Virtual machines running in the same process caused an error".

How to Reproduce:
System Environment:
OS: Windows XP Sp2
Browser: IE 7.0
Firewall: Zone Alarm activated
Antivirus - Symantec Antivirus enabled
System RAM: 1 GB
JRE: 1.5.0_10-b03

Type following address in the browser (IE7), for example:
http://www.java.com/en/download/help/testvm.xml

will bring forth error dialog (screen shot attached) with message:
"Java(TM) Plug-in Fatal Error - "Several Java Virtual machines running in the same process caused an error"

On the same system, the applet performed well in Firefox 2.0.0.1.

This bug is always reproducible. If required, system is available for vnc.
Posted Date : 2007-04-18 08:55:36.0
Work Around
Try setting virtual memory as System managed:
Windows XP users -
Start ---> ControlPanel --->System --->advanced ----> Performance(setting) ----> Advanced ----> virtualmemory(change) ---> Click system managed size ---> set then OK, restart your computer
Evaluation
Based on the error message, the bug is very likely to be a duplicate of CR 6528750 and 6433218. JVM need a contiguous piece of virtual address space for the java object heap. When IE has been running for a while, the virtual space gets chopped up and a large contiguos chunk of the space becomes hard to find. The error messages indicate that java plugin either cannot load jvm or cannot allocate java heap.

To verify that the issue is caused by fragmentation of IE address space, we can walk over the entire address space of IE and get information about a contiguous set of pages. 

One short term solution is to provide more user friendly error messages to enhance user experience (see CR 6433218). A long term solutions may be either non-contiguous java heap or a out of proc java plugin (jvm runs in its own process and address space independent of browsers). The latter is in the works.
Posted Date : 2007-05-30 20:48:55.0

There have historically been many reports of problems running applets
when a large -Xmx setting has been specified via the Java Control
Panel. Some bugs where this either definitely is the root cause, or
may be the root cause, include 6359309, 6433218, 6516270, 6528750, and
6559586.

Up until recently, it was not technically feasible to fix this problem
in the Java Plug-In due to its in-process architecture.

In recent months a new implementation of the Java Plug-In has been
developed which changes the execution model of applets. Instead of
running the applets in a JVM embedded in the web browser's process,
they are now run in a separate JVM process which communicates back to
the web browser. The initial checkin of this work done under bug ID
6622332.

This new plug-in solves this problem in two ways. First, since the JVM
is no longer running in the same process as the web browser, the
address space fragmentation problem (which occurs most often in the
Internet Explorer browser) does not interfere with the specification
of a large -Xmx value via the Java Runtime Parameters in the Java
Control Panel.

Second, the new Java Plug-In supports specification of JVM
command-line arguments, including -Xmx, on a per-applet basis via a
new java_arguments parameter in the applet's HTML. This eliminates the
need to do any global setting of this or other parameters in the Java
Control Panel.

The new Java Plug-In is currently available for testing in the early
access builds of the "6uN" release, which can be downloaded from
https://jdk6.dev.java.net/6uNea.html . See
https://jdk6.dev.java.net/testPlugIn.html for instructions on testing
the new Java Plug-In specifically. In 6uN build 10, the new Java
Plug-In is enabled by default upon installation on the Windows
platform; see the testing instructions for installation on the Solaris
and Linux platforms.

Customer feedback so far indicates that the new Java Plug-In
conclusively solves this longstanding problem.

For tracking purposes, this bug is being closed as a duplicate of
6622332, which is the "umbrella" bug covering the initial integration
of the new Java Plug-In.

Note that currently the new plug-in does not change the default heap
size for applets, but we believe that this will be far less of an
issue now that an individual applet can request a particular heap
size. We are open to revisiting this particular issue, in particular
in the context of the new plug-in.

Please try the new Java Plug-In and file any issues against it under
product java, category java_plugin, subcategory plugin2.
Posted Date : 2008-01-17 04:59:51.0
Comments
  
  Include a link with my name & email   

Submitted On 19-MAY-2007
MikeLinham
I get the same problem using Java 1.6.0_01 AND in Firefox.


Submitted On 17-JUL-2007
I also get this problem on both IE7 and Firefox.  It occurred after loading Java 1.6.0; previously no problems.


Submitted On 27-JUL-2007
Same as July 17 submission


Submitted On 02-SEP-2007
Worksmart
hi, got same problem (under description) with IE7


Submitted On 02-SEP-2007
Worksmart
hi,i got the same problem with IE7


Submitted On 12-OCT-2007
Chr.Rasmussen
"Java (TM) Plug-in Fatal Error Several Java Virtual Machines running in the same process caused an error"  
The problem is properly due to the program "Live Messenger", you have to do following to solve the problem

- click at "Tools" in Microsoft Internet Explorer

- click at "Manage Add-ons"

- click at "Add-ons currently loaded in Internet Explorer"

- click at the program "Windows Live Sign in Helper" in the list	

- click at "Disable"

- click at "OK" 

- close all Microsoft Internet Explorer


Submitted On 12-OCT-2007
Chr.Rasmussen
"Java (TM) Plug-in Fatal Error Several Java Virtual Machines running in the same process caused an error"  
The problem is properly due to the program "Live Messenger", you have to do following to solve the problem

- click at "Tools" in Microsoft Internet Explorer

- click at "Manage Add-ons"

- click at "Add-ons currently loaded in Internet Explorer"

- click at the program "Windows Live Sign in Helper" in the list	

- click at "Disable"

- click at "OK" 

- close all Microsoft Internet Explorer


Submitted On 05-NOV-2007
FLYbabyBAMA
OMG!! I have been trying to fix this bug for over 2 weeks, and cannot get it fixed! At least now I know it's not just me. I'm trying the following fix. Hope that's it cuz I am so frustrated with this!


Submitted On 05-MAR-2008
 Chr.Rasmussen's suggestion is working for me!!


Submitted On 03-JUN-2008
Wizzbang_44
I get this error every time I use Google Maps.
Tried all the above fixes to no avail. I now restart I.E. and Java is back( console shows re-loaded policy configuration)
Should I try new plug-in (6uN build 10)?
I am a novice!


Submitted On 30-JUN-2008
roger_lewis
This bug is being fixed in 6u10. Which will be finished late this summer.

You can test the beta from here:
http://java.sun.com/javase/downloads/ea.jsp

Here is the bug in our bug database:
http://bugs.sun.com/view_bug.do?bug_id=6516270

-Roger 



PLEASE NOTE: JDK6 is formerly known as Project Mustang