Exchange Scanner Throws Java Heap Space Error

book

Article ID: 160760

calendar_today

Updated On:

Products

Data Loss Prevention Network Discover

Issue/Introduction

The Exchange scanner stops sending idx files to the Discover server

Error:  In the scanner0.log, there will be the following error:

SEVERE: Runtime Exception occurred. Restart the Scanner.Java heap space

Resolution

1) In the bin folder of the scanner (\Program Files\ExchangeScanner\bin),  create two files:

ExchangeScanner_Console.exe.vmoptions
ExchangeScanner_Service.exe.vmoptions

Make sure the name of the vmoptions file is the same as the scanner exe.

2) Add the following to the vmoptions file: NOTE: these entries are case sensitive.

-Xmx1024m

3)  Run the scanner either as a console or service

Note:   We are assuming the machine on which the scanner runs has at least 2 GB RAM.

 If the problem persists, then add the following to the vmoptions file:

-XX:-HeapDumpOnOutOfMemoryError

This  will create a heap dump file in the scanner jre/bin directory, if another out of memory exception occurs. The heap dump file will have an extension of .hprof. Please send to support the hprof file if an OOM occurs again. It will be a big file (1GB at least).

Note:  This solution applies to all scanners