• Huge amount of tmp-files in tomcat/temp

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #47833  by MKochS
 
On 6.3.1, I have found that over time about 80.000 okm*.tmp files have accumulated in tomcat/temp. They are using 20GB of storage altogether. I have randomly picked files and inspected them. Some of them contain PGP-keys, some are emails, and some (the bigger ones) are binary files. The date ranges from 2016 to now.

Example:
Code: Select all
-rw-r--r-- 1 root root  1204140 Apr 19 10:41 okm998641093795799658.tmp
-rw-r--r-- 1 root root      836 Mär 22  2017 okm998687336308417660.tmp
-rw-r--r-- 1 root root    10156 Okt 27  2017 okm99870802939853857.tmp
-rw-r--r-- 1 root root      836 Okt 27  2017 okm998722049131263870.tmp
-rw-r--r-- 1 root root      836 Nov  1  2017 okm998776248288668755.tmp

I wonder how to handle them, and if it's safe to delete them.

Matthias
 #47837  by jllort
 
It is safe to delete them. I suppose you are on windows, this is an old behaviour we detected in OpenKM under Windows OS. I suggest upgrade to latest OpenKM 6.3.7 because might be in the latest version does not happen ( I remember we have done something to solve it in the professional version but I'm not 100% we also applied the changes in the community. I suggest try it and keep us updated if the issue continues ).
 #47910  by MKochS
 
I'm on Debian Linux, but an outdated version (Wheezy). The whole installation will soon move to a up-to-date machine.

Kicking the tempfiles now.
Cheers, Matthias
 #47938  by jllort
 
What tomcat version are you using. I suggest try to migrate to the lastest tomcat-8.5.24 https://sourceforge.net/projects/openkm/files/common/ ... remember :
1- backup
2- some files in the new tomcat like OpenKM.cfg or conf/server.xml should be modified before starting OpenKM or you can damage the repository ( for example if you do not update OpenKM.cfg you might drop all the repository, because by default is set to create )
 #47955  by MKochS
 
It's the tomcat version that came with 6.3.1. As soon as I have migrated, I will go through the update routine until I'm on the most recent version.

More precisely: I installed 6.3.0 and then upgraded to 6.3.1.
 #47966  by jllort
 
I suggest upgrading to the lastest 6.3.7. We have observed in the past this behaviour in Windows OS, but in Linux should not happens.
 #49097  by Sentry
 
Dear

My tomcat version is tomcat-8.5.24 , OpenKm Version: 6.3.8 (build: 6702c0f) and installed on CentOS.
However, I have observed there are many Huge amount of tmp-files in tomcat/temp,
they are include .tmp files and many okm666952224316423311-0067.ppm files.
Code: Select all
[user temp]# du -h --max-depth=1
1.4M    ./.jodconverter_socket_host-127.0.0.1_port-2002
4.0K    ./okm
159M    ./okm2744322718309315245.tmp
125M    ./okm5818240595484895350.tmp
6.0G    ./okm5351914417107604213.tmp
3.2G    ./okm4793261973599596507.tmp
11G     .

Code: Select all
 [omcat-8.5.24]# du -h --max-depth=1  
11G     ./temp
2.8M    ./work
196K    ./repository
6.9M    ./logs
141M    ./bin
680K    ./conf
41M     ./lib
707M    ./webapps
12G     .
can I remove all of that?

How to solve this issue ?
 #49100  by pavila
 
Yes, you can stop OpenKM and empty the tmp folder. These temporal files should be deleted automatically, but it seems there is a missing deleting at some place.

Regards.
 #49102  by Sentry
 
pavila wrote: Wed Oct 16, 2019 6:48 am Yes, you can stop OpenKM and empty the tmp folder. These temporal files should be deleted automatically, but it seems there is a missing deleting at some place.

Regards.
Thanks a lot,May I know, what's the okm666952224316423311-0067.ppm files?

Regards.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.