Avast WEBforum

Consumer Products => Avast Free Antivirus / Premium Security (legacy Pro Antivirus, Internet Security, Premier) => Topic started by: Libra on August 07, 2008, 06:19:39 AM

Title: ashwebSV.exe using 65,840 MB Memory
Post by: Libra on August 07, 2008, 06:19:39 AM
Hi,
  I have Windows XPsp2 Home and installed Avast Home in May.  I have updated through the internal updater twice and now have version 4.8.1229. 
  I noticed that Task Manager shows ashwebSV.exe as using 65,840 memory.  The CPU usage is 0.  Is that normal memory usage?  I thought it might be high.  The ashSV.exe is using 19,440 memory.

  Thank you.

Sincerely, Libra
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: igor on August 07, 2008, 10:37:47 AM
If you were downloading something bigger (at the moment or before), then yes, it's certainly possible.
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: Libra on August 08, 2008, 04:15:25 AM
Hi igor,
  Thank you for your reply.  I didn't download anything big.  The computer has been running for 5 days now and I noticed the memory used by ashwebSV.exe on Tuesday to be 62,552, on Wednesday it was 65,840 and today it is 66,792.
  My daughter usually has AOL running all the time and listens to music on some my space pages - if that could have anything to do with it.  Does ashwebSV.exe release the memory it uses if we exit AOL and Seamonkey?  My daughter has been restarting the computer more frequently and I was wondering if ashwebSV could have anything to do with it.
  Thank you.
  Sincerely, Libra
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: olddog on August 08, 2008, 07:14:04 AM
Libra,

The indications I have are that closing the browser does not release the memory being used by the Web Shield, however when the Web Shield Service is shut down (Control Panel/Administrative Tools/Services/Avast! Web Scanner) the memory is released and the item no longer shows in Task Manager.

So each time the computer is shut down & then restarted it is a new game. Once the service is started it shows in Task Manager on my XP system as taking about 1700k. When the browser is opened the memory usage will fluctuate depending on what was last being scanned by the Web Sheild. It also seems to me that when the browser is closed the memory left showing is what ever was being used during the last Web shield scan before closing the browser.

If you left click on the "a" ball, click on the detail button if it is showing, then scroll through the shield icons in the left column until you get to Web Shield you should find it is set to Normal (the default). Now click on Customise, then the Web Scanning tab. By default it is set to scan all files, however if you then click on the Exceptions tab you will see the default MIME types that are exceptions to the "all files" rule.
Perhaps these exlude the Web Shield scanning some of the music your daughter is listing to, but I'm not sure of that. 

Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: john36 on August 08, 2008, 08:48:43 PM
Similar situation as the OP.

Avast Home 4.8.1229

Latest file version as of today.

Win XP MCE 05  SP3

Memory usage is in the 55000 to 65000 range. (ashwebSV.exe)

It was never even near that high before.

The only thing I recently downloaded that was big was SP3.

Any other ideas why memory usage has gone way up?

I get error messages saying windows is low on virtual memory and it says to increase virtual memory.  Do you think this avast increase in memory is causing these error messages?

Thanks
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: Libra on August 09, 2008, 07:16:25 AM
olddog,
  I appreciate your observations on how ashwebSv.exe works with the memory and that it doesn't release it.  I discovered that today also.
I'll try to keep an eye on it and see if it seems to be the music causing it.  Thanks again.
Sincerely, Libra
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: mmaehre on January 15, 2009, 08:59:49 PM
The last three days ashsv and ashwebsv has been hogging 60-80% of my PC's RAM at all times. I'm not downloading anything - at the moment I'm only surfing through avast.com for support on this matter. CPU usage is normal. Tried adjusting the settings to no avail. What's the deal?!

I'm using Mozilla Firefox. Never had this problem before.


Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: Lisandro on January 15, 2009, 09:04:15 PM
Which is your avast version and build?
Which is your firewall?
Any other security program that could interfere?
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: DavidR on January 15, 2009, 09:47:31 PM
The last three days ashsv and ashwebsv has been hogging 60-80% of my PC's RAM at all times. I'm not downloading anything - at the moment I'm only surfing through avast.com for support on this matter. CPU usage is normal. Tried adjusting the settings to no avail. What's the deal?!

I'm using Mozilla Firefox. Never had this problem before.

What were you doing when this was happening ?
The activity is only there when it is scanning something, like P2P download in the background (which is using port 80) something you might not be aware of.

Try this tool to see what connections are running, TCPview, from http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx (http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx).
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: mmaehre on January 17, 2009, 10:16:19 PM
Avast version and build: 4.8 Home Edition. All updates.
Firewall: Windows
Other security programs: None
P2P: None

Never had this problem before, then bam! My guess is there's a problem with the latest program update.

