Author Topic: Slow ASHCMD command line startup  (Read 4822 times)

0 Members and 1 Guest are viewing this topic.

jim rivers

  • Guest
Slow ASHCMD command line startup
« on: May 21, 2009, 09:13:36 PM »
I use ashcmd in a batch file and until this week it worked good. But now when I run it the
screen stays on initializing engine for about 40 seconds until it runs. Not sure why I purchased
the pro version so I could use the ashcmd.

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11873
    • AVAST Software
Re: Slow ASHCMD command line startup
« Reply #1 on: May 21, 2009, 09:16:40 PM »
No such problem here... and there was no program update recently, so the program itself couldn't have changed.
What command-line arguments do you run ashcmd with?
Does the same delay occur every time you start it? (I mean, even if you start it, stop after a minute and then start again?)

jim rivers

  • Guest
Re: Slow ASHCMD command line startup
« Reply #2 on: May 21, 2009, 09:21:59 PM »
ASHCMD "W:" /a /s /p=1

I also run clam and avg on this machine but I dont have any of the resident portions activated. It was working until
this morning.

If I rerun it I get the same slow down.

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11873
    • AVAST Software
Re: Slow ASHCMD command line startup
« Reply #3 on: May 21, 2009, 09:25:19 PM »
Is W: a local, or remote drive?
When you open Task Manager and watch the ashcmd.exe process during that delay... does it use any CPU?

jim rivers

  • Guest
Re: Slow ASHCMD command line startup
« Reply #4 on: May 21, 2009, 09:26:13 PM »
Is there a way to tell if there is a memory leak of some kind?

jim rivers

  • Guest
Re: Slow ASHCMD command line startup
« Reply #5 on: May 21, 2009, 09:28:32 PM »
It uses 7-24 CPU then when its done goes to 0

SOrry W is local

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11873
    • AVAST Software
Re: Slow ASHCMD command line startup
« Reply #6 on: May 21, 2009, 09:31:49 PM »
Is there a way to tell if there is a memory leak of some kind?

Memory leak wouldn't slow down the initialization... it might manifest somehow during a long scan, but not at the very start.
You can select additional columns in Task Manager and watch e.g. VM Size, I/O Read Bytes, etc.

It uses 7-24 CPU then when its done goes to 0

It uses 7-24% CPU during the whole 40 seconds of "Initialization"??

Btw, is the rest of avast! (i.e. its resident protection) running?

jim rivers

  • Guest
Re: Slow ASHCMD command line startup
« Reply #7 on: May 21, 2009, 09:37:56 PM »
Pretty much 7-24 during the initialization. when it scans its quick.

I disabled all of the resident vscan programs. I have a feeling if I reboot the machine it will work again,
but its a hard machine to reboot. This baby is running a lot of stuff. But ash never ran slow before.

I copied the avast folder to my local machine and ran my app and it runs fine there. So the files are ok in
the folder. Has to be something with that machine and the current initialization. Just really odd started at around 9 am today.


Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11873
    • AVAST Software
Re: Slow ASHCMD command line startup
« Reply #8 on: May 21, 2009, 09:45:12 PM »
Well, if you disabled the ashServ.exe service, then it's possible that ashCmd.exe takes longer to start. The thing is that normally, the resident protection initializes the virus database in memory somehow - for its own scanning, but also for other scanning processes. So, when ashCmd.exe starts, it just uses the virus database from ashServ.exe's memory for the scan. When ashServ.exe is not running, however, it has to initialize the database itself (every time you start it, unless another instance of ashCmd.exe is already running) - which takes some time. 40 seconds is quite a lot though (I'd say it should be seconds, not tens of seconds)... unless the machine is really slow or loaded by other processes.

jim rivers

  • Guest
Re: Slow ASHCMD command line startup
« Reply #9 on: May 21, 2009, 09:53:02 PM »
I'll try to reboot right now. See if it kicks the server back inline.

jim rivers

  • Guest
Re: Slow ASHCMD command line startup
« Reply #10 on: May 21, 2009, 10:01:01 PM »
Yeah, the reboot brought it back to life. I wont fool around with the avast stop access protection etc this time.
Hopefully it was just a buggy problem on my end.
« Last Edit: May 21, 2009, 10:08:59 PM by jim rivers »

jim rivers

  • Guest
Re: Slow ASHCMD command line startup
« Reply #11 on: May 21, 2009, 10:01:58 PM »
Thanks for the help.