Application Server Solutions for Microsoft IIS and ASP.NET
       solutions   products   partners   company   support   downloads         store
View Interest List Message Details
<< Back to Search Results

Date: 08/26/2005
From: Catherine.Lazatin@ge.com
Subject: RE: [ServletExec] JNI int[] references not being cleaned up by GC

Our application doesn't use Xalan/Xerces or XSL transformations.
I created a simple JSP (included below) and for every 10 accesses, the
memory grows 1MB and doesn't get cleaned up even after 20 minutes.  We
have also run a similar test for a longer period of time (hours) in
which we ran a script that would access a HelloWorld type JSP.  The
server eventually crashed with out of memory errors.  The memory
profiler we are using indicates that there are int[] array objects that
are not being garbage collected because of JNI global references.

- Catherine

-------------------------
<%
int count = 0;
Integer cnt=(Integer)session.getAttribute("count");

if ( cnt == null) {
  session.setAttribute("count",new Integer(0));
} else {
 count = cnt.intValue();
}
%>

<HTML>
<BODY>

<% count++; %>

<H2> Count = <%=count%> </H2>

<%
session.setAttribute("count", new Integer(count));
%>

</BODY>
</HTML>
---------------------------------

-----Original Message-----

From: support@servletexec.com [mailto:support@servletexec.com
<mailto:support@servletexec.com> ] 

Sent: Friday, August 26, 2005 3:05 PM

To: Lazatin, Catherine J (GE Healthcare)

Subject: Re: [Fwd: RE: [Fwd: ServletExec and JNI global references]]



If you request a simple hello servlet or simple hello jsp (which reside
in their own separate, bare-bones webapp), do the int[] objects keep
growing and never go away?

Or does that only occur when you send requests to your webapp?

Matt McGinty

Software Engineer

New Atlanta Communications, LLC

http://www.newatlanta.com <http://www.newatlanta.com/>  


________________________________

From: servletexec-interest-owner@mail.newatlanta.com
[mailto:servletexec-interest-owner@mail.newatlanta.com] On Behalf Of
Rick Bullotta
Sent: Friday, August 26, 2005 7:32 AM
To: servletexec-interest@mail.newatlanta.com
Subject: RE: [ServletExec] JNI int[] references not being cleaned up by
GC



Are any of your applications using Xalan/Xerces?  We have seen this in
the past, particularly if you use the XPath or CachedXPath capabilities
of Xalan or when doing XSL transformations.



________________________________

From: servletexec-interest-owner@mail.newatlanta.com
[mailto:servletexec-interest-owner@mail.newatlanta.com] On Behalf Of
Lazatin, Catherine J (GE Healthcare)
Sent: Friday, August 26, 2005 7:38 AM
To: servletexec-interest@mail.newatlanta.com
Subject: [ServletExec] JNI int[] references not being cleaned up by GC





   Hello.  We have been profiling memory usage and have been noticing
that JNI references are not being cleaned up in ServletExec even after
45 min.  We are seeing a large growth 2-3MB of int[] arrays with each
request that goes through ServletExec.  (We are using IIS 5.1 and
ServletExec ISAPI 5.0.)  Has anyone else seen this issue?



   - Catherine


-------------------------------------------------------------------------
ServletExec-Interest. For archives and unsubscribe instructions, visit:

    http://www.newatlanta.com/servletexec-interest.jsp

Message Thread
Date Subject Author
08/26/2005 RE: [ServletExec] JNI int[] references not being cleaned up by GC Rick.Bullotta@lighthammer.com
08/26/2005 RE: [ServletExec] JNI int[] references not being cleaned up by GC Catherine.Lazatin@ge.com
08/29/2005 Re: [ServletExec] JNI int[] references not being cleaned up by GC matt@newatlanta.com
08/29/2005 RE: [ServletExec] JNI int[] references not being cleaned up by GC Catherine.Lazatin@ge.com
08/29/2005 Re: [ServletExec] JNI int[] references not being cleaned up by GC matt@newatlanta.com
08/29/2005 RE: [ServletExec] JNI int[] references not being cleaned up by GC Catherine.Lazatin@ge.com
08/29/2005 Re: [ServletExec] JNI int[] references not being cleaned up by GC matt@newatlanta.com
08/29/2005 RE: [ServletExec] JNI int[] references not being cleaned up by GC Catherine.Lazatin@ge.com
09/08/2005 Re: [ServletExec] JNI int[] references not being cleaned up by GC matt@newatlanta.com
08/26/2005 [ServletExec] JNI int[] references not being cleaned up by GC Catherine.Lazatin@ge.com
<< Back to Search Results


   
company media information terms of use privacy policy contact us