Re: How to limit memory usage for process?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > I am trying to limit memory usage for antivirus process because it eats 
> > all memory while checking big archives.
> > Setting up limits.conf is not working.
> 
> > virtual memory        (kbytes, -v) unlimited
> > -----------------------
> 
> > Any ideas?
> 
> try setting the virtual memory limit

I have created bash script:

#!/bin/bash
ulimit -v 150000
perl -e '$a= "a" x (1024*1024*151); sleep 30;'

and it said "Out of memory!", looks good.

rss limit worked fine under RH8.0, but doesn't work under RH9. What changes can cause it?

> PS this will probably kill your antivirus process...

I will try it.


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux