Wednesday, July 6, 2022

How to limit amount of memory used by vim?

Hi,
using Vim 7.4 on Linux server I have opened large log file and I tried to perform some log formatting using ":%s" command.

It looks like Vim froze (probably it didn't, it just worked hard), but like after a minute Linux server got out of memory and Linux start killing the biggest memory consumption processes including one very important server. From Linux logs I see vim consumed 50 GB of memory, that is what triggered Linux to get out of memory.

Just wondering is there a way to set in Vim, how much memory is Vim allowed to use? If Vim exceeds that amount the last action performing is just canceled with error.
Regards

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/8165ce96-6068-42e4-9d88-e237b71ffdd9n%40googlegroups.com.

No comments:

Post a Comment