openkm / document-management-system

OpenKM is a Open Source Document Management System
https://www.openkm.com/
GNU General Public License v2.0
700 stars 303 forks source link

Huge amount of tmp-files in tomcat/temp #271

Closed zengsentry closed 2 years ago

zengsentry commented 3 years ago

Hello team , still meet Huge amount of tmp-files issue in Latest release v6.3.9

Environment: OS: CentOS Linux 7.7.1908 (Core)   tomcat version is tomcat-8.5.34 OpenKm Version: Latest release v6.3.9 I had created a issues #202 in last year ISSUE #202

zengsentry commented 3 years ago

Dear Team any update for this issue?

darkman97i commented 3 years ago

Linux should not happens, try with: 1- upgrade to 6.3.10 ( latest ) 2- also try to update Tomcat to the latest version provided by openkm ( tomcat-8.5.58 -> http://download.openkm.com/okm/tomcat-8.5.57.zip )

After the upgrade, if the issue still happens I will ask to identify the type of the tmp files ( execute the next command to serveral files form the command line -> I want to discover what file type are created ) file XXXXXXX.tmp

Looking in the previous screenshots I observe these are high size files, I suppose raised and error in a conversion or similar process and the file is not deleted -> can you check if always are high size files?

zengsentry commented 3 years ago

Dear team Thank you for you update, I'm not clear the files what must be copied between the tomcats or modified. tomcat-8.5.57 seems miss many files. I'm can not start tomcat successfully now.

zengsentry commented 3 years ago

I have observed that We can find the final file structure and directory under tomcat/temp folder when huge amount of temp-files in tomcat/temp happened.

Environment: OS: CentOS Linux 7.7.1908 (Core)   tomcat version is tomcat-8.5.34 OpenKm Version: Latest release v6.3.10 ( latest ) you can refer below

20210131154347

20210131154418

20210131154238

darkman97i commented 3 years ago

Can you check the file type: file "name of the file.tmp"

zengsentry commented 3 years ago

Dear team this issue don't reproduce again after increase hard disk space

darkman97i commented 3 years ago

It means in the temp folder do not increase the number of files exponentially or because you have more disk space now is not a problem?

This huge - 6GB - tmp folders it seems like some user tried to download huge folder -> in this scenario application create large amount of data in a temporary folder to create zip file.

Maybe should restrict user who can do these actions from profiles and also in the activity log should be information about which one has executed it ( in the configuration parameter activity.log.actions I think we do not have an event for it purpose -> https://docs.openkm.com/kcenter/view/okm-6.3-com/activity-log.html ).

darkman97i commented 2 years ago

Because long time without answering I will close the issue. If you have any question about this matter open a new issue.