Feature Request: Lower RAM usage when no backups running

Backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)

Feature Request: Lower RAM usage when no backups running

Veeam Logoby NickG_UK » Thu Mar 23, 2017 2:36 pm

Currently, Veeam Endpoint Backup uses around than 300MB of RAM even when it is idle and not running any backups.

The high RAM usage is primarily due to the fact that it uses a full instance of SQL Server 2012 to access a LocalDB database.

Usually when using LocalDB, the SQL service is started on demand and is shut down when not in use. However in Veeams case, it is kept running 24/7 and according to support this behaviour is by design.

In addition to the sqlservr.exe task using 220MB, two other services run using ~40MB each - Veeam Tray and Veeam Scheduler.

If possible (and I'm not saying it is :)) resource usage when Veeam is not running should be improved by making the following changes:

  1. Stop the SQL Server process when backups aren't running and/or switch to a lightweight DB such as SQLite, SQL Compact, or Firebird etc. SQL Server 2012 seems to be a overkill for a backup application, especially when the LocalDB autostart function is not being used at all.
  2. Use the Windows Task Scheduler API to start the backups (and Veeam Backup Service) only when it needs to run (this is how Macrium Reflect works and it uses zero resources when not backing up).
  3. The tray service seems to use a lot of RAM for what it does - more than my email client and IM chat client combined, but it just seems to be a link to launch the application? Is the tray service needed? No other backup software I'm has a tray service as usually backup software has no realtime function.
NickG_UK
Lurker
 
Posts: 2
Liked: never
Joined: Thu Mar 23, 2017 1:54 pm
Full Name: Nick Gilbert

Re: Feature Request: Lower RAM usage when no backups running

Veeam Logoby NickViz1 » Fri Mar 24, 2017 10:42 am 1 person likes this post

NickViz1
Influencer
 
Posts: 23
Liked: 5 times
Joined: Wed Jan 27, 2016 8:50 am
Full Name: Nikolai Vorontsov

Re: Feature Request: Lower RAM usage when no backups running

Veeam Logoby Dima P. » Fri Mar 24, 2017 4:28 pm

Hi Nick,

Thanks a lot for you feedback. May I ask why you are worried about RAM consumption (300MB looks ok from my point of view. Most of applications utilize even more resource, for instance, my Google Chrome currently uses more that 2Gbs of RAM). Are you trying to protect a computer with low memory?
Dima P.
Veeam Software
 
Posts: 5847
Liked: 418 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Feature Request: Lower RAM usage when no backups running

Veeam Logoby NickViz1 » Mon Mar 27, 2017 7:35 am

Hello Dima,

I'm worried because it's the most consuming permanent process on my PC's backed up with VAW, even svchost.exe takes less. And I simply don't understand why SQL server should be kept in the memory while it's in idle state.

If you have 16GB RAM, I agree, 's no practical difference, but for machines with 4GB (notebooks), that becomes noticeable.
NickViz1
Influencer
 
Posts: 23
Liked: 5 times
Joined: Wed Jan 27, 2016 8:50 am
Full Name: Nikolai Vorontsov

Re: Feature Request: Lower RAM usage when no backups running

Veeam Logoby NickG_UK » Tue Mar 28, 2017 4:04 pm

Dima P. wrote:Hi Nick,
Thanks a lot for you feedback. May I ask why you are worried about RAM consumption (300MB looks ok from my point of view. Most of applications utilize even more resource, for instance, my Google Chrome currently uses more that 2Gbs of RAM). Are you trying to protect a computer with low memory?


Yes, I only have 8GB of RAM and I think it's bad practice for an app which isn't running or doing anything at all, to use 300MB needlessly.

As a developer, I just regard this as bad practice. SQL Server LocalDB is designed to be started on demand - they've not used this feature and have instead to chosen to use it as though it's a full permanently running database application. If every application I had installed, had to use 300MB when it wasn't running, I'd need an extra 24GB of RAM. It only backs up at night for 10 minutes, so why does it need to use loads of RAM (and CPU) during the day when it's completely idle? I'm also considering deploying this to computers which only have 4GB and currently I'm holding back due to this problem.

Most apps use a lightweight DB engine such as SQL Compact or SQLite. SQL Server 2012 is a massive application to run permanently on a users computer, just to schedule a task ( apart from anything, Windows already has a Task Scheduler which is used by all other backup software I've tried - why does Veeam need a 300MB database to just run something nightly at 10pm? It's poor software development in my eyes :(

Nick
NickG_UK
Lurker
 
Posts: 2
Liked: never
Joined: Thu Mar 23, 2017 1:54 pm
Full Name: Nick Gilbert

Re: Feature Request: Lower RAM usage when no backups running

Veeam Logoby sixstorm1 » Thu May 11, 2017 1:09 am

Dear VEEAM team, why are you turning your back on this important request? This isn't some minor problem.

1. A background app should NOT consume that much memory when it is idle. This app is bloated and consumes computer resources inefficiently.
2. Dima P, Google Chrome is a bad example, you are comparing memory consumption of an active app with a background app. Also, Chrome is a bloated memory hog itself, it should not be used as a reference.
3. NickG_UK is right, it's a bad programming practice and Veeam is not the sole background running on a computer. If every developer would think like you guys do, even computers with 16 GB of RAM would run out of memory.
4. You are going against Microsoft's own recommendation of loading SQL Server Express only when needed. You should not.

Shut down SQL server when VEEAM is not backing up. We were considering Veeam for our EndPoint backup solution but we'll look into some more memory efficient alternatives. 400 MB of memory consumption is not acceptable.

Thank you
sixstorm1
Lurker
 
Posts: 1
Liked: never
Joined: Thu May 11, 2017 12:49 am
Full Name: Olivier Robert

Re: Feature Request: Lower RAM usage when no backups running

Veeam Logoby mkaec » Thu May 18, 2017 7:31 pm

Last year's discussion on the topic of VAW and SQL memory consumption.

veeam-agent-for-windows-f33/veb-config-why-sql-t33872.html
mkaec
Expert
 
Posts: 172
Liked: 43 times
Joined: Thu Jul 16, 2015 1:31 pm
Full Name: Marc K


Return to Veeam Agent for Windows



Who is online

Users browsing this forum: Google [Bot], Gostev and 14 guests