When the application is killed we found some memory leaks. Logs are below
2020-09-01 15:50:02.071 ERROR [http-nio-8080-exec-88][ComponentImportUtils:405] Bad record CSVRecord [comment=null, mapping=null, recordNumber=21, values=[org.springframework.boot:spring-boot-starter-web:2.3.2.RELEASE, https://spring.io/projects/spring-boot, Apache License Version 2.0, https://www.apache.org/licenses/LICENSE-2.0, , Static/Dynamic, External, api:testruntimeclasspath|implementation:compileclasspath|api:testcompileclasspath|campaign-kpi:testcompileclasspath|documentation:runtime|component_test:testcompileclasspath|implementation:runtimeclasspath|implementation:runtime|campaign-kpi:testruntimeclasspath|platform:testcompileclasspath|platform:runtime|implementation:testcompileclasspath|documentation:testruntime|campaign-kpi:runtime|api:testruntime|component_test:testruntime|implementation:testruntimeclasspath|api:runtimeclasspath|campaign-kpi:testruntime|implementation:testruntime|documentation:testcompileclasspath|api:runtime|component_test:compileclasspath|component_test:testruntimeclasspath|platform:testruntimeclasspath|api:compileclasspath|documentation:testruntimeclasspath|platform:compileclasspath|component_test:runtime|platform:testruntime|campaign-kpi:runtimeclasspath|documentation:runtimeclasspath|campaign-kpi:compileclasspath|platform:runtimeclasspath|component_test:runtimeclasspath|documentation:compileclasspath]]
java.lang.ArrayIndexOutOfBoundsException
2020-09-01 15:50:02.071 ERROR [http-nio-8080-exec-88][ComponentImportUtils:405] Bad record CSVRecord [comment=null, mapping=null, recordNumber=22, values=[org.springframework.data:spring-data-mongodb:3.0.2.RELEASE, , Apache License Version 2.0, https://www.apache.org/licenses/LICENSE-2.0, , Static/Dynamic, External, api:testruntimeclasspath|implementation:compileclasspath|api:testcompileclasspath|campaign-kpi:testcompileclasspath|documentation:runtime|component_test:testcompileclasspath|implementation:runtimeclasspath|implementation:runtime|campaign-kpi:testruntimeclasspath|platform:testcompileclasspath|platform:runtime|implementation:testcompileclasspath|documentation:testruntime|campaign-kpi:runtime|api:testruntime|component_test:testruntime|implementation:testruntimeclasspath|api:runtimeclasspath|campaign-kpi:testruntime|implementation:testruntime|documentation:testcompileclasspath|api:runtime|component_test:compileclasspath|component_test:testruntimeclasspath|platform:testruntimeclasspath|api:compileclasspath|documentation:testruntimeclasspath|platform:compileclasspath|component_test:runtime|platform:testruntime|campaign-kpi:runtimeclasspath|documentation:runtimeclasspath|campaign-kpi:compileclasspath|platform:runtimeclasspath|component_test:runtimeclasspath|documentation:compileclasspath]]
java.lang.ArrayIndexOutOfBoundsException
2020-09-02 06:53:54.637 INFO [Thread-28][ThemeHotDeployListener:171] 1 theme for admin-theme was unregistered
2020-09-02 06:53:54.824 INFO [Thread-28][ThemeHotDeployListener:171] 1 theme for org.eclipse.sw360.liferay-theme was unregistered
2020-09-02 06:53:55.962 INFO [Thread-28][ThemeHotDeployListener:171] 1 theme for classic-theme was unregistered
2020-09-02 06:54:09.042 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][FossologyCheckConnectionOnStartupHook:63] Component [org.eclipse.sw360.portal.components.FossologyCheckConnectionOnStartupHook] has been DISABLED.
2020-09-02 06:54:09.044 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][AdminPortlet:84] Portlet [sw360_portlet_admin] has been DISABLED.
2020-09-02 06:54:09.045 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][AttachmentCleanupPortlet:84] Portlet [sw360_portlet_attachmentcleanup] has been DISABLED.
2020-09-02 06:54:09.045 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][BulkReleaseEditPortlet:84] Portlet [sw360_portlet_bulkreleaseedit] has been DISABLED.
2020-09-02 06:54:09.046 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][DatabaseSanitationPortlet:84] Portlet [sw360_portlet_databasesanitation] has been DISABLED.
2020-09-02 06:54:09.046 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][FossologyAdminPortlet:84] Portlet [sw360_portlet_fossology] has been DISABLED.
2020-09-02 06:54:09.047 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][ImportExportPortlet:84] Portlet [sw360_portlet_importexport] has been DISABLED.
2020-09-02 06:54:09.048 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][LicenseAdminPortlet:84] Portlet [sw360_portlet_licenseadmin] has been DISABLED.
2020-09-02 06:54:09.049 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][ScheduleAdminPortlet:84] Portlet [sw360_portlet_scheduleadmin] has been DISABLED.
2020-09-02 06:54:09.049 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][TodoPortlet:84] Portlet [sw360_portlet_todos] has been DISABLED.
2020-09-02 06:54:09.050 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][UserPortlet:84] Portlet [sw360_portlet_useradmin] has been DISABLED.
2020-09-02 06:54:09.051 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][VendorPortlet:84] Portlet [sw360_portlet_vendors] has been DISABLED.
2020-09-02 06:54:09.053 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][ComponentPortlet:84] Portlet [sw360_portlet_components] has been DISABLED.
2020-09-02 06:54:09.054 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][EccPortlet:84] Portlet [sw360_portlet_ecc] has been DISABLED.
2020-09-02 06:54:09.054 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][MyComponentsPortlet:84] Portlet [sw360_portlet_mycomponents] has been DISABLED.
2020-09-02 06:54:09.055 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][MyProjectsPortlet:84] Portlet [sw360_portlet_myprojects] has been DISABLED.
2020-09-02 06:54:09.056 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][MySubscriptionsPortlet:84] Portlet [sw360_portlet_mysubscriptions] has been DISABLED.
2020-09-02 06:54:09.057 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][MyTaskAssignmentsPortlet:84] Portlet [sw360_portlet_mytaskassignments] has been DISABLED.
2020-09-02 06:54:09.057 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][MyTaskSubmissionsPortlet:84] Portlet [sw360_portlet_mytasksubmissions] has been DISABLED.
2020-09-02 06:54:09.058 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][RecentComponentPortlet:84] Portlet [sw360_portlet_recentcomponents] has been DISABLED.
2020-09-02 06:54:09.058 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][RecentReleasesPortlet:84] Portlet [sw360_portlet_recentprojects] has been DISABLED.
2020-09-02 06:54:09.059 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][SignupPortlet:84] Portlet [sw360_portlet_signup] has been DISABLED.
2020-09-02 06:54:09.060 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][LicensesPortlet:84] Portlet [sw360_portlet_licenses] has been DISABLED.
2020-09-02 06:54:09.061 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][ModerationPortlet:84] Portlet [sw360_portlet_moderations] has been DISABLED.
2020-09-02 06:54:09.062 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][UserPreferencesPortlet:84] Portlet [sw360_portlet_preferences] has been DISABLED.
2020-09-02 06:54:09.063 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][BdpImportPortlet:84] Portlet [sw360_portlet_projectbdpimport] has been DISABLED.
2020-09-02 06:54:09.064 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][WsImportPortlet:84] Portlet [sw360_portlet_projectwsimport] has been DISABLED.
2020-09-02 06:54:09.066 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][ProjectPortlet:84] Portlet [sw360_portlet_projects] has been DISABLED.
2020-09-02 06:54:09.067 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][SearchPortlet:84] Portlet [sw360_portlet_search] has been DISABLED.
2020-09-02 06:54:09.067 INFO [Start Level: Equinox Container: d3ce080b-85ed-4d80-bb18-89f653e231a0][VulnerabilitiesPortlet:84] Portlet [sw360_portlet_vulnerabilitites] has been DISABLED.
02-Sep-2020 06:54:11.284 SEVERE [Thread-28] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@5071c42f]) and a value of type [org.eclipse.sw360.datahandler.thrift.attachments.AttachmentService.Client] (value [org.eclipse.sw360.datahandler.thrift.attachments.AttachmentService$Client@5ba069cd]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
02-Sep-2020 06:54:11.286 SEVERE [Thread-28] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@5071c42f]) and a value of type [org.eclipse.sw360.datahandler.thrift.attachments.AttachmentService.Client] (value [org.eclipse.sw360.datahandler.thrift.attachments.AttachmentService$Client@75fd4426]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
02-Sep-2020 06:54:11.287 SEVERE [Thread-28] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@5071c42f]) and a value of type [org.eclipse.sw360.datahandler.thrift.attachments.AttachmentService.Client] (value [org.eclipse.sw360.datahandler.thrift.attachments.AttachmentService$Client@6d9d725e]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
02-Sep-2020 06:54:11.287 SEVERE [Thread-28] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@5071c42f]) and a value of type [org.eclipse.sw360.datahandler.thrift.attachments.AttachmentService.Client] (value [org.eclipse.sw360.datahandler.thrift.attachments.AttachmentService$Client@616af840]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
02-Sep-2020 06:54:11.287 SEVERE [Thread-28] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@5071c42f]) and a value of type [org.eclipse.sw360.datahandler.thrift.attachments.AttachmentService.Client] (value [org.eclipse.sw360.datahandler.thrift.attachments.AttachmentService$Client@47f9adf2]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
02-Sep-2020 06:54:11.420 WARNING [Thread-28] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [authorization] appears to have started a thread named [ektorp-idle-connection-monitor-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
I am using sw360: sw360-8.2.0-M1
When the application is killed we found some memory leaks. Logs are below