Re: jvm load too many classes

2010-08-01 Thread Dr Andrew John Hughes
On 31 July 2010 21:31, Rémi Forax wrote: > Le 30/07/2010 21:59, Mandy Chung a écrit : >> >> Osvaldo Doederlein wrote: >>> >>> I wonder if these numbers have some variation per platform? >> >> Yes, there are some platform-dependent classes and so some loaded >> classes are different on different pl

Re: jvm load too many classes

2010-07-31 Thread Rémi Forax
Le 30/07/2010 21:59, Mandy Chung a écrit : Osvaldo Doederlein wrote: I wonder if these numbers have some variation per platform? Yes, there are some platform-dependent classes and so some loaded classes are different on different platform. For me (on Windows; 32-bit JDKs), the results of thi

jvm load too many classes

2010-07-31 Thread Yongqiang Yang
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

Re: jvm load too many classes

2010-07-31 Thread Yongqiang Yang
I am porting openjdk1.6 to MIPS. I have finished, but opendk1.6 is four times slower than jdk1.5 at startup. Two versions ran on the same MIPS machine . During startup, openjdk1.6 runs 1,650,000 bytecodes while jdk1.5 runs about 240,000 bytecodes. On Sat, Jul 31, 2010 at 3:59 AM, Mandy Chung

Re: jvm load too many classes

2010-07-30 Thread David Holmes
Did you try the same test on a regular JDK platform? This is likely due to changes in the class libraries. Such a change might be very noticeable for a "no-op" test (ie not running any application class) but may not be so significant for an actual test case. For example, if you do "java Foo

Re: jvm load too many classes

2010-07-30 Thread Mandy Chung
Osvaldo Doederlein wrote: I wonder if these numbers have some variation per platform? Yes, there are some platform-dependent classes and so some loaded classes are different on different platform. For me (on Windows; 32-bit JDKs), the results of this test (java -verbose:class | grep Loaded |

Re: jvm load too many classes

2010-07-30 Thread Osvaldo Doederlein
I wonder if these numbers have some variation per platform? For me (on Windows; 32-bit JDKs), the results of this test (java -verbose:class | grep Loaded | wc -l) are: 1.5.0_22: 239 1.6.0_21: 274 1.7.0-ea-b103: 403 The diff from 1.5 to 1.6 is not bad, but JDK7 seems right now to be a heavy regres

Re: jvm load too many classes

2010-07-30 Thread Mandy Chung
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