Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max size not being used #180

Open
FayKn opened this issue Apr 1, 2022 · 4 comments
Open

Max size not being used #180

FayKn opened this issue Apr 1, 2022 · 4 comments

Comments

@FayKn
Copy link

FayKn commented Apr 1, 2022

I have the following config

$ pm2 set pm2-logrotate:max_size 10K
$ pm2 set pm2-logrotate:retain 7
$ pm2 set pm2-logrotate:compress false
$ pm2 set pm2-logrotate:dateFormat YYYY-MM-DD_HH-mm-ss
$ pm2 set pm2-logrotate:workerInterval 30
$ pm2 set pm2-logrotate:rotateInterval */0 0 12 10 *
$ pm2 set pm2-logrotate:rotateModule true

And so you'd expect files that are larger then 10kb to not happen but then I find files that are 40kb, could I be doing something wrong?

the file in question is named index-error__2022-04-01_11-31-16.log

server is running AlmaLinux- 8 and it's hosting a Nuxt.js app

Thanks!

@victorykong
Copy link

@vmarchaud @jshkurti
I have the same problem.I'm very much looking forward to a reply.

➜  node-bff git:(master) ✗ ./node_modules/.bin/pm2 set pm2-logrotate:max_size 1K  
➜  node-bff git:(master) ✗ ./node_modules/.bin/pm2 conf    
Module: pm2-logrotate
$ pm2 set pm2-logrotate:max_size 10M
$ pm2 set pm2-logrotate:retain 30
$ pm2 set pm2-logrotate:compress false
$ pm2 set pm2-logrotate:dateFormat YYYY-MM-DD_HH-mm-ss
$ pm2 set pm2-logrotate:workerInterval 30
$ pm2 set pm2-logrotate:rotateInterval 0 0 * * *
$ pm2 set pm2-logrotate:rotateModule true
Module: module-db-v2
$ pm2 set module-db-v2:pm2-logrotate [object Object]
➜  node-bff git:(master) ✗ 

@ducdev
Copy link

ducdev commented May 11, 2022

Same issue!

@trmaphi
Copy link

trmaphi commented May 22, 2022

Same issue. It eats up my hard drive.

@m-cisse-easy-live
Copy link

has there been any correction since?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants