dbeaver / cloudbeaver

Cloud Database Manager
https://dbeaver.com/
Apache License 2.0
3.52k stars 382 forks source link

Lots of small files that leads to out of inodes on filesystem #1366

Closed dan-m8t closed 7 months ago

dan-m8t commented 1 year ago

Hey there,

I am using cloudbeaver 22.2.5 in kubernetes. Recently I tried to do an export of data but was not able to download the data. Further investigations lead me to a "No space left on device" error in the logs. I found a folder which held alot of small files and a df -i showed that all inodes are used.

Folder is /opt/cloudbeaver/workspace/.metadata/.http-sessions

I deleted most of the files as I didn't find any reason to keep them. They just contain some java stuff I do not understand (not a developer).

For example:

cat 0__0.0.0.0_1trbem5y5ec3vudatgasfwwl485846
1trbem5y5ec3vudatgasfwwl4858460.0.0.0)<)<)<srjava.lang.Integer⠤8Ivaluexrjava.lang.Number

What are these files for and how can I stop cloudbeaver from using up all the inodes?

Thanks

kseniaguzeeva commented 1 year ago

Thank you for the interest in CloudBeaver. The files can be useful in some cases. In any case we are going to find a solution to the issue you described above.

dariamarutkina commented 1 year ago

Hello @dan-m8t, Fixed in milestone 23.0.1: Added setting MaxInactiveInterval value in SessionHandler when initializing Jetty server. The value is taken from the server configuration in seconds

server: {
  expireSessionAfterPeriod: 1800000
}

This instructs the server to delete expired sessions files. Thank you for the interest in CloudBeaver.

nicon89 commented 8 months ago

I have same issue on version 23.3.0, even though I've set expireSessionAfterPeriod to 3600 seconds I'm getting all inodes empty after few days. What else can I do?

nicon89 commented 8 months ago

Inode usage metric: image

dariamarutkina commented 7 months ago

Hello, @dan-m8t! We fixed it in milestone 24.0.2. Please take a look at the new version of CloudBeaver 24.0.2 Thank you for your interest in CloudBeaver.

nicon89 commented 7 months ago

Thank you @dariamarutkina for the update. When can I expect cloudbeaver-ee image to be updated?