store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Fri May 24, 2013 4:36 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 71 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Thu Jul 01, 2010 12:07 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3245
Location: Chantilly, VA
chpax -m /usr/bin/clamscan

BTW, if you are using clamd you can also run clamdscan which is MUCH faster.

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Thu Jul 01, 2010 12:41 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed May 12, 2010 5:40 pm
Posts: 137
Okay added another update this morning...
Quote:
gradm-2.1.14-11.el5.art.x86_64


ran...
Quote:
chpax -m /usr/bin/clamscan


Then used clamdscan instead of clamscan and it worked fine...

14 minutes complete scan vs 55min + for clamscan...

thanks, it's all good.


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Thu Jul 01, 2010 3:11 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3245
Location: Chantilly, VA
Yeah clamdscan is WAY faster.

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Tue May 15, 2012 9:58 pm 
Offline
Forum User
Forum User

Joined: Fri May 06, 2011 8:16 pm
Posts: 99
Location: UK
Hi could someone look at ticket 15099.

I was told - " Ok so it looks like virtuozzo is killing the process / resource starving it. Theres nothing we can do about that other than to disable most of th signatures in it (kind of defeating the purpose!). I&#... "

Yum GUI said their was an update to gradm - I duly yum updated > gradm-2.9-8.el5.art.x86_64 and after postfix being pummelled for the last couple of weeks its now suddenly stopped and I am not getting an avalanche of mail telling me psmon has a problem with clamd.

I thought it fixed the problem but it didn't !


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Wed May 16, 2012 2:40 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
The gradm update stops clamd. Looking at the output of rpm -q --triggers gradm I see some code that stops clamd to run chpax -m on it. Restarting it seems to be left to psmon.

So yes, if you have a resource problem preventing clamd from starting, then yes, psmon will try over and over to start it.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Wed May 16, 2012 7:13 am 
Offline
Forum User
Forum User

Joined: Fri May 06, 2011 8:16 pm
Posts: 99
Location: UK
Thats the thing i am running ASL on 3 identical servers so it doesn't quite make sense, so I am puzzled


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Wed May 16, 2012 2:06 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
Identical in hardware, but probably not in memory usage at every point in time.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Thu May 17, 2012 6:13 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3245
Location: Chantilly, VA
Quote:
Identical in hardware, but probably not in memory usage at every point in time.


As I understand the case, apparently virtuozzo is killing of clamd because its using more memory that the VPS will allow.

Quote:
Thats the thing i am running ASL on 3 identical servers so it doesn't quite make sense, so I am puzzled


Are they all configured identically, and for these 3 servers are they all VPS'? As I understand it the one we looked at was a VPS, are these others as well? And what are the memory limits on these VPS'?

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Sat May 19, 2012 6:31 am 
Offline
Forum User
Forum User

Joined: Fri May 06, 2011 8:16 pm
Posts: 99
Location: UK
Hi Mike,

sorry i never saw this post.

Its a Plesk Linux 2GB VPS with 4GB Burstable RAM with a few sites on the box.

I have ASL running on two other vps with the same spec with no repeated psmon emails.

i dont believe the VPS is under specced and I wouldn't have thought ClamAV uses a huge amount of memory, certainly not bursting up to 4GB - the same specced up setup has run ASL without a problem which is puzzling.

I uninstalled and reinstalled to no avail so am not sure if shrapnel left behind confused matters but I thought the uninstall would clean out all previous parameters.


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Sat May 19, 2012 7:18 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
ClamAV can use quite a lot of memory, so I'm afraid your problem is in fact being underspecced. Burstable RAM sounds fancy, but I believe that just means you can use it when it's available (i.e. not already in use by other users on the same hardware), so at busy times your server will only have 2 GB of RAM, which frankly isn't that much.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Sat May 19, 2012 9:52 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7428
Location: earth
Plus total memory isnt the only limitation in openvz, there are also process level limits that can starve a process or user of other resources.


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Sat May 19, 2012 4:16 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 1846
One way to reduce clamd's memory footprint is to disable safebrowsing at the end of /etc/freshclam.conf (and /var/asl/data/templates/template-freshclam.conf (and you need to check thetemplate regularly)

I can't remember if there's an option in /etc/asl/config or not to disable this permanently. safebrowsing is a serious memory hog and we don't use it on all our systems for that reason.

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Sun May 20, 2012 6:55 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
scott wrote:
Plus total memory isnt the only limitation in openvz, there are also process level limits that can starve a process or user of other resources.


The RHEL6-based OpenVZ kernels support VSwap, which supersedes user beancounters and makes the whole resource limit thing a lot simpler: http://wiki.openvz.org/VSwap This is a pretty new feature though, so maybe not many OpenVZ hosters are using this yet.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Sun May 20, 2012 8:56 am 
Offline
Forum User
Forum User

Joined: Fri May 06, 2011 8:16 pm
Posts: 99
Location: UK
breun wrote:
scott wrote:
Plus total memory isnt the only limitation in openvz, there are also process level limits that can starve a process or user of other resources.


The RHEL6-based OpenVZ kernels support VSwap, which supersedes user beancounters and makes the whole resource limit thing a lot simpler: http://wiki.openvz.org/VSwap This is a pretty new feature though, so maybe not many OpenVZ hosters are using this yet.


Hi Breun I thought the above was completely over my head but I read it through and it makes sense.

I know its not applicable to me as its not implemented and I am on Cent5 but its an interesting read nonetheless.

i will try and see if faris's options alleviate the problems.

I understand that disabling safebrowsing may reduce memory consumption but what type of security hit would i possibly take ?


Top
 Profile  
 
 Post subject: Re: psmon/webnic.xxxxx.com] Spawned 'clamd' with '/sbin/
Unread postPosted: Sun May 20, 2012 9:16 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
inquis wrote:
Hi Breun I thought the above was completely over my head but I read it through and it makes sense.

I know its not applicable to me as its not implemented and I am on Cent5 but its an interesting read nonetheless.


It doesn't really matter what OS the virtual server is running, this is about the kernel running on the host node. VSwap is implemented in the RHEL6-based OpenVZ kernel and needs to be configured on the host node. I assume you are not controlling the OpenVZ host node?

Your virtual server is probably using the previous OpenVZ resource limit system, which is user beancounters: http://wiki.openvz.org/UBC This system has a whole lot more limits and can cause programs not to start because some limit has been reached without actually using all available RAM, which is what Scott was referring to.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 71 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group