This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Configuring exclusion so a java project compiles in a reasonable time.

The project compiles in about 6 seconds if I stop the sophos services. It takes over a minute if sophos is running. I was hopeful that
/opt/sophos-av/bin/savconfig add ExcludeFileOnGlob '/usr/lib/jvm/java-7-openjdk-amd64/bin/*'
would work (among other things that I have tried), but it did not. How do I set up exclusions so I can compile faster?



This thread was automatically locked due to age.
  • The slowness is probably scanning .java and .class files that you have newly created.

    The JDK files themselves will be cached once they have been scanned so probably won't be a significant source of slowness.

    You can use OnAccessRecordSlowScans configuration option to record which files are taking longest to scan.

    /opt/sophos-av/bin/savconfig set OnAccessRecordSlowScans true

    sleep 3

    <compile>
    /opt/sophos-av/bin/savconfig set OnAccessRecordSlowScans false

    That will create files /opt/sophos-av/tmp/savscand.scan.log.<pid>

    In them there should records of files that took the longest to scan.