[
https://issues.apache.org/jira/browse/CLOUDSTACK-5949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14233621#comment-14233621
]
ASF subversion and git services commented on CLOUDSTACK-5949:
-------------------------------------------------------------
Commit 1716067dddf20e434cdbfac69e19da7b71fea89d in cloudstack's branch
refs/heads/master from [~minchen07]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=1716067 ]
CLOUDSTACK-5949: remove unused vnc_password from user_vm_view view to avoid
decryption bottleneck.
> Remove unused field vnc_password from user_vm_view
> --------------------------------------------------
>
> Key: CLOUDSTACK-5949
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5949
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Management Server
> Affects Versions: 4.3.0
> Reporter: Koushik Das
> Assignee: Koushik Das
> Priority: Critical
> Fix For: 4.3.0
>
>
> vnc_password is an encrypted field. During any list VM query this field is
> decrypted and then returned. In a scaled up environment if many simultaneous
> list VM queries are run then this may result in blocked threads as shown
> below. A single instance of StandardPBEByteEncryptor is used for
> encryption/decryption. Due to this all decrypt calls during list VM queries
> get blocked as the decrypt method is thread safe (see
> http://www.jasypt.org/api/jasypt/1.8/org/jasypt/encryption/pbe/StandardPBEStringEncryptor.html)
> "catalina-exec-83" daemon prio=10 tid=0x00007eff300b1000 nid=0x6b9e waiting
> for monitor entry [0x00007efee294a000]
> java.lang.Thread.State: BLOCKED (on object monitor)
> at
> org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:962)
> waiting to lock <0x000000070416a398> (a javax.crypto.Cipher)
> at
> org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725)
> at com.cloud.utils.crypt.DBEncryptionUtil.decrypt(DBEncryptionUtil.java:65)
> at com.cloud.utils.db.GenericDaoBase.setField(GenericDaoBase.java:511)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)