Article View: borland.public.jbuilder.java.swing
Article #11211Re: memory leak in JDK 1.1.2 plug-in(urgent and importent)
From: Wido Riezebos
Date: Mon, 28 Jun 1999 00:00
Date: Mon, 28 Jun 1999 00:00
177 lines
7890 bytes
7890 bytes
This is a multi-part message in MIME format. ------=_NextPart_000_0073_01BEC1B2.47006420 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I don't know of any (new) memory leaks in 1.2.2 but what is important is = that you remove any listeners, and (with data-aware components) you set = the datasets to null in your frame closing event. If you don't the J(Internal)Frame can not be gc'd Wido =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D WTJ. Riezebos, w.riezebos@itude.com Genimen BV, www.genimen.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Khurram Shakir <kshakir@prosys.com.pk> wrote in message = news:7jopf7$8jn30@forums.borland.com... I developed the whole web based project using Swing 1.1.1 and used JDK = 1.1.2 plug for deploying it in the web. but when in the final testing, I found severe memory leaks in Plugin = 1.1.2 when I reload my applet 9 times there is out of memory error.(Actually = I popup the JFrame from the applet, I dispose that frame in its = destroying event) I tried the same thing with using Internet Explorer 4.0 VM atleast 50 = times and every thing is working fine. it means that there is some = problem in plugin. I visit the web site of sun and see this issue in Bug prade, but Sun = claim that it is fixed and closed. but we have no new version of plug-in = so what can I do now. I have second alternative to use JDK plugin 1.2.1 instead of JDK = plugin 1.1.2, but it has also one severe problem if user in Windows 95/98 uses non default cursor(e.g. Plus theme = cursor) lightweight components don't update and the application looks = very buggy. Sun also claimed that it is fixed but not new version = available.(I am waiting for JDK 1.2.2 plugin hope fully its work fine) its means that for the time being there is no single plateform = available for sun, to use Java Swing applets in internet(both 1.1 and = 1.2 has bugs) If I forget plugin and use browser native VM then the applet size is = about 2MB this is certainly unexpectable for client. WHAT CAN I DO FOR THIS PROBLEM, JUST THROGH JAVA AWAY FROM MY DESKTOP = AND OUR COMPANY AND ALSO LOOSE OUR 4 MONTHS PROJECT HARDSHIP. OR WAITING = FOR MAIRICAL. I am waiting for your people reply.... and suggestion to overcome this = problem --=20 Khurram Shakir Java Developer Progressive Systems(Pvt.) Limited kshakir@prosys.com.pk=20 ICQ # : 17135971 =20 =20 ------=_NextPart_000_0073_01BEC1B2.47006420 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT size=3D2>I don't know of any (new) memory leaks in 1.2.2 but = what is=20 important is that you remove any listeners, and (with data-aware = components) you=20 set the datasets to null in your frame closing event.</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>If you don't the J(Internal)Frame can not be = gc'd</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>Wido</FONT></DIV> <DIV><FONT=20 size=3D2><BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D<BR>WTJ.=20 Riezebos, <A=20 href=3D"mailto:w.riezebos@itude.com">w.riezebos@itude.com</A><BR>Genimen = BV, =20 <A=20 href=3D"http://www.genimen.com">www.genimen.com</A><BR>=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV> <BLOCKQUOTE=20 style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: = 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> <DIV>Khurram Shakir <<A=20 href=3D"mailto:kshakir@prosys.com.pk">kshakir@prosys.com.pk</A>> = wrote in=20 message <A=20 = href=3D"news:7jopf7$8jn30@forums.borland.com">news:7jopf7$8jn30@forums.bo= rland.com</A>...</DIV> <DIV>I developed the whole web based project using Swing 1.1.1 and = used JDK=20 1.1.2 plug for deploying it in the web.</DIV> <DIV>but when in the final testing, <FONT color=3D#800000>I found = severe memory=20 leaks in Plugin 1.1.2</FONT></DIV> <DIV>when I reload my applet 9 times there is out of memory = error.(Actually I=20 popup the JFrame from the applet, I dispose that frame in its = destroying=20 event)</DIV> <DIV>I tried the same thing with using Internet Explorer 4.0 VM = atleast 50=20 times and every thing is working fine. it means that there is some = problem in=20 plugin.</DIV> <DIV>I visit the web site of sun and see this issue in Bug prade, but = Sun=20 claim that it is fixed and closed. but we have no new version of = plug-in so=20 what can I do now.</DIV> <DIV> </DIV> <DIV>I have second alternative to use JDK plugin 1.2.1 instead of JDK = plugin=20 1.1.2, but it has also one severe problem</DIV> <DIV>if user in Windows 95/98 uses non default cursor(e.g. Plus theme = cursor)=20 lightweight components don't update and the application looks very = buggy. Sun=20 also claimed that it is fixed but not new version available.(I am = waiting for=20 JDK 1.2.2 plugin hope fully its work fine)</DIV> <DIV> </DIV> <DIV><FONT color=3D#0000ff>its means that for the time being there is = no single=20 plateform available for sun, to use Java Swing applets in = internet(both 1.1=20 and 1.2 has bugs)</FONT></DIV> <DIV>If I forget plugin and use browser native VM then the applet size = is=20 about 2MB this is certainly unexpectable for client.</DIV> <DIV> </DIV> <DIV><STRONG>WHAT CAN I DO FOR THIS PROBLEM, JUST THROGH JAVA AWAY = FROM MY=20 DESKTOP AND OUR COMPANY AND ALSO LOOSE OUR 4 MONTHS PROJECT HARDSHIP. = OR=20 WAITING FOR MAIRICAL.</STRONG></DIV> <DIV> </DIV> <DIV>I am waiting for your people reply.... and suggestion to overcome = this=20 problem<BR><STRONG>-- <BR>Khurram Shakir<BR>Java = Developer<BR>Progressive=20 Systems(Pvt.) Limited<BR><A=20 href=3D"mailto:kshakir@prosys.com.pk">kshakir@prosys.com.pk</A> = <BR>ICQ # :=20 17135971</STRONG></DIV> <DIV> </DIV> <DIV><STRONG></STRONG> </DIV> <DIV> </DIV> <DIV><STRONG></STRONG> </DIV></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_0073_01BEC1B2.47006420--
Technical Details
Message-ID:
<7l8k96$n5o12@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7jopf7$8jn30@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,15f046c702f19127 X-Google-Attributes: gid111d45,public From: "Wido Riezebos" <[REMOVE_THIS]w.riezebos@itude.com> Subject: Re: memory leak in JDK 1.1.2 plug-in(urgent and importent) Date: 1999/06/28 Message-ID: <7l8k96$n5o12@forums.borland.com> X-Deja-AN: 494894956 References: <7jopf7$8jn30@forums.borland.com> X-Priority: 3 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0073_01BEC1B2.47006420" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing