User avatar
Posts: 14926
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

GUIDE: How to not run out of disk space

Mon Nov 28, 2011 3:41 pm

Note: for an updated version of this and other articles, we recommend you to check our knowledge base here

GUIDE: How to not 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

To turn off logging:
For Windows 2008, open IIS manager. Select the site. Click on Logging and then on "Disable"
For Windows 2003, open IIS manager. Right click on the site. Select Properties. Deselect "Enable logging" under "Web Site".

If you use Windows XP/Vista/7/8 with IIS Express read this for how to turn off logging:

2. Turn off GpsGate Info-level logging

Install the LogFiles Plugin. It will enable Error-level logging only. This will greatly reduce the disk space needed for logging. You only need Error-Level logging. You should always install this plugin on a production system.

After doing this you can delete the log files C:\GpsGateServer\Franson NMEA Server\NMEA*.log and C:\GpsGateServer\IIS\IIS*.log

More info on the LogFiles Plugin:

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:

How to archive data before it is cleaned up

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

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.

If you are running out of disk space anyway, please contact for more advise.


GpsGate Support

Return to “GpsGate Server - How to setup and use”