RE: Javac memory leak

2002-11-22 Thread Panagiotis Konstantinidis

-Original Message-
From: Holger Brozio [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, November 21, 2002 4:40 PM
To: Tomcat Developers List
Subject: Re: Javac memory leak


is higher. If you wait a certain time frame and don't call 
any jsp page, the
garbage collector
should run and remove all unused instances of jsp classes.

Just wondering if servlets (including JSP pages, since they are treated
exactly as servlets) are ever garbage collected in the lifetime of the
app server. As far as I know servlets are loaded only once in the jvm
and stay there for ever (except for restart ofcourse). So the servlet
(especially JSPs with lots of static content) will consume the memory of
the heap in the old generation.

If all the above are true I presume that moving big static content from
JSPs into files will decrease the memory needs of a web app. (increasing
I/O though)

Panagiotis Konstantinidis
Software Engineer

Softways Hellas Internet Development S.A
(http://www.softways.gr/)



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Problem with org.apache.jk.server.JkCoyoteHandler (jk2)

2002-10-25 Thread Panagiotis Konstantinidis
We had problem sending HTTP headers containing Greek characters
(ISO-8859-7). 

After browsing the sources, I reached JkCoyoteHandler class (jk2), and
specifically appendHead(org.apache.coyote.Response res) method where it
constructs a C2BConverter object like this :


private void appendHead(org.apache.coyote.Response res) {



  C2BConverter c2b = (C2BConverter)res.getNote( utfC2bNote );
  if( c2b == null ) {
c2b = new C2BConverter(  UTF8 );
res.setNote( utfC2bNote, c2b );
  }


}

It allways converted the headers in UTF8 encoding which messed up my
Greek charactes (ISO-8859-7).

I changed the method to something like this :

C2BConverter c2b = new C2BConverter( res.getCharacterEncoding() );

which seems to work just fine.

Panagiotis Konstantinidis
Software Engineer

Softways Hellas Internet Development S.A
(http://www.softways.gr/)



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]