HTTP Anti-Virus Proxy
http://havp.hege.li/forum/

High utilization of ram
http://havp.hege.li/forum/viewtopic.php?f=3&t=535
Page 1 of 1

Author:  cemflinux [ 01 Jun 2010 18:28 ]
Post subject:  High utilization of ram

I'm having a problem in HAVP, it is very consuming and the RAM (of which I have 4GB) system by entering the times in the memory swap.
I am using the following settings:
SERVERNUMBER 200
MAXSERVERS 600
The problem is that the processes are growing but not when they are most used are still running on the server.
My average HAVP processes is around 240, but sometimes I peak 460, and low when the requests to the Internet, HAVP keep the processes running, and restart the server to return to normal use.
Is there any solution?

Thank you.

Author:  hege [ 02 Jun 2010 09:27 ]
Post subject:  Re: High utilization of ram

HAVP currently uses very simple forking, so it does not kill childs.

You could edit proxyhandler.cpp and change "requests > 1000" value to something small, it would remove childs a bit sooner. If I ever have time to release 0.92, I'll make if configurable..

If you are using clamav library, you could try changing to clamd. Then the childs wouldn't contain "idle" ClamAV memory.

Page 1 of 1 All times are UTC + 2 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/