From: Terrell Deppe <terrell@xxxxxxxxxx>
Reply-To: cobalt-developers@xxxxxxxxxxxxxxx
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-developers] Memory Hog
Date: 05 Mar 2002 23:15:30 -0600
The version of Tomcat that comes with the Cobalt Java Developer kit
doesn't handle virtual hosting in the nicest way. Every virtual host
gets its own virtual machine, causing a significant amount of memory to
be used on a server with many virtual domains.
You can turn off Tomcat by running the shutdown script in the Tomcat bin
directory:
[xxx xxx]$ /usr/java/jakarta-tomcat-3.2.3/bin/shutdown.sh
You'll still be able to run java applications, just not java web
applications.
...or you could theoretically turn off specific virtual domains (that
don't need JSP/Servlet support) by editing the server.xml file.
Unfortunately, that file is recreated on startup by a perl script that
reads the server.xml.master file, and appends the hosts as they are
found in the /home/sites directory (see the cobalt_config.pl file for
details).
I read somewhere on this list that there are some future enhancements
expected to allow you to turn off JSP support like you can currently do
for ASP (ChiliSoft).
-Terrell
On Wed, 2002-03-06 at 00:51, Ammar T. Al-Sayegh wrote:
> Hi All,
>
> My system has been running out of memory lately.
> When I do ps -aux, I get many of the following
> processes:
>
> root 13227 0.0 1.1 163784 11652 ? S Mar05 0:01
> /usr/java/jdk1.3.1/bin/i386/native_threads/java -Djava.security.manager
-Djava.security.policy==/usr/java/jakarta-tomcat//conf/tom
> cat.policy -Dtomcat.
> root 13280 0.0 1.1 163784 11652 ? S Mar05 0:00
> /usr/java/jdk1.3.1/bin/i386/native_threads/java -Djava.security.manager
-Djava.security.policy==/usr/java/jakarta-tomcat//conf/tom
> cat.policy -Dtomcat.
>
> I have installed jdk few days ago, and I have no
> idea why so many instances of the above process
> are always running with each process taking %1.1
> of the total memory.
>
>
> -ammar
>
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers