On Oct 6, 2007, at 4:03 AM, Mattias Jiderhamn wrote: > >> Also, what is the stack trace for the slow read() call? > With JNI, 57% of the time for loading a single page (total 78 s) is > spent in > com.caucho.vfs.JniStream.read cased by (only!!!) 22 calls from > com.caucho.vfs.ReadStream.readBuffer > com.caucho.vfs.ReadStream.waitForRead > com.caucho.server.port.TcpConnection.run
That's the keepalive waiting for the next browser request. It's normal. > ... > > > Without JNI 43% of the time (total 33 s) is spent in > java.io.File.lastModified caused by 28000 calls (depency checking over > and over) from > com.caucho.vfs.FilePath.getLastModified > com.caucho.vfs.Depend.isModified > ... > and 41% of the time is spent in > java.io.File.length called 28000 times from > com.caucho.vfs.FilePath.getLength > com.caucho.vfs.Depend.isModified > ... Can you give more of the stack trace? It's conceivable that there's a huge number of dependency files for some reason (or somehow Resin's checking the same files repeatedly.) A truss (or strace or equivalent) would give the exact files that are getting tested. -- Scott _______________________________________________ resin-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/resin-interest
