Threads BLOCKED by sun.security.pkcs11.wrapper.PKCS11.C_CloseSession


 
Thread Tools Search this Thread
Operating Systems Solaris Threads BLOCKED by sun.security.pkcs11.wrapper.PKCS11.C_CloseSession
# 1  
Old 09-27-2010
Threads BLOCKED by sun.security.pkcs11.wrapper.PKCS11.C_CloseSession

Hi,

We are facing a specific issue where the most of the threads are being BLOCKED waiting for a lock to get released.
Code:
==================================================================================
INFO | jvm 1 | 2010/09/14 04:51:32 | "http-0.0.0.0-443-31" daemon prio=10 tid=0x030c3c00 nid=0x4062 waiting for monitor entry [0x0e91f000..0x0e91faf0]
INFO | jvm 1 | 2010/09/14 04:51:32 | java.lang.Thread.State: BLOCKED (on object monitor)
INFO | jvm 1 | 2010/09/14 04:51:32 | at java.security.SecureRandom.nextBytes(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:51:32 | - waiting to lock <0x219d12b8> (a java.security.SecureRandom)
INFO | jvm 1 | 2010/09/14 04:51:32 | at com.sun.net.ssl.internal.ssl.RandomCookie.<init>(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:51:32 | at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:51:32 | at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:51:32 | at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:51:32 | at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:51:32 | at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:51:32 | - locked <0xc38fb9b0> (a com.sun.net.ssl.internal.ssl.SSLSocketImpl)
INFO | jvm 1 | 2010/09/14 04:51:32 | - locked <0xc38fbb18> (a java.lang.Object)
INFO | jvm 1 | 2010/09/14 04:51:32 | at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:51:32 | - locked <0xc38fbb08> (a java.lang.Object)
INFO | jvm 1 | 2010/09/14 04:51:32 | at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:51:32 | at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:51:32 | at org.apache.tomcat.util.net.jsse.JSSESocketFactory.handshake(JSSESocketFactory.java:120)
INFO | jvm 1 | 2010/09/14 04:51:32 | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:521)
INFO | jvm 1 | 2010/09/14 04:51:32 | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:113)
INFO | jvm 1 | 2010/09/14 04:51:32 | at java.lang.Thread.run(Unknown Source)

==================================================================================
It is possible that the lock is obtained by the below thread and it is also not coming out from C_CloseSession call


INFO | jvm 1 | 2010/09/14 04:55:33 | "http-0.0.0.0-443-28" daemon prio=10 tid=0x020b6c00 nid=0x3fc1 runnable [0x0ff1f000..0x0ff1fa70]
INFO | jvm 1 | 2010/09/14 04:55:33 | java.lang.Thread.State: RUNNABLE
INFO | jvm 1 | 2010/09/14 04:55:33 | at sun.security.pkcs11.wrapper.PKCS11.C_CloseSession(Native Method)
INFO | jvm 1 | 2010/09/14 04:55:33 | at sun.security.pkcs11.SessionManager.closeSession(SessionManager.java:208)
INFO | jvm 1 | 2010/09/14 04:55:33 | at sun.security.pkcs11.SessionManager.access$000(SessionManager.java:48)
INFO | jvm 1 | 2010/09/14 04:55:33 | at sun.security.pkcs11.SessionManager$Pool.release(SessionManager.java:261)
INFO | jvm 1 | 2010/09/14 04:55:33 | at sun.security.pkcs11.SessionManager.releaseSession(SessionManager.java:163)
INFO | jvm 1 | 2010/09/14 04:55:33 | - locked <0x2163c1e0> (a sun.security.pkcs11.SessionManager)
INFO | jvm 1 | 2010/09/14 04:55:33 | at sun.security.pkcs11.Token.releaseSession(Token.java:245)
INFO | jvm 1 | 2010/09/14 04:55:33 | at sun.security.pkcs11.P11SecureRandom.engineNextBytes(P11SecureRandom.java:98)
INFO | jvm 1 | 2010/09/14 04:55:33 | at java.security.SecureRandom.nextBytes(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:55:33 | - locked <0x219d12b8> (a java.security.SecureRandom)
INFO | jvm 1 | 2010/09/14 04:55:33 | at com.sun.net.ssl.internal.ssl.RandomCookie.<init>(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:55:33 | at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:55:33 | at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:55:33 | at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:55:33 | at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:55:33 | at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:55:33 | - locked <0x2f6eee40> (a com.sun.net.ssl.internal.ssl.SSLSocketImpl)
INFO | jvm 1 | 2010/09/14 04:55:33 | - locked <0x2f6eefb0> (a java.lang.Object)
INFO | jvm 1 | 2010/09/14 04:55:33 | at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:55:33 | - locked <0x2f6eefa0> (a java.lang.Object)
INFO | jvm 1 | 2010/09/14 04:55:33 | at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:55:33 | at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
INFO | jvm 1 | 2010/09/14 04:55:33 | at org.apache.tomcat.util.net.jsse.JSSESocketFactory.handshake(JSSESocketFactory.java:120)
INFO | jvm 1 | 2010/09/14 04:55:33 | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:521)
INFO | jvm 1 | 2010/09/14 04:55:33 | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:113)
INFO | jvm 1 | 2010/09/14 04:55:33 | at java.lang.Thread.run(Unknown Source)
==================================================================================

