Affects Version/s: 6.1.20 EE GA2
Environment:LIFERAY VERSION: 6.1 GA2
OPERATING SYSTEM: CentOS 6
APPLICATION SERVER: Tomcat 7.0
JAVA VIRTUAL MACHINE: Java 6
DATABASE: PostgreSQL 8.4
Steps to reproduce:
- Install the Mail EE portlet from Marketplace. (Version: 1.0.0)
- Configure 3-4 different accounts in it
- Using Jconsole to see if the tread named "JavaMail-EventQueue" is created while adding a mail account.
Notice: Whenever a user adds a new account in the plugin a new thread is created ("JavaMail-EventQueue"), most of the time in Waiting status. Thus the number of threads reach the specified maximum number of available threads.
Once we comment out the following lines, the threads in question disappear: