M
Mark
Hi all,
I have this java applet that shows 3D objects in a browser. The applet
interacts with javascript, users can choose objects for viewing by
clicking on a hyperlink.
At the moment I use frames in my webpages (e.g.
www.smorf.nl/frames360.html), I didn't want to have to reload the
applet all the time. Since I don't like frames, I'm rebuilding my
website without them. This is going quite well, the only downside is
that users will have to load new pages, and so do a applet reload, now
and then. Not much of a problem really, but unfortunately, in Firefox,
doing a couple of quick reloads crashes the applet, I get an error
like:
"Exception in thread "Thread-2252" java.lang.OutOfMemoryError: Java
heap space".
This is the output (edited) of the java console:
------------------------------------------------
Java Plug-in 1.5.0_03
Using JRE version 1.5.0_03 Java HotSpot(TM) Client VM
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Cookie service is not available - use cache to determine "Cookie"
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Cookie service is not available - use cache to determine "Cookie"
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Exception in thread "Thread-2252" java.lang.OutOfMemoryError: Java
heap space
------------------------------------------------
Every time the applet loads, it writes the string "Smorf 2.11.06
17-11-2005" to the console. What the cookie messages are doing here, i
can't understand. I don't do anything with cookies.
I tried this in IE (with Microsoft's VM), no crashes, although the
applet performance definitely decreases
In Opera 8.5 also get a OutOfMemoryError after about 20 reloads.
Before that happens, I get null pointer exceptions. Other than that
the applet seems to work fine, of course until it crashes on the
OutOfMemoryError.
I have never had this problem in the frames version.
If my own code is the problem I don't know how to solve it. Java has
automatic garbage collection, right?
If you could help me find out what the problem/solution could be, that
would be great.
thanks, Mark.
My system:
Windows 2000 SP4, IE 6.0 with SP1 and the MS JVM, Opera 8.5, Firefox
1.5.
I have this java applet that shows 3D objects in a browser. The applet
interacts with javascript, users can choose objects for viewing by
clicking on a hyperlink.
At the moment I use frames in my webpages (e.g.
www.smorf.nl/frames360.html), I didn't want to have to reload the
applet all the time. Since I don't like frames, I'm rebuilding my
website without them. This is going quite well, the only downside is
that users will have to load new pages, and so do a applet reload, now
and then. Not much of a problem really, but unfortunately, in Firefox,
doing a couple of quick reloads crashes the applet, I get an error
like:
"Exception in thread "Thread-2252" java.lang.OutOfMemoryError: Java
heap space".
This is the output (edited) of the java console:
------------------------------------------------
Java Plug-in 1.5.0_03
Using JRE version 1.5.0_03 Java HotSpot(TM) Client VM
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Cookie service is not available - use cache to determine "Cookie"
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Cookie service is not available - use cache to determine "Cookie"
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Smorf 2.11.06 17-11-2005
Exception in thread "Thread-2252" java.lang.OutOfMemoryError: Java
heap space
------------------------------------------------
Every time the applet loads, it writes the string "Smorf 2.11.06
17-11-2005" to the console. What the cookie messages are doing here, i
can't understand. I don't do anything with cookies.
I tried this in IE (with Microsoft's VM), no crashes, although the
applet performance definitely decreases
In Opera 8.5 also get a OutOfMemoryError after about 20 reloads.
Before that happens, I get null pointer exceptions. Other than that
the applet seems to work fine, of course until it crashes on the
OutOfMemoryError.
I have never had this problem in the frames version.
If my own code is the problem I don't know how to solve it. Java has
automatic garbage collection, right?
If you could help me find out what the problem/solution could be, that
would be great.
thanks, Mark.
My system:
Windows 2000 SP4, IE 6.0 with SP1 and the MS JVM, Opera 8.5, Firefox
1.5.