jcifs-在SmbTree.java中挂起线程

时间:2019-07-11 14:48:49

标签: java

我有一个线程挂了很长时间。 178个线程处于“阻塞”状态,并且它们都具有相同的堆栈跟踪。

java.lang.Thread.State: BLOCKED (on object monitor)
at jcifs.smb.Dfs.resolve(Dfs.java:159)
- waiting to lock <0x0000000082fd1e78> (a jcifs.smb.Dfs)
at jcifs.smb.SmbFile.doConnect(SmbFile.java:902)
at jcifs.smb.SmbFile.connect(SmbFile.java:954)

http-nio-18003-exec-45线程获得了jcifs.smb.Dfs的锁,但没有释放它。

"http-nio-18003-exec-45" #328712 daemon prio=5 os_prio=0 tid=0x00007fb720005800 nid=0x16b93 in Object.wait() [0x00007fb7799da000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:502)
at jcifs.smb.SmbTree.treeConnect(SmbTree.java:143)
- locked <0x000000008428fe80> (a jcifs.smb.SmbTransport)
at jcifs.smb.SmbTree.send(SmbTree.java:74)
- locked <0x000000008428fe80> (a jcifs.smb.SmbTransport)
at jcifs.smb.SmbTransport.getDfsReferrals(SmbTransport.java:703)
at jcifs.smb.Dfs.getTrustedDomains(Dfs.java:66)
at jcifs.smb.Dfs.resolve(Dfs.java:167)
- locked <0x0000000082fd1e78> (a jcifs.smb.Dfs)
at jcifs.smb.SmbFile.doConnect(SmbFile.java:902)
at jcifs.smb.SmbFile.connect(SmbFile.java:954)
at jcifs.smb.SmbFile.connect0(SmbFile.java:880)
at jcifs.smb.SmbFile.open0(SmbFile.java:972)
at jcifs.smb.SmbFile.open(SmbFile.java:1006)
at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:73)
at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:65)
at jcifs.smb.SmbFile.getInputStream(SmbFile.java:2844)
===============================================
"http-nio-18003-exec-46" #336449 daemon prio=5 os_prio=0 tid=0x00007fb72000c000 nid=0x15b54 waiting for monitor entry [0x00007fb77a9e9000]
   java.lang.Thread.State: BLOCKED (on object monitor)
at jcifs.smb.Dfs.resolve(Dfs.java:159)
- waiting to lock <0x0000000082fd1e78> (a jcifs.smb.Dfs)
at jcifs.smb.SmbFile.doConnect(SmbFile.java:902)
at jcifs.smb.SmbFile.connect(SmbFile.java:954)
at jcifs.smb.SmbFile.connect0(SmbFile.java:880)
at jcifs.smb.SmbFile.open0(SmbFile.java:972)
at jcifs.smb.SmbFile.open(SmbFile.java:1006)
at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:73)
at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:65)
at jcifs.smb.SmbFile.getInputStream(SmbFile.java:2844)

依赖性:

<dependency>
    <groupId>org.samba.jcifs</groupId>
    <artifactId>jcifs</artifactId>
    <version>1.3.17</version>
</dependency>

0 个答案:

没有答案