jvm load too many classes

Mandy Chung mandy.chung at oracle.com
Fri Jul 30 18:24:00 UTC 2010

Yongqiang Yang wrote:
> hi,
>      I just type command "java" under openjdk1.6, then the jvm will 
> load 308 classes, including 
>             java/launcher/LauncherHelp,
>             java/util/ResourceBundle,
>             java/util/Currency,
>             java/util/Locale,
>             java/net/URL
>     When I use jdk1.5, the jvm just load about 180 classes, not 
> including the classes above.
>     Could someone figure out something wrong?

New features and bug fixes in a new release could lead to more classes 
get loaded at startup.  We have done some work to lazily load classes if 
appropriate (see CR 6798873: Reduce the number of classes loaded and 
class dependencies).


More information about the core-libs-dev mailing list