You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2020/06/16 13:02:17 UTC
[Bug 64527] New: JarWarResourceSet gc caused class loading slowly
https://bz.apache.org/bugzilla/show_bug.cgi?id=64527
Bug ID: 64527
Summary: JarWarResourceSet gc caused class loading slowly
Product: Tomcat 8
Version: 8.5.39
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: springqiang@gmail.com
Target Milestone: ----
Hi,
I have a spring boot application with embed tomcat, when i deploy my
application(a war package with 329 jar and 227Mb size) to servers, when i first
loading a class by Class.forName, it take several seconds.
I debug some tomcat source code, finally i noticed that when i load a class not
loaded before, it will always run into getArchiveEntries, it will check
archiveEntries is null and load from war file. And i also noticed in
JarWarResourceSet gc method will periodic execution set
archiveEntries=null.Caused class load slowly when archiveEntries=null, because
it will scan all of my war package resources to build a cache.
I'm override JarWarResourceSet let gc method do nothing, it fixed my problem.
But I don’t know if I’m right, so I’m asking here.
tomcat version: 8.5.39
spring boot version: 2.0.9.RELEASE
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 64527] JarWarResourceSet gc caused class loading slowly
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64527
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Bugzilla is not a support forum. Please direct your question to the Apache
Tomcat users mailing list.
http://tomcat.apache.org/lists.html
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 64527] JarWarResourceSet gc caused class loading slowly
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64527
aix3 <sp...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |springqiang@gmail.com
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org