I am running my application on Solaris 10 using Java 1.6. Both tcp_keepalive_interval and tcp_time_wait_interval are set to 6000.

Observed a set of connection (netstat) in CLOSE_WAIT state (30 to 40) during this timeframe.

Any pointers would help.
# 2  
Old 09-27-2010
can you run the command, and provide the output?

Code:
ulimit -a

if can, adjust some of them.
# 3  
Old 09-28-2010
Code:
$ uname -a
SunOS ssapp0487 5.10 Generic_138888-02 sun4v sparc SUNW,SPARC-Enterprise-T5220

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Pkcs11 engine does not exist

Hi, I've been getting these strange errors on our servers and I've been searching for a while now and still can't really find any info. Oracle Solaris 11.1 SPARC Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved. ... (3 Replies)
Discussion started by: techy1
3 Replies

2. Solaris

T1000 Sun Solaris server root login blocked

Hi, Can someone tell me how to re-activate the root login of T1000 sun solaris server. Thx (1 Reply)
Discussion started by: abdull
1 Replies

3. UNIX for Dummies Questions & Answers

What is a wrapper?

Hi, I am a dummy and hear to the computation guys telling me, "Oh! that is easy, you just write a wrapper to do all that bunch of stuff!" :cool: Could someone tell me what is a wrapper? :rolleyes: The only one I know is Cling-Wrap for sandwiches. A small elegant example would be very... (1 Reply)
Discussion started by: genehunter
1 Replies

4. Solaris

How to Implement NFS Security in Sun Solaris 9

How to implement NFS Security in server where filesystem is configured as NFS & AutoFS? Any special patch need to be applied? What are the procedures? (1 Reply)
Discussion started by: KhawHL
1 Replies

5. UNIX for Advanced & Expert Users

Threads and Threads Count ?

Hi all, How can I get the list of all Threads and the Total count of threads under a particular process ? Do suggest !! Awaiting for the replies !! Thanks Varun:b: (2 Replies)
Discussion started by: varungupta
2 Replies

6. Solaris

Security vulnerability on my sun solaris 9 box

We are running security scans on our machines. I am concerned with my solaris 9 box running on a 280r. got the following message. The remote host accepts loose source routed IP packets. The feature was designed for testing purpose. An attacker may use it to circumvent poorly designed IP... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

7. Post Here to Contact Site Administrators and Moderators

IP Blocked

When I try to view these forums from work, I get a message that my IP has been blocked. Please advise as to how to fix this situation. My IP at work comes from the following class B network: 128.226.X.X (Binghamton University) Thanks. (1 Reply)
Discussion started by: debcav
1 Replies

8. IP Networking

BitTorrent port 6969 blocked... how to get around the blocked port

Due to the massive Upload speeds killing .... or overstressing our schools network...... my school has blocked port 6969 (the most common BitTorrent port). So I cant connect to the tracker anymore, in other words no more downloading from school :( Does anyone know how I can get around the ports... (1 Reply)
Discussion started by: PenguinDevil
1 Replies
Login or Register to Ask a Question