Hi, Our app was running well on Tomcat 7 on linux. Recently we migrated to Tomcat 8 on linux. However we found the system CPU usage is higher than normal. When there is no any user interaction, we still see about 25% of the system CPU usage. After deep dive, we found the tomcat keeps scanning our app's class path under WEB-INF folder. Actually all our artifacts are packed within WEB-INF/lib folder, there is nothing within WEB-INF/classes folder. Is there any way to look for WEB-INF/lib folder first before looking for artifacts within WEB-INF/classes folder?
Also why does Tomcat keeps scanning our app classpath during app idle time? Is there anyway to turn this off? The detailed information is shown as below for your references. 7196 lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF/classes", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF/classes/org", 0x2b9a564eb2b0) = -1 ENOENT (No such file or directory) 7196 lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF/classes", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF/classes/org", 0x2b9a564eb2b0) = -1 ENOENT (No such file or directory) 7196 lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF/classes", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF/classes/org", 0x2b9a564eb2b0) = -1 ENOENT (No such file or directory) 7196 lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF/classes", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF/classes/org", 0x2b9a564eb2b0) = -1 ENOENT (No such file or directory) 7196 lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF/classes", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF/classes", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF/classes/com", 0x2b9a564eb2b0) = -1 ENOENT (No such file or directory) 7196 lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF/classes", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 7196 lstat("/home/jgu-admin/apache-tomcat-8.0.24/webapps/IDManager/WEB-INF/classes/com", 0x2b9a564eb2b0) = -1 ENOENT (No such file or directory) 7196 lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 Thanks, Jennifer