Hi, I have a servlet that is generating reports on demand from a client
program. I'm using tomcat as servlet container, xml and xsl to generate
fo and fop to give me pdf. The reports tend to be big and memory is
being exhausted.
Can anyone tell me how to make tomcat release memory after a servlet
Hi,
>Can anyone tell me how to make tomcat release memory after a servlet is
You can't.
>finished? Now tomcat simply hold it and sooner or later my server
starts
>to swap processes because of it. It does so even if I force GC at the
You can't force GC. System.gc() is only a suggestion to the c
I have to specify that the servlet is done! And the next time the
servlet is run (another tomcat thread) the memory usage starts at the
percentage used by the former run. Say, if I want a report and that
takes up about 50% of memory, and then you want the same. Then you will
take the memory up to 1
Howdy,
Not much clearer, but I'll try to explain a bit more ;)
>I have to specify that the servlet is done! And the next time the
>servlet is run (another tomcat thread) the memory usage starts at the
It may not be another tomcat thread. And conversely, it may be a
different (possibly new) insta
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
>
> It may not be another tomcat thread. And conversely, it may be a
> different (possibly new) instance of your servlet. Does your servlet
> implement SingleThreadModel?
No it does not! That would mean bad performanc
On Thu, 2 Jan 2003, Øyvind Hvamstad wrote:
>
> But if tomcat releases the reference to the servlet, the hole thing
> should be garbage collected.
Tomcat does not release references to the servlet. In fact, it's totally
up to the container (not to you) to decide how long a servlet instance
will
If you search http://nagoya.apache.org/bugzilla/buglist.cgi?product=fop you
will find several reports of memory leaks using fop. Your best bet is to
take it up on the fop-users list.
"Øyvind Hvamstad" <[EMAIL PROTECTED]> wrote in message
000601c2b278$5dcb2810$24d2d5c1@templar">news:000601c2b278$5
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED]] On Behalf Of Bill Barker
> If you search
http://nagoya.apache.org/bugzilla/buglist.cgi?product=fop
> you
> will find several reports of memory leaks using fop. Your best bet is
to
> take it up on the fop-users list.
I did. I g
Hi,
>However, what does tomcat do after the "service" method returns? The
>Servlet interface has a "destroy" method, is it used? Why doesn't
Tomcat
>release the servlet instance? Can anyone explain the reason?
The servlet container is free to destroy servlets and JSPs at will.
Tomcat does not cur
On Fri, 3 Jan 2003, Øyvind Hvamstad wrote:
>
> However, what does tomcat do after the "service" method returns? The
> Servlet interface has a "destroy" method, is it used? Why doesn't Tomcat
> release the servlet instance? Can anyone explain the reason?
>
Because the theory of a servlet contain
10 matches
Mail list logo