On 18/01/2021 16:13, Jalaj Asher wrote: > We have a situation where in we are seeing with tomcat 8.5 and higher that > even when the application is not in use , tomcat is accessing different jars > in that web-inf/ lib folder every few seconds or few minutes. > > These jars are not getting loaded in memory , we profiled it to check if they > were getting loaded in the heap or the metaspace area but that was not the > case.
Try using the profiler to trace method calls. Looking at calls that involve File and/or FileInputStream should point you in the right direction. A clean Tomcat install won't behave in the way you describe. Mark > > When I ran the lsof command though I could see that multiple jars were being > accessed (read) from that folder very frequently, with no application usage. > > Any reason or any setting that you are aware off that could be causing this. > I did enable the all setting for localhost under logging properties as well > as the below option > > org.apache.tomcat.util.http = ALL > > > but none shows the files being accessed unless I run the LSOF command on > linux. I am not sure why is tomcat reading those files multiple times in a > minute. > > Also wanted to see if there is a setting to switch off this behavior. > > Regards > > Jalaj > > CONFIDENTIALITY NOTICE TO RECIPIENT: This transmission contains confidential > information belonging to the sender that is legally privileged and > proprietary and may be subject to protection under the law, including the > Health Insurance Portability and Accountability Act (HIPAA). If you are not > the intended recipient of this e-mail, you are prohibited from sharing, > copying, or otherwise using or disclosing its contents. If you have received > this e-mail in error, please notify the sender immediately by reply e-mail > and permanently delete this e-mail and any attachments without reading, > forwarding or saving them. Thank you. > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org