OK, NoCopy speeds things up.
But doing some more profiling, looks like our VirtualFileURLConnection is the cause of it
all. :-)
Getting loads of this:
| http-127.0.0.1-8080-3 [RUNNABLE]
| java.util.zip.ZipFile.freeEntry(native method)
| java.util.zip.ZipFile.access$1100(ZipFile.java:35)
| java.util.zip.ZipFile$3.nextElement(ZipFile.java:438)
| java.util.zip.ZipFile$3.nextElement(ZipFile.java:415)
| java.util.jar.JarFile$1.nextElement(JarFile.java:221)
| java.util.jar.JarFile$1.nextElement(JarFile.java:220)
|
org.jboss.virtual.plugins.context.jar.AbstractStructuredJarHandler$JarEntryEnumeration.nextElement(AbstractStructuredJarHandler.java:347)
|
org.jboss.virtual.plugins.context.jar.AbstractStructuredJarHandler$JarEntryEnumeration.nextElement(AbstractStructuredJarHandler.java:329)
|
org.jboss.virtual.plugins.context.jar.AbstractStructuredJarHandler.initJarFile(AbstractStructuredJarHandler.java:133)
|
org.jboss.virtual.plugins.context.jar.AbstractStructuredJarHandler.initJarFile(AbstractStructuredJarHandler.java:107)
| org.jboss.virtual.plugins.context.jar.JarHandler.<init>(JarHandler.java:79)
|
org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:182)
| org.jboss.virtual.plugins.context.file.FileHandler.getChildren(FileHandler.java:177)
|
org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:242)
|
org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:189)
|
org.jboss.virtual.plugins.context.file.FileHandler.createChildHandler(FileHandler.java:214)
|
org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:359)
| org.jboss.virtual.plugins.context.file.FileHandler.findChild(FileHandler.java:197)
|
org.jboss.virtual.plugins.context.AbstractVFSContext.findChild(AbstractVFSContext.java:125)
| org.jboss.virtual.VFS.findChild(VFS.java:208)
|
org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.resolveVirtualFile(VirtualFileURLConnection.java:96)
|
org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getVirtualFile(VirtualFileURLConnection.java:109)
|
org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getInputStream(VirtualFileURLConnection.java:117)
| java.net.URL.openStream(URL.java:1007)
|
Creating new VirtualFile for every new connection. Meaning it builds the whole jar
structure to get to a single resource.
Scott, does your url-connection branch deal with this?
Or where/how to plug-in this sore of cache: url --> virtual file?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116124#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...