Out of memory exception
mvelicu
Posts: 6
Hello !
I try to compare 2 databases , one is in Sql Server 2005 on my computer and one that is in Sql Server 2008 on a remote server.
On my computer I have 8 GB ram , on the server I have 24 gb ram and when start comparing database I have this error :
Exception of type "System.OutOfMemoryException" was thrown.
Yesterday I didn't have any problem, for the same databases , I syncronize around 2 millions and half records from 4 million without problems. Today I try to syncronize the rest of them and I practically cannot.
I restart the both, the server and my computer, and the same error.
Redgate is installed on my computer.
Please tell me what is wrong !
Regards,
Mihai
I try to compare 2 databases , one is in Sql Server 2005 on my computer and one that is in Sql Server 2008 on a remote server.
On my computer I have 8 GB ram , on the server I have 24 gb ram and when start comparing database I have this error :
Exception of type "System.OutOfMemoryException" was thrown.
Yesterday I didn't have any problem, for the same databases , I syncronize around 2 millions and half records from 4 million without problems. Today I try to syncronize the rest of them and I practically cannot.
I restart the both, the server and my computer, and the same error.
Redgate is installed on my computer.
Please tell me what is wrong !
Regards,
Mihai
Comments
Whilst working, SQL Data Compare caches a lot of information locally, by default into your temp location. When working with larget databases this can actually mean you run out of disk space, and then you get the error.
If that's what is happening, do you have another disk in your machine with more space? You can then create an environment variable called RGTEMP and point it to a folder on that other disk, and information will then be cached there instead.
Redgate Software
I have 110GB free space on my harddrive. And the database is 5GB.
What I discovered meantime, If I restart sql service on my machine , the data comparison works. But after I am doing some syncronization and compare again, I have that Out of memory exception.
Regards,
Mihai
Redgate Software
Redgate Software
It seems it doesn't cleanup the ram memory.
Mihai
Redgate Software
Regards,
Mihai
Redgate Software