| Article: |
Two Servlet Filters Every Web Application Should Have | |
| Subject: | GZIP memory leak and content length problems | |
| Date: | 2004-08-18 07:29:21 | |
| From: | krem | |
|
Hi,
|
||
Showing messages 1 through 5 of 5.
-
GZIP memory leak and content length problems
2008-11-08 21:05:50 corlettk [View]
-
GZIP memory leak and content length problems
2007-07-20 07:26:15 ManfredJS [View]
Hi,
I downloaded the jspbook.jar file from http://www.jspbook.com/.
Does anybody know if the above mentioned memory leak has already been solved in the latest jspbook.jar file, or should I still make the above changes myself?
Kind regards,
Manfred
-
GZIP memory leak and content length problems
2004-10-13 05:57:23 saikinnera [View]
Hi Krem,
I am working on compressing the content using GZIPOutputStream.On my local machine everything is working fine. Using struts on weblogic 8.1. But when I try to get that page from another machine pointing my local server, I am getting a FileDownload dialog and if I open it, there is binary content. Could you please suggest anything on this.
Thanks,
sai -
GZIP memory leak and content length problems
2006-07-23 23:26:04 CheenuInventor [View]
After 3 days analysis on Weblogic 8.1 i have found the solution for this problem. If guys need the solution contact me at chinu_en@yahoo.com. Since i really need to know how many have come across this situation. -
GZIP memory leak and content length problems
2007-01-18 05:49:27 ShriniMailNSrinivasan@gmail.com [View]
solution :
1. Dont try to compress html files from weblogic 8 (not tried with any other weblogic version).
2. Dont give multiple route of mapping to a filter in web.xml in weblogic 8.
To be more clear on second point ,
<filter-mapping>
<filter-name>CompressionFilter</filter-name>
<url-pattern>/servlet</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CompressionFilter</filter-name>
<servlet-name>Index</servlet-name>
</filter-mapping>
<servlet-mapping>
<servlet-name>Index</servlet-name>
<url-pattern>/servlet</url-pattern>
</servlet-mapping>
All the request has a url patern "/servlet" passes through CompressionFilter.
All the request will reach the Index Servlet will also passes through CompressionFilter.
If a request matches both the above condition then response will be compressed twice.
Thus creates the prob of FileDownload dialog or junk chars shown.
This will not happen in tomcat.



I've incorporated your enhancements. I had the same memory leak issue, due to taglib throwing AIOBEs.
The memory leak appears to be fixed now, along with the root cause of those pesky AIOBEs.
Thank you. Cheers. Keith.