We had received a requirement to scan files with 1.2 GBytes on size, and we are looking on stream scan process.
We have been testing our Symantec Scanning Server Engine with the following command line which call a wrapper class that wait for any key and then call the sample program JavaAPICheck.java with the parameters showed, we are using JVisualVM to monitor the Memory,etc.
We are experienced several issues:
First.- Our JVisualVM show a consumption on memory on the client side that we didn't expect under streambased virus scan case. i.e if the file is 253MB size the amount of memory show around 300MB used on the client side.
Second.- Connections error messages with a test file that has a virus, following the error messages:
Problem encountered! Scanning Failed!! ERROR_ON_SERVER_WRITE
Problem encountered! Scanning Failed!! ERROR_SOCKET_COMMUNICATION
Any help is greatly appreciated.
Detail of 3 tests using 2 differents files:
Test # 1
E:\POC\symantec_test>run.bat
E:\POC\symantec_test>java -Xmx1500M -Xms512M -cp SymJavaAPI.jar;target\classes;.\ org.ocmm.symantec.App -file:..\virus\AgencyApplicationDownload.zip
-streambased:1 -streamFileLocal:1 -server:209.222.132.148:1344 -policy:scan -output:..\virus\AgencyApplicationDownload.zip-out -originalname:..\virus\
AgencyApplicationDownload.zip
Click <enter> key to continue...
Arguments [
-file:..\virus\AgencyApplicationDownload.zip
-streambased:1
-streamFileLocal:1
-server:209.222.132.148:1344
-policy:scan
-output:..\virus\AgencyApplicationDownload.zip-out
-originalname:..\virus\AgencyApplicationDownload.zip
]
Problem encountered! Scanning Failed!! ERROR_ON_SERVER_WRITE
Test # 2
E:\POC\symantec_test>run.bat
E:\POC\symantec_test>java -Xmx1500M -Xms512M -cp SymJavaAPI.jar;target\classes;.\ org.ocmm.symantec.App -file:..\file253MB.pdf -streambased:1 -stream
FileLocal:1 -server:209.222.132.148:1344 -policy:scan -output:..\file253MB.pdf-out -originalname:..\file253MB.pdf
Click <enter> key to continue...
Arguments [
-file:..\file253MB.pdf
-streambased:1
-streamFileLocal:1
-server:209.222.132.148:1344
-policy:scan
-output:..\file253MB.pdf-out
-originalname:..\file253MB.pdf
]
----------------------------------------------------------------------
Scanning file ........................................................
----------------------------------------------------------------------
Results ..............................................................
----------------------------------------------------------------------
File Scanned : ..\file253MB.pdf
Scan Policy : SCAN
File Status : CLEAN
Total Infection : 0
Virus Def Date : Fri Sep 10 00:00:00 EDT 2010
Virus Def Revision No : 003
Scan Engine IP : 209.222.132.148
Scan Engine Port : 1344
Scan Engine Port : Able to connect
Test # 3
E:\POC\symantec_test>run.bat
E:\POC\symantec_test>java -Xmx1500M -Xms512M -cp SymJavaAPI.jar;target\classes;.\ org.ocmm.symantec.App -file:..\virus\AgencyApplicationDownload.zip
-streambased:1 -streamFileLocal:1 -server:209.222.132.148:1344 -policy:scan -output:..\virus\AgencyApplicationDownload.zip-out -originalname:..\virus\
AgencyApplicationDownload.zip
Click <enter> key to continue...
Arguments [
-file:..\virus\AgencyApplicationDownload.zip
-streambased:1
-streamFileLocal:1
-server:209.222.132.148:1344
-policy:scan
-output:..\virus\AgencyApplicationDownload.zip-out
-originalname:..\virus\AgencyApplicationDownload.zip
]
Problem encountered! Scanning Failed!! ERROR_SOCKET_COMMUNICATION