Hi,
The server configuration : SQL Server 2005 Enterprises Edition with SP3.
Server Memory : 16 Gigs and Maximum Memory set to SQL Server is 12 Gigs.
Some queries are written to do the DML operations with the data residing in MySQL instances. Linked servers are used to fetch the data from MySQL instances.
The "allow in process" has been checked in the MSDASQL Provider.
When there DML queries are being executed from the SSMS windows, it is getting executed where as If these are configured to run from the Agent job it's getting failed and the following is the error message logged.
========== Error Message Logged in view job history ==================
Executed as user: NT AUTHORITY\SYSTEM. The OLE DB provider "MSDASQL" for linked server "MySQL" reported an error. The provider ran out of memory. [SQLSTATE 42000] (Error 7399) Cannot fetch a row from OLE DB provider "MSDASQL" for linked server "MySQL". [SQLSTATE 42000] (Error 7330) OLE DB provider "MSDASQL" for linked server "MySQL" returned message "Out of memory.". [SQLSTATE 01000] (Error 7412). The step failed
Gathered information about this error:
It has been gathered from the following link that since Linked servers will use the memory from MemToLeave area, they are suggesting to try by adjusting it using -g option.
While checking the following microsoft's link about-g option it has been mentioned that in case of VAS memory shortage the below mentioned error message will be logged in SQL Server's error log. In this case, in the machine with issue I didn't find this message on the error log.
http://msdn.microsoft.com/en-us/library/ms190737.aspx
Use the default for the -g parameter unless you see any of the following warnings in the SQL Server error log:
"Failed Virtual Allocate Bytes: FAIL_VIRTUAL_RESERVE <size>"
"Failed Virtual Allocate Bytes: FAIL_VIRTUAL_COMMIT <size>"
Requirement :
- How to check the usage of MemToLeave usage for a SQL Server instance ?
- How to confirm the issue above said issue is shortage of MemToLeave ?
It's really appreciated for the one who shed some light in this regard. Thanks in advance.
The server configuration : SQL Server 2005 Enterprises Edition with SP3.
Server Memory : 16 Gigs and Maximum Memory set to SQL Server is 12 Gigs.
Some queries are written to do the DML operations with the data residing in MySQL instances. Linked servers are used to fetch the data from MySQL instances.
The "allow in process" has been checked in the MSDASQL Provider.
When there DML queries are being executed from the SSMS windows, it is getting executed where as If these are configured to run from the Agent job it's getting failed and the following is the error message logged.
========== Error Message Logged in view job history ==================
Executed as user: NT AUTHORITY\SYSTEM. The OLE DB provider "MSDASQL" for linked server "MySQL" reported an error. The provider ran out of memory. [SQLSTATE 42000] (Error 7399) Cannot fetch a row from OLE DB provider "MSDASQL" for linked server "MySQL". [SQLSTATE 42000] (Error 7330) OLE DB provider "MSDASQL" for linked server "MySQL" returned message "Out of memory.". [SQLSTATE 01000] (Error 7412). The step failed
Gathered information about this error:
It has been gathered from the following link that since Linked servers will use the memory from MemToLeave area, they are suggesting to try by adjusting it using -g option.
While checking the following microsoft's link about-g option it has been mentioned that in case of VAS memory shortage the below mentioned error message will be logged in SQL Server's error log. In this case, in the machine with issue I didn't find this message on the error log.
http://msdn.microsoft.com/en-us/library/ms190737.aspx
Use the default for the -g parameter unless you see any of the following warnings in the SQL Server error log:
"Failed Virtual Allocate Bytes: FAIL_VIRTUAL_RESERVE <size>"
"Failed Virtual Allocate Bytes: FAIL_VIRTUAL_COMMIT <size>"
Requirement :
- How to check the usage of MemToLeave usage for a SQL Server instance ?
- How to confirm the issue above said issue is shortage of MemToLeave ?
It's really appreciated for the one who shed some light in this regard. Thanks in advance.