Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Memory leak in Servlet Filter handling?

807567Jun 23 2004 — edited Jun 25 2004
In Sun Web Server 6.1, I'm finding a memory leak when using servlet filters. I've even created a "no op" servlet filter. When it's registered, every 10000 hits or so to filtered static content will eat up about 5 to 10 MB of RAM. The JVM heap size doesn't increase.

When I remove the filter, I've hit the same static page on the server 50000 times without seeing an increase in memory usage by the process.

This is on Windows 2000, and I think the Sun Web Server 6.1 is SP1. I haven't tried SP2 yet.

For reference, here's the filter I put in:

public class NoOpFilter implements Filter
{
public void init(FilterConfig arg0) throws ServletException {}

public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
{
chain.doFilter(request, response);
}

public void destroy() {}
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 23 2004
Added on Jun 23 2004
3 comments
482 views