Current memory status:
ashWebSv.exe using 37120 kB
ashServ.exe using 19408 kB
Firefox using 12256 kB

Other processes are using only minor amounts of RAM. CPU usage is only at 9%, while RAM usage is 74%
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: DavidR on January 17, 2009, 11:59:58 PM
Sorry but then bam! doesn't help describe what you were doing.

If based on the above figures it is using 74% of RAM you can't have very much installed, how much RAM do you have ?

However, RAM is basically there to be used and actually controlled by windows, and when other applications need RAM it is allocated from that remaining and that isn't enough RAM is taken back from other processes by moving that data out to the pagefile. Windows recognises that processes, etc run faster from RAM than constantly paging out to the page file which is why memory isn't immediately released in case what is in memory might be needed by the application.

It also depends on where you get your figures from, Task Manager isn't the most accurate tool but it is a guide, there are also several different totals for memory and by all accounts the VM Size is a more accurate guide than the Mem Usage figure.

Scanning is a relatively intensive activity for both RAM and CPU, whilst the CPU% figure will go down after a scan but the memory may not go back down to start-up levels before doing any scanning and that is partly due to windows memory management.

See my figures I have had firefox open all day and been browsing regularly with multiple tabs open, see my signature for an idea of my system specs.

Did you check the connection tool TCPview to see if there is something else with a connection that might be scanned by the web shield.
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: lukor on January 18, 2009, 11:12:01 AM
Hi,

WebShield does release the memory used for the connections when the connection is closed (from both sides - that might mean closing the browsing). Not doing that would certainly mean there is a BUG in WebShield but I don't know about such suspicion now.  It consumes more memory when working and less memory when idle. Eating 30 or 40 megs is not something I would describe “bam!” or “it hit me again!”

Besides this it also releases its committed bytes back to page file on idle (when there are no connections for several minutes). Not that it would speed anything, help your system or do any good, actually it slows down the process, stresses your disk and make the next web page appear a little slower, but as you can see the value displayed in the "Mem Usage" column in task manager is pretty important for many of you.

Just for comparison I attach an image of my system with XP SP3 running for 22 days (no restarts, just hibernate) with only one tab in Internet Explorer opened as I am writing this message. You can see that IE and WebShield are on opposite sides of the process list (sorted by memory consumption) so I had to split the image in two.

Surely designing an application in a way that it needs as little memory as possible is a good way, but usually when choosing the appropriate algorithm or data structure for some task a developer have to decide between a fast and memory hungry option and between a slower but less memory demanding one. If things wouldn't be so distorted in this whole resource consumption war between users and developers, we might probably be smart and use as much memory as available at any time to speed things up and be more memory conservative (or the system should do that for us - and it actually kind of does) when other applications want memory. Still I thing every byte of memory that is „free“ during some excessive work means my OS is not doing its job properly.

So, please post here if you have a concern that the memory usage for webshield goes only up and never returns back. We might re-do some tests for memory leaks, but I am not aware of any code change that might affect how memory is used in WebShield during recent version updates.

Lukas
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: YoKenny on January 18, 2009, 11:41:41 AM
I believe Firefox uses more memory to make it faster.
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: Sesame on January 18, 2009, 12:03:49 PM
Firefox 3 has better memory management.  c.f. http://dotnetperls.com/Content/Browser-Memory.aspx  The final output depends on addons/extensions which are used on it, though.
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: DavidR on January 18, 2009, 04:21:41 PM
Even firefox 3 uses a lot of memory but it doesn't seem to have the problem of it getting so large as to cause problems as it did with FF2.x and earlier.

I have only been on-line for a little over 30 minutes (shortly after booting) and Mem Usage is 94,300K and VM Size is 82,996K with 9 tabs open (lots of add-ons ;D). So the web shield for me is small potatoes compared to several of my running applications, but with 2GB of RAM there is plenty to spare.
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: mmaehre on January 18, 2009, 08:19:40 PM
Thanks for your time and effort, but there's still no explanation as to why Avast started eating my ram overnight. No, it never goes down, even when shutting down Firefox and Live Messenger and there should be no web activity whatsoever.  No P2P or anything. 512mb ram is not much, but it used to be sufficient. Now my hd is working overtime and I have to wait forever when I go online to check my email, etc. I installed Advanced SystemCare to monitor ram usage, and even after a deep cleaning process usage is 75% due to ash......exe

Uninstalling Avast and going back to crappy Norton.  :'(


Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: igor on January 18, 2009, 08:45:22 PM
I installed Advanced SystemCare to monitor ram usage, and even after a deep cleaning process usage is 75% due to ash......exe

