-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Vicky,
On 1/30/14, 12:53 PM, vicky007aggar...@yahoo.co.in wrote: > I've following queries,pls help me in understand the concepts :-- > > is it required to delete the work & temp while doing a deployment > in Tomcat ? No, but it sometimes helps when things get ... broken. > is it required to restart the tomcat instance in case of deploying > a new version of code? Not unless your code has a class of memory leaks that can cause ClassLoaders to be "pinned" in memory. If you do, you'll find that re-deploying your web application wastes a lot of memory, and ultimately you will get OOME after several reloads. > sometimes i did observe that there are certain cache issues which > make the application refers the old code even when new code has > been deployed,this usually get fixed with cleaning work & temp > directories, is this the expected behavior ?? No. If you have things like context-started threads still running after the web application should have been shut down, you can get problems like this. A Tomcat restart is the only thing that will clear those away. The work directory is likely not related unless your code uses the work directory for something. > does work & temp directories get recreated every time on > restart??,,can you help me in understand that under what scenarios > work & temp directories are created because at times at saw if i > delete work & temp directories then work is getting created not > temp directory on a restart. Work and temp directories are created whenever Tomcat needs them. The temp directory is guaranteed to be available by the servlet spec, so it's created if it does not exist. The rules for whether the work directory is required or not are unclear to me. > how work & temp is being used by a Tomcat ?? The temp dir is required by the servlet spec. I don't believe Tomcat uses it for anything. The work directory is used to cache resources from WAR files, to compile .jsp files into .java and ultimately .class files, etc. > how important is a temp directory for a code to run? Pretty important. Are you having some kind of problem with it? > I do see issues in the past in case temp directory is not present > in a catalina_base then the application throws error .while > startup. What version and what error message(s)? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS6p8EAAoJEBzwKT+lPKRYpJsP/iVHTOm1KsrSAZXFVuXMUtvz LJuTYdw/VYdD/fzMXHZwCXw1IFleIYTo4udJ3WmToac1bijzGGj7E+YCbEyBGMrC BJvjWj5iqv2rtmvNpRksjC88LnDdY3AqMUNrix4jFbkhf+h4Ll83e47jyGLw4oCL ex7fW+zzdjY4OlR9SXs9s8GGpegF6znn+SdEpVVfZJEuSkEMNtaWcjddWay7TBFz OWOyvnccJB69ahElkFFyxxsrCrmCdYxlKLYBTd5naUyjDiej9A7V18d57j1Bl+y0 LYTI6oRsCuONXvYy0NgdGJYlWJOiCoOjWOJnvkNYxv//YEDYBBGHrLu4t+XRED0i EE9pzeyQ4uZPT7xshkpkN0QmBIdaUY3zogFmVqLEjCw+D5SgZyz4Rxb8UpbDO/3F GYap4wV5IZSUUo1FlfwdvOGbpvLTaKwWzRrP24qqoZ28y6F+VAmNNT2lE5ZxxJCW gKHCKA/WcDRCUT4nzwEDKDZBRtw7AH+22IhSuoS7eTcRxBXtX0yhimDeyQUAyxrL xFS/PbPYG6RpzWEfVZ1gZbXAoipo7SdgTyNUdVwFeP0rp8680RlYeM9+th4Zj/tq bdyceewAzK9oSkyNbEdcBM1Kpdxb64OUiIsYJBBd28zZLTTJ+t7UKDvCgCowEQJN 1W4TdMpWAuAoF0fERveI =0urU -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org