tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat 7 Per Instance Memory Footprint in Hello World App.
Date Fri, 18 Mar 2011 21:53:05 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Noah,

On 3/16/2011 10:47 PM, Noah Cutler wrote:
> I'll need to sort out DBCP, java singletons are nothing like php where a
> singleton exists for lifetime of the request, vs. lifetime of the
> application.

The servlet spec includes a "request" object which (as one would expect)
survives for the life of the request. HttpServletRequest (that defining
class of the request objects) objects allow "attributes" to be set that
are therefore accessible during the life of the request. You could store
temporary resources in the request attributes if you want to be able to
re-use them and discard them when the request terminates.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2D1EEACgkQ9CaO5/Lv0PD18QCgkXlLXa9ogZt32eTRcPbNqpwU
n7YAoJ0dhgRbxrm9iKhrEn3ScAqQYjIG
=xJlA
-----END PGP SIGNATURE-----

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


Mime
View raw message