I must say I don't get your calculations. In the previous post, you wrote that the ash*.exe processes use something like 50MB. So it can hardly "cause" 75% usage - even if they used zero (no memory at all), you would get lower by at most 10% (if you have 512MB RAM).
In general, I wouldn't trust any software showing some kind of "total memory usage" in percents - that's just crap.
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: Lisandro on January 18, 2009, 09:56:20 PM
In general, I wouldn't trust any software showing some kind of "total memory usage" in percents - that's just crap.
iObit was doing a good job with the Advanced Windows Care... then it became a bloatware shareware Advanced System Care.
Hope they don't do the same with the Defrag tool... it's a pity.
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: wozza37 on February 11, 2009, 10:41:36 PM
i found that the "ashWebsv.exe" also takes up a lot of memory

Solution

1. go into the avast on-access screen (double click on the "A" icon in the taskbar)
2. click on the web shield and then select customise (top right of the box)
3. uncheck the "Use intelligent stream scanning" box and click ok

the memory usage should be reduced

it would be best to go back into the settings and re-check the box to keep your computer safe

hope that helps.
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: barry55 on February 20, 2009, 05:26:12 AM
I've had the same problem as described on my three computers. After they completed the boot process
I checked ashWebsv.exe mem usage through Task Manager and it would always be between 50,000K and 65,000K and would never decrease.
No web browser was started yet.

I initially would terminate Web Shield for the session and then immediately restart it.
That would solve the problem until the next time the computer was booted.
I did more investigating and found the ashWebsv.exe mem usage seemed to be directly related to the
Windows XP System Restore size setting and also Windows Indexing Service for searches. The thing both of these services have in common is that they have a large number of files stored in the hidden directory "System Volume Information".

I have three computers. All with excessive memory usage showing up from the Avast4 file ashWebsv.exe.
Two computers have System Restore "on" and Indexing turned off.
The third computer has System Restore turned off, but at one time had Indexing turned on.
They all have different size drives from 40gb to 160gb.
They all have Win XP, Firefox 2.0020, Adaware, Spywareblaster, BOClean, Avast4 (4.8.1335) and only a router firewall.
 
When I reduced the size of the System Restore settings to 5% instead of the default 12%,
the ashWebsv.exe mem usage issue was solved on the two computers that had System Restore set to "on".
The third computer, because Indexing was turned on at one time but no longer, had a directory named "catalog.wci", under "System Volume Information" which also had many files within it.
I then deleted "catalog.wci".

Now, immediately after all of the computers boot up, the ashWebsv.exe mem usage is around 1600K on all
computers. After starting Firefox, the ashWebsv.exe mem usage would fluctuate as expected both increasing and decreasing, mostly leveling off between 10,000K to 16,000K with limited testing so far.

After further testing, I also noticed when Avast updates are downloaded, ashWebsv.exe mem usage spikes to around 45,000K or more after the download is finished and installed. I would then have to pause or terminate Web Shield and then restart it to release the memory. It didn't seem to cause any problems but would just grow as I surfed the web.

I decided to turn off automatic updates because of the ashWebsv.exe mem usage issue. This way the computers boot up faster and I then manually do the updates at some point each day, usually just before I shut down. I found you can always release the memory by pausing Web Shield and immediately restarting it if I happen to do an update during my computer use.

After 5 days of observation, I no longer have any issues with ashWebsv.exe mem usage.
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: YoKenny on February 20, 2009, 08:09:01 AM
I do not have an issue with ashWebsv.exe

(http://www.imagespeech.com/out.php/t2919_avast.png) (http://www.imagespeech.com/out.php/i2919_avast.png)

I do not run the obsolete Ad-Aware nor have Indexing service turned on nor Firefox and I would not let anything from Comodo near my system.

SpywareBlaster does not take up any memory as it is passive.

I have System Restore enabled with 5% storage size and Automatic Updates enabled and I do not have an issue with system boot up time.
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: bfarber on March 04, 2009, 07:40:51 PM
Just did a google search on the same issue which led me here.  I, too, have recently noticed a large increase in the amount of memory avast is using.

I'm a web-developer working for a company, but at home.  This necessitates me using a lot of communication tools.  Right now I have a program called HUD which manages my VOIP phone, campfire chat (through a prism shell), trillian, WinSCP, Google sidebar and Firefox all opened and ashWebSv.exe is using 414,340K memory (out of 4GB).  This seems entirely excessive, as I'm doing nothing specific at the moment other than typing this despite the number of applications I have open.  firefox.exe after being restarted is using 132,180K memory, while the AV software protecting me is using ~3 times that?
Title: Re: ashwebSV.exe using 65,840 MB Memory
Post by: gery on March 04, 2009, 09:08:10 PM
Should this be a sort of antagonism  with another prog or something? it can;t be that high
Firefox is eating 114.432 kb in my system and i am a bit surprised