Duplicate directories appear in the /work folder within the EM installation:
Whenever the EM is restarted, the temp folders for many of the deployed web applications are recreated in /work.
This results in permanently increasing disk usage.
This problem is exacerbated in SAP EM where many extra web applications are deployed as .war into the webapps folder.
On Windows even the "librocksdbjni*.dll" is duplicated.
Example snipped from an installation revealing the duplicates:
drwxr-xr-x 2 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-WebContent-_-any-620197611143853841.dir
drwxr-xr-x 2 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-WebContent-_apm_appmap-any-6469166271224428881.dir
drwxr-xr-x 2 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-WebContent-_cem-any-1556648610127458625.dir
drwxr-xr-x 2 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-WebContent-_dashboardsvc-any-361860739777717999.dir
drwxr-xr-x 2 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-WebContent-_docs-any-7773099328687230744.dir
drwxr-xr-x 2 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-WebContent-_em_transport-any-1197221765694804019.dir
drwxr-xr-x 2 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-WebContent-_emergmonsvc-any-2273139755199533627.dir
drwxr-xr-x 2 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-WebContent-_introscope-web-services-any-7001492615332342789.dir
drwxr-xr-x 2 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-WebContent-_sappush-any-6840662080281654441.dir
drwxr-xr-x 2 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-WebContent-_sapquery-any-6142616346496706983.dir
drwxr-xr-x 2 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-WebContent-_webview-any-3779522963838098256.dir
drwxr-xr-x 3 introscope users 4096 May 19 15:25 jetty-0_0_0_0-8081-com_ca_webapp_castyles_r2_war-2_1-apm-5_war-_castylesr2-any-1777709299665784987.dir
drwxr-xr-x 3 introscope users 4096 Apr 15 12:24 jetty-0_0_0_0-8081-com_ca_webapp_castyles_r2_war-2_1-apm-5_war-_castylesr2-any-6322512857518068212.dir
drwxr-xr-x 3 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-com_ca_webapp_castyles_r2_war-2_1-apm-5_war-_castylesr2-any-7990747657183090923.dir
drwxr-xr-x 3 introscope users 4096 Apr 15 12:24 jetty-0_0_0_0-8081-com_ca_webapp_castyles_war-5_1_2_10-apm-6_war-_castylesr5_1_2-any-3406359382304698948.dir
drwxr-xr-x 3 introscope users 4096 May 19 15:25 jetty-0_0_0_0-8081-com_ca_webapp_castyles_war-5_1_2_10-apm-6_war-_castylesr5_1_2-any-5192745016185627429.dir
drwxr-xr-x 3 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-com_ca_webapp_castyles_war-5_1_2_10-apm-6_war-_castylesr5_1_2-any-7341640740051444047.dir
drwxr-xr-x 3 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-emergmon_war-_emergmon-any-1244170974782407467.dir
drwxr-xr-x 3 introscope users 4096 May 19 15:25 jetty-0_0_0_0-8081-emergmon_war-_emergmon-any-2909778305872414745.dir
drwxr-xr-x 3 introscope users 4096 Apr 15 12:24 jetty-0_0_0_0-8081-emergmon_war-_emergmon-any-995141876274242155.dir
drwxr-xr-x 3 introscope users 4096 Apr 15 12:24 jetty-0_0_0_0-8081-sapdashboard_war-_sapdashboard-any-58235239377986675.dir
drwxr-xr-x 3 introscope users 4096 May 19 15:25 jetty-0_0_0_0-8081-sapdashboard_war-_sapdashboard-any-6283922571714830978.dir
drwxr-xr-x 3 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-sapdashboard_war-_sapdashboard-any-8907975046090392346.dir
drwxr-xr-x 3 introscope users 4096 Apr 15 12:24 jetty-0_0_0_0-8081-sapui5_war-_sapui5-any-6072281662288127287.dir
drwxr-xr-x 3 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-sapui5_war-_sapui5-any-6909583699152246341.dir
drwxr-xr-x 3 introscope users 4096 May 19 15:25 jetty-0_0_0_0-8081-sapui5_war-_sapui5-any-7000462654050330023.dir
drwxr-xr-x 3 introscope users 4096 May 19 15:28 jetty-0_0_0_0-8081-uocshell_war-_uocshell-any-3634629389748818146.dir
drwxr-xr-x 3 introscope users 4096 May 19 15:25 jetty-0_0_0_0-8081-uocshell_war-_uocshell-any-7192020153105280889.dir
drwxr-xr-x 3 introscope users 4096 Apr 15 12:24 jetty-0_0_0_0-8081-uocshell_war-_uocshell-any-8465026252174339775.dir
-rw-r--r-- 1 introscope users 5244730 May 19 15:28 librocksdbjni6721504150629763009.so