How not to run out of disk space

There are three main consumers of disk space. First IIS has logging turned on by default. Secondly, GpsGate Server has Info level logging turned out by default. And thirdly the database, which stores unlimited history by default. Those are the three things to control to limit disk usage to a fixed size.

A very useful tool to monitor to avoid running out of disk space is PA Server Monitor Ultra. It can be setup to alert you over email when the disk space is low.

1. Turn off IIS native logging and delete existing log files

You do not need the IIS logging. Turn it off and delete any old IIS log files. In a production system the IIS log files can consume as much disk space as your database. And it is of no use.

The IIS log files are located 
For Windows 2008 under C:\Windows\System32\inetpub\logs\LogFiles or under C:\inetpub\logs\LogFiles
For Windows 2003 under C:\WINDOWS\system32\LogFiles

2. Use Log cleanup in Site Admin

Enabling this feature will greatly reduce the disk space needed for logging. To use it, login to Site Admin and go to System Tools > Logs > Log Cleanup > All logs and set a Cleanup logs filter to a desired date (the number of days the logs will be kept).

3. Delete historical data

To keep the database at a fixed size you can specify a time limit for how long historical data will be saved. You can set a default level for the site, and individual levels for each application.

Install the Cleanup Plugin to enable this feature. You can read more about this here.

How to archive data before it is cleaned up. Read more here.

4. Monitor database size, and extend MySQL database over multiple disks

Read How to not run out of MySQL disk space.

5. Delete old ErrorLogs and ProfilerLogs. You find them under C:\GpsGateServer\ErrorLog and C:\GpsGateServer\ProfilerLog Delete all data except the last week.

Since February 2018 Release GpsGate can delete the ErrorLog and ProfilerLogs for you. Please check under System Tools -> Logs in SiteAdmin.

TreeSize is a very useful and free tool to find files that eats up your disk space.

Note! MSSQL Express has a 4GB storage limit. If you intend to add hundreds of vehicles and keep a history longer than a month or two, you cannot use MSSQL Express. Use MySQL (recommended) or a commercial MSSQL license.