Re: SableVM 1.1.7 *prerelease* available - please test!
Laurent Martelli <[email protected]>
| Newsgroups | gmane.comp.java.vm.sablevm.devel |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Grzegorz" == Grzegorz B Prokopski <[email protected]> writes: Grzegorz> On Mon, 2004-10-11 at 11:29, Laurent Martelli wrote: >> It looks like jetty's serlvets are still hanging. I'll try to >> investigate, but it's not easy without debugging support. Grzegorz> We have seen Jetty having problems with class loading that Grzegorz> resulted in deadlocks. Could you please try the Grzegorz> following. Fetch Jetty's sources, edit file Grzegorz> src/org/mortbay/http/ContextLoader.java and remove Grzegorz> "synchronized" word from both loadClass() method, then Grzegorz> compile this single file and replace it in jetty's jar (or Grzegorz> alternatively you can of course rebuild whole jetty, but Grzegorz> it is possible to only rebuild this single file). In fact it was the wait/notify bug which is triggered by some code of mine that caused the hang. >> Also I've found that performances are horrible. An application of >> mine takes more than 10 times to start than with sun's 1.4 >> JVM. Prvious release had only of factor of 2. Did I miss an >> optimization option at build time ? Grzegorz> If you built with the defaults, it Should Not(tm) be the Grzegorz> case, but... Can you please remove Grzegorz> ${prefix}/share/sablevm-classpath/*.jar files and Grzegorz> reconfigure/rebuild sablevm-classpath with this option: Grzegorz> --disable-compressed-classes Grzegorz> This should result in class files being put directly Grzegorz> on-disk, just like it was in 1.1.6 and previous versions. Grzegorz> Note that I have not (personally) tested this option, so Grzegorz> in the worst case you might need to set Grzegorz> sablevm.boot.class.path property to point to where the Grzegorz> classes are installed. Or you could simply unpack the two Grzegorz> .jar files you have now to a single directory and set Grzegorz> sablevm.boot.class.path to point to it - and then retry Grzegorz> running your app. I tried unpacking the jars and removing them, but it's still slow as a lame snail: 2004-10-12 11:48:22,182 INFO perf: application started in 34812ms Whereas with 1.1.6: 2004-10-12 09:48:48,250 INFO perf: application started in 6279ms I even tried to unjar almost all the jars used by my app with no success. I'm still in the 35 seconds range :-( Thanks for your help. -- Laurent Martelli [email protected] Java Aspect Components http://www.aopsys.com/ http://jac.objectweb.org