You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Danny Heinen <da...@hitec.lu> on 2001/10/05 08:37:29 UTC

Tomcat 4.0 standalone webserver.

Hi,

I use the Tomcat 4.0 standalone webserver for an Intranet application. I
currently don't need that much performance, and thus don't need the Apache
webserver.

I generate log files (with log4J) in my application context, making them
available for the administrator, by using the browser. At the beginning it
worked fine. I could see the log files grow, just by making a refresh of the
page. But after a certain time (some hours) the file in the directory list
of Tomcat just freezed (date, size), and Tomcat doesn't serve the latest
file anymore.

When I check the file over network, it's fine.

I installed Tomcat in it's original configuration. No special settings. My
context:

<Context path="/notes"
docBase="C:/Danny/DannyProj/Hitec/Hitec/Hkms/webapps/hkms" debug="0"
reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_notes_log." suffix=".txt" timestamp="true"/>
</Context>

Thanks for any info.

Regards,
Danny Heinen


## Reduce Tomcat Real memory used ##

Posted by Sam <is...@ms45.hinet.net>.
Hi everybody,

  I want to minimize the tomcat RSS memory. (./startup.sh)
  I use "ps -A v too check the data.

  ==
  PID TTY      STAT   TIME  MAJFL   TRS   DRS  RSS %MEM COMMAND
  15614 ?        S             0:01    356        152  2679  1852  1.4
/usr/local/sbin/snmpd
  11168 ?        S             0:04    615            9 78386 8988  7.0
/home/sam/jdk/bin/i386/g...
  ==

 It cost around 9M memory, so big............
 How should I reduce and rebuild the main program.?
 any idea?
 REBUILD tomcat and objcopy --debug?
 Our  Platform: tomcat 3.2.3;jdk 1.2.2;Mandrake 7.0

 BY THE WAY, I also try the RESIN It cost around 10% memory.
 thanks all!!

--sam


Re: Tomcat 4.0 standalone webserver.

Posted by Remy Maucherat <rm...@home.com>.
> Hi,
>
> I use the Tomcat 4.0 standalone webserver for an Intranet application. I
> currently don't need that much performance, and thus don't need the Apache
> webserver.
>
> I generate log files (with log4J) in my application context, making them
> available for the administrator, by using the browser. At the beginning it
> worked fine. I could see the log files grow, just by making a refresh of
the
> page. But after a certain time (some hours) the file in the directory list
> of Tomcat just freezed (date, size), and Tomcat doesn't serve the latest
> file anymore.
>
> When I check the file over network, it's fine.
>
> I installed Tomcat in it's original configuration. No special settings. My
> context:
>
> <Context path="/notes"
> docBase="C:/Danny/DannyProj/Hitec/Hitec/Hkms/webapps/hkms" debug="0"
> reloadable="true">
> <Logger className="org.apache.catalina.logger.FileLogger"
> prefix="localhost_notes_log." suffix=".txt" timestamp="true"/>
> </Context>

I've just added two fixes which should help you. The problem is that when
you keep writing to a file, the last modified date doesn't change (and I use
that to revalidate the cache contents). Another workaround for that first
problem is to disable caching for the context (since the files change all
the time, it's not that helpful anyway), by adding cachingAllowed="false" to
your Context element.

Also, I've made some cache related fixes to directory browse page generation
(which should have a last modifed header, or check any of the if headers).

The fixes will be in the 10/06/2001 nightly.

Remy