Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001428 [Resin] major always 10-30-06 06:49 11-01-06 11:14
Reporter mabbott View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.0.19
Summary 0001428: Locking in Jar.create() method blocks application performance
Description Our application makes heavy use of JavaMail and most requests must
at some point get a JavaMail Session instance. We have found very
heavy lock contention (2/3 of all threads) caused by the Resin
class loader resource fetch locking in the Jar.create method.
A stack dump is below. This is the limiting factor in the
application performance.

"resin-tcp-connection-*:80-3939" daemon prio=10 tid=0x00bd3fb8 nid=0x24f13 waiting for monitor entry [0xc60fe000..0xc60ffc70]
    at com.caucho.vfs.Jar.create(
    - waiting to lock <0xd78e6ca8> (a com.caucho.util.LruCache)
    at com.caucho.vfs.JarPath.getJar(
    at com.caucho.vfs.JarPath.canRead(
    at com.caucho.loader.TreeLoader.getPath(
    at com.caucho.loader.Loader.getResourceAsStream(
    at com.caucho.loader.DynamicClassLoader.getResourceAsStream(
    at com.caucho.loader.DynamicClassLoader.getParentResourceAsStream(
    at com.caucho.loader.DynamicClassLoader.getResourceAsStream(
    at com.caucho.loader.DynamicClassLoader.getParentResourceAsStream(
    at com.caucho.loader.DynamicClassLoader.getResourceAsStream(
    at java.lang.Class.getResourceAsStream(
    at javax.mail.SecuritySupport12$
    at Method)
    at javax.mail.SecuritySupport12.getResourceAsStream(
    at javax.mail.Session.loadResource(
    at javax.mail.Session.loadProviders(
    at javax.mail.Session.<init>(
    at javax.mail.Session.getInstance(
Additional Information
Attached Files

- Relationships

- Notes
11-01-06 11:14

Shifted synchronization to use putIfNew to remove lock dependency on the removeEvent

- Issue History
Date Modified Username Field Change
10-30-06 06:49 mabbott New Issue
11-01-06 11:14 ferg Note Added: 0001570
11-01-06 11:14 ferg Assigned To  => ferg
11-01-06 11:14 ferg Status new => closed
11-01-06 11:14 ferg Resolution open => fixed
11-01-06 11:14 ferg Fixed in Version  => 3.1.0

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker