Re: Tomcat 8 disable parts

2016-05-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Lance,

On 5/20/16 2:52 PM, Campbell, Lance wrote:
> Thanks for all of the posts.  The one about using Tomcat 3.3 was 
> great.

??!

> I will just keep using the defaults.  A few MB here or there is not
> a big concern to me.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXQzeGAAoJEBzwKT+lPKRY4uMP/356619jdgM/G1GhsgYUa5N6
KrcIDXnFDysVvaTBi+m/KmRCE2MkFqWgQjF67BI0XMwwATsMkAXgJ9WnLwFq9D13
OwIXK8E0XLTzxehCw8excptnyMGblkwsPvMfh6H0nvAD1jgWoLbkAxenPgEoV19T
RUFx09nHUWkoAtAc4csE0ZNRKqy6J1wZ3mO7V3MsFIdeBN0XSMrhNU9dPKVGk2gD
5Dj9g+gTeKh07dLf2kGyIgVeCqd2kNvA9RoG9pgk/6zL5fI/ymHYSx+XMLcUNiJu
kD+3GxedJRSMdaiI5SEHUxdPsKwjDyh22esRWD3lVYUT7B/3Z+sClxazFTcE5kjC
wnUllrZQR4MtcedW5xb7gNvrV0dAbpXURp4+5YtsTnrRgUN+0BEIus9dPfF3/ieZ
rPzeyZCNst3pJCGq8rwfURicgWybqNkiywhcuyi4YOrze+KrXhGz4JR5oYCxVQsU
7ttmIU6PcCBFjrr25ublHF4NKNy3BbXwtsajBDblfFdR9peAewY/4kHpmUqpeZ87
y7z2aUg/OkoRioy73yWXt0v5mBFjvkDsiIt8MuxcjDyvmSamgUC/KwyczsDLofqC
rjiFvVYjkgO9hyNkb25QIKJvbS8EutD6iDDs6bMjsvGMS5u9mXIc9x4wBsm06v8J
90UGkq8n9phvDM1/46em
=/nlH
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 8 disable parts

2016-05-20 Thread Campbell, Lance
Thanks for all of the posts.  The one about using Tomcat 3.3 was great.

I will just keep using the defaults.  A few MB here or there is not a big 
concern to me.

Thanks for all of the great input.

Lance

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Friday, May 20, 2016 9:04 AM
To: Tomcat Users List <users@tomcat.apache.org>
Subject: Re: Tomcat 8 disable parts

Lance,

On 5/20/16 9:41 AM, Campbell, Lance wrote:
> I love Tomcat.  I have been using it before it was Tomcat.  Thanks for 
> the great work!
> 
> Our group only uses Tomcat with Apache for serving up content through 
> servlets.  We never use JSPs, tag libs, etc.  I know Tomcat is taking 
> on a lot more capabilities.  Is there a way to disable or maybe tell 
> Tomcat that we don't use anything other than just Servlets?  I did not 
> know if doing this might help load/startup time.
> Or maybe it would make for a smaller footer print or better 
> performance.

If you aren't using JSP, you can de-configure the JspServlet in 
conf/context.xml (note this will disable JSP across all applications deployed 
in Tomcat, not just one application). But the JspServlet isn't really taking up 
much in the way of resources when it's never being used. I'm not sure you would 
be able to see any difference in heap usage if you de-configured that.

If you disable much of the JAR-scanning, you may be able to save some heap if 
you never use any of the auto-configuring resources, etc.

But Tomcat is quite lean-and-mean in its default configuration. Last time I 
checked, it takes about 12MiB of heap to run Tomcat with nothing but a trivial 
ROOT application deployed.

Is there anything in particular that you are trying to reduce?

-chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 8 disable parts

2016-05-20 Thread tomcat

On 20.05.2016 15:41, Campbell, Lance wrote:

Tomcat 8.0.35
I love Tomcat.  I have been using it before it was Tomcat.  Thanks for the 
great work!

Our group only uses Tomcat with Apache for serving up content through servlets. 
 We never use JSPs, tag libs, etc.  I know Tomcat is taking on a lot more 
capabilities.  Is there a way to disable or maybe tell Tomcat that we don't use 
anything other than just Servlets?  I did not know if doing this might help 
load/startup time.  Or maybe it would make for a smaller footer print or better 
performance.

Just thought I would ask.

Thanks for the great work.



You could also go to the Tomcat archives, and download a Tomcat 3.3 (vintage 2003), which 
is 6.2 MB (as compared to Tomcat 8 which is 10.4 MB zipped).
To go with Tomcat 3.3, from the Oracle website you can download a Java 1.1, which is 4.39 
MB (as compared to Java 8, which is about 48.5 MB).


These things are bound to be less bloated than today's versions (*), and you would not 
even have to bother disabling anything, because it's not even there in the first place.


This is all 32-bit only, but it should run just as well on today's 64-bit CPU's (and 
probably blindingly fast, because these things were made for the CPUs and the RAM of back 
then, which were probably 100 times less capable than now. So just imagine..).


But what about security, might you ask ?
Well, chances are that none of the attack vectors explored by today's nasties, did even 
exist back then, and that today's nasties don't even bother to check anymore for 13-year 
old vulnerabilities. (In the worst case, you could put a recent Apache httpd or Nginx in 
front, to filter).


All of this tongue-in-cheek of course.
And I'm bracing myself for the onslaught..
:-)


(*) I still remember Chuck berating me for running a Tomcat-4 with a 512 KB heap, which 
was less RAM than he had on his iPhone at the time...

(but it ran)


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 8 disable parts

2016-05-20 Thread Mark Thomas
On 20/05/2016 14:41, Campbell, Lance wrote:
> Tomcat 8.0.35
> I love Tomcat.  I have been using it before it was Tomcat.  Thanks for the 
> great work!

You are welcome. Always nice to see a satisfied user.

> Our group only uses Tomcat with Apache for serving up content through 
> servlets.  We never use JSPs, tag libs, etc.  I know Tomcat is taking on a 
> lot more capabilities.  Is there a way to disable or maybe tell Tomcat that 
> we don't use anything other than just Servlets?  I did not know if doing this 
> might help load/startup time.  Or maybe it would make for a smaller footer 
> print or better performance.
> 
> Just thought I would ask.
> 
> Thanks for the great work.

In theory, yes. Not sure how much difference it would make in practice.
I'd recommend just disabling in config since that is much less likely to
cause problems than deleting JARs even though - in theory - you could
delete a few.

Note: All of this is untested so there may be typos / errors.

You can disable WebSocket by setting
containerSciFilter="org.apache.tomcat.websocket.server.WsSci" on the
default Context in conf/context.xml

You can disable JSPs by removing / commenting out the JSP servlet
configuration in conf/web.xml.

Remove any connectors you aren't using in server.xml.

Pretty much everything else will only load if you use it. Keep in mind
that Tomcat's footprint is of the order of 15MB. That is normally
dwarfed by the deployed applications. The return may not be worth the
effort.

HTH,

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 8 disable parts

2016-05-20 Thread Christopher Schultz
Lance,

On 5/20/16 9:41 AM, Campbell, Lance wrote:
> I love Tomcat.  I have been using it before it was Tomcat.  Thanks
> for the great work!
> 
> Our group only uses Tomcat with Apache for serving up content
> through servlets.  We never use JSPs, tag libs, etc.  I know Tomcat
> is taking on a lot more capabilities.  Is there a way to disable or
> maybe tell Tomcat that we don't use anything other than just
> Servlets?  I did not know if doing this might help load/startup time.
> Or maybe it would make for a smaller footer print or better
> performance.

If you aren't using JSP, you can de-configure the JspServlet in
conf/context.xml (note this will disable JSP across all applications
deployed in Tomcat, not just one application). But the JspServlet isn't
really taking up much in the way of resources when it's never being
used. I'm not sure you would be able to see any difference in heap usage
if you de-configured that.

If you disable much of the JAR-scanning, you may be able to save some
heap if you never use any of the auto-configuring resources, etc.

But Tomcat is quite lean-and-mean in its default configuration. Last
time I checked, it takes about 12MiB of heap to run Tomcat with nothing
but a trivial ROOT application deployed.

Is there anything in particular that you are trying to reduce?

-chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat 8 disable parts

2016-05-20 Thread Campbell, Lance
Tomcat 8.0.35
I love Tomcat.  I have been using it before it was Tomcat.  Thanks for the 
great work!

Our group only uses Tomcat with Apache for serving up content through servlets. 
 We never use JSPs, tag libs, etc.  I know Tomcat is taking on a lot more 
capabilities.  Is there a way to disable or maybe tell Tomcat that we don't use 
anything other than just Servlets?  I did not know if doing this might help 
load/startup time.  Or maybe it would make for a smaller footer print or better 
performance.

Just thought I would ask.

Thanks for the great work.

Lance Campbell
Web Services @ University of Illinois