Page 1 of 1

Huge amount of tmp-files in tomcat/temp

PostPosted:Tue Apr 30, 2019 9:24 am
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

Re: Huge amount of tmp-files in tomcat/temp

PostPosted:Wed May 01, 2019 4:51 pm
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 ).

Re: Huge amount of tmp-files in tomcat/temp

PostPosted:Wed May 08, 2019 12:03 pm
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

Re: Huge amount of tmp-files in tomcat/temp

PostPosted:Fri May 10, 2019 2:07 pm
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 )

Re: Huge amount of tmp-files in tomcat/temp

PostPosted:Sun May 12, 2019 9:22 pm
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.

Re: Huge amount of tmp-files in tomcat/temp

PostPosted:Tue May 14, 2019 5:12 am
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.

Re: Huge amount of tmp-files in tomcat/temp

PostPosted:Tue Oct 15, 2019 10:24 am
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 ?

Re: Huge amount of tmp-files in tomcat/temp

PostPosted:Wed Oct 16, 2019 6:48 am
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.

Re: Huge amount of tmp-files in tomcat/temp

PostPosted:Wed Oct 16, 2019 8:39 am
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.

Re: Huge amount of tmp-files in tomcat/temp

PostPosted:Wed Oct 16, 2019 8:45 am
by pavila
I suppose they are images from a PDF created in the text extraction process.

Re: Huge amount of tmp-files in tomcat/temp

PostPosted:Wed Oct 16, 2019 8:45 am
by Sentry
How to fix this issue?

Re: Huge amount of tmp-files in tomcat/temp

PostPosted:Wed Oct 16, 2019 8:59 am
by